LS2088ARDB: Booting flex-build image with TFTP boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS2088ARDB: Booting flex-build image with TFTP boot

861 Views
ttc-ttp
Contributor I

I am trying to deploy Ubuntu to the NXP LS2088ARDB using flexbuild and tftp boot.

I have built the images for the device with:

flex-builder -m ls2088ardb

I have extracted the boot and rootfs images to my tftp and nfs directories.

I have set my bootargs to:

wdt_period=35 root=/dev/nfs rw nfsroot=192.168.1.20:/home/nfs/layerscapeboot, nfsvers=3 ip=192.168.1.31:192.168.1.20::255.255.255.0:ls2088ardb:DPMAC5@xgmii:off rootwait console=ttyS1,115200 earlycon=uart8250,mmio,0x21c0600

and bootcmd to:

tftp 0xa0000000 ls2088/Image && tftp 0xb0000000 ls2088/fsl-ls2088a-rdb.dtb && fsl_mc apply dpl 0x580700000 && booti 0xa0000000 - 0xb0000000

I found that without the `fsl_mc apply` I would get the following error: 

 "ERROR: fsl-mc: DPL is not applied"

With the above setup, I can successfully download the images from the tftp server. However, the kernel doesn't boot. Please see the transcript attached. The first error messages I see are:

[    0.000000] WARNING: x1-x3 nonzero in violation of boot protocol:
[    0.000000]  x1: 0000000000000000
[    0.000000]  x2: 0000000000000000
[    0.000000]  x3: 0000000080000000
[    0.000000] This indicates a broken bootloader or old kernel
[    0.002552] smp: Bringing up secondary CPUs ...
[    5.089736] CPU1: failed to come online
[    5.089740] CPU1: failed in unknown state : 0x0
[   10.211504] CPU2: failed to come online
[   10.211508] CPU2: failed in unknown state : 0x0
[   15.333269] CPU3: failed to come online
[   15.333273] CPU3: failed in unknown state : 0x0
[   20.455029] CPU4: failed to come online
[   20.455033] CPU4: failed in unknown state : 0x0
[   25.576784] CPU5: failed to come online
[   25.576789] CPU5: failed in unknown state : 0x0
[   30.698558] CPU6: failed to come online
[   30.698562] CPU6: failed in unknown state : 0x0
[   35.820316] CPU7: failed to come online
[   35.820320] CPU7: failed in unknown state : 0x0

Any advice would be appreciated.

0 Kudos
Reply
1 Reply

812 Views
yipingwang
NXP TechSupport
NXP TechSupport

1. Download the prebuilt composite firmware image:
$ wget http://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls2088ardb_norboot.img
2. Boot LS2088ARDB from NOR bank 4 with the following switch settings:
• SW5[1:8] = 1111 1111
• SW3[1:8] = 0001 0010
• SW4[1:8] = 1111 1111
• SW6[1:8] = 1111 1111
• SW7[1:8] = 0100 0010
• SW9[1:8] = 0110 0000
• SW8[1:8] = 0111 1111
3. Program NOR bank 0 from NOR bank 4:
=> tftp $load_addr firmware_ls2088ardb_norboot.img
=> protect off 584000000 +$filesize && erase 584000000 +$filesize && cp.b $load_addr 584000000
$filesize
4. Reset and boot the board from NOR bank 0:
=> qixis_reset

Then use  the following command to deploy DPL

fsl_mc apply dpl 0x580D00000

Please download pre-buit boot partition image and verify Image and dtb file in this package.

wget https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz 

0 Kudos
Reply