Hi,
i am working on LS1043ARDB and using flexbuild_lsdk2012.
i have compiled the kernel and rootfs using below commands and generated the Images.
flex-builder -c linux -a arm64
flex-builder -i mkfw -m ls1043ardb -b sd
Now i am trying to boot the the kerenl and rootfs from SD card.
partition the SD card as 2 partition (1.vfat & ext4) and copy the Image and Image.gz into 1 partition and copy the rootfs into 2 partition and given the below commands in U-Boot but it is not working.
=> run bootcmd_mmc0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Scanning mmc 0:2...
=> run sd_bootcmd
Trying load from SD ..
Device: FSL_SDHC
Manufacturer ID: 1b
OEM: 534d
Name: EC1S5
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 59.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
MMC read: dev # 0, block # 32768, count 81920 ... 81920 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
please help with suggest the right image and procedure.
Thank you,
Y Mahesh
You could get pre-build image as the following
$ wget https://www.nxp.com/lgfiles/sdk/lsdk2012/firmware_ls1043ardb_uboot_sdboot.img
$ wget https://www.nxp.com/lgfiles/sdk/lsdk2012/bootpartition_LS_arm64_lts_5.4.tgz
$ wget https://www.nxp.com/lgfiles/sdk/lsdk2012/rootfs_lsdk2012_ubuntu_main_arm64.tgz
Then use the following command to deploy images to SD, /dev/sdx is SD device name.
$ flex-installer -f firmware_ls1043ardb_uboot_sdboot.img -b bootpartition_LS_arm64_lts_5.4.tgz -r rootfs_lsdk2012_ubuntu_main_arm64.tgz -d /dev/sdx
Then configure the target board boot from SD, the board will boot up automatically.
firmware_ls1043ardb_uboot_sdboot.img is generate with the following command, it includes u-boot, firmwares, kernel image and tiny rootfs.
$ flex-builder -i mkfw -m ls1043ardb -b sd
bootpartition_LS_arm64_lts_5.4.tgz includes Image, dtb, bootscript is generated with the following command.
$ flex-builder -i mkbootpartition -a arm64
rootfs_lsdk2012_ubuntu_main_arm64.tgz is ubuntu main rootfs image, it is generated with the following command.
$ flex-builder -i mkrfs -r ubuntu:main