Hi all,
I am using ls1043ardb and used flex commands to build and install my images (firmware, boot partition and rootfs ) to SD card. Now i want to deploy my images into the NAND flash and boot from it. Let me know the step by step process for images generation, loading and booting.
Thanks in advance.
Solved! Go to Solution.
Hi Yipingwang,
Thanks a lot for correcting me. Please let me know how may i load .itb file also.
Your .itb image is too large to load to NAND flash.
Hi yipingwang,
Forget about the size and let me know the process for loading .itb file, which will be helpful if my boot device is other than NAND (or) if i increase my NAND flash size in future.
Thanks in advance.
Please refer to my first post in this thread.
Build NAND flash firmware image as the following
$ flex-builder -i mkfw -m ls1043ardb -b nand
Deploy firmware_ls1043ardb_uboot_nandboot.img on the target board.
=> tftp 0xa0000000 b25805/ls1043ardb/firmware_ls1043ardb_uboot_nandboot.img
=> nand erase 0 $filesize
=> nand write 0xa0000000 0 $filesize
Boot itb image from NAND
=> run nand_bootcmd
Hi yipingwang,
Thanks for your reply. My .itb file size is 672 MB but my NAND flash size is 512 MB. Please let me know, how may i load my .itb file in NAND flash ?
Also, I followed the below procedure for booting from NAND flash, for which booting is happening from NAND flash now. Let me know if i am wrong.
=> tftp 82000000 bl2_nand.pbl
=> nand erase 0x0 $filesize;nand write 0x82000000 0x0 $filesize;
=> tftp 82000000 fip_uboot.bin
=> nand erase 0x00100000 $filesize;nand write 0x82000000 0x00100000 $filesize;
=> tftp 82000000 Image
=> nand erase 0x01000000 $filesize;nand write 0x82000000 0x01000000 $filesize;
=> tftp 82000000 fsl-ls1043a-rdb-sdk.dtb
=> nand erase 0x02100000 $filesize;nand write 0x82000000 0x02100000 $filesize;
=> cpld reset nand
------------------------ After reset, i stopped autoboot ----------------------------
=> setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p4 rootwait rw earlycon=uart8250
=> setenv nand_bootcmd "nand read 0x81000000 0x01000000 $filesize; nand read 0x90000000 0x02100000 $filesize;booti 0x81000000 - 0x90000000;"
=> saveenv
=> run nand_bootcmd;
Please define nand_bootcmd as the following.
=> setenv nand_bootcmd "nand read 0x81000000 0x01000000 0x2500000; nand read 0x90000000 0x02100000 0x8000;booti 0x81000000 - 0x90000000;