How to load and boot from NAND Flash for ls1043ardb

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

How to load and boot from NAND Flash for ls1043ardb

Jump to solution
2,230 Views
TrinathK
Contributor III

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.

0 Kudos
1 Solution
2,150 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to my first post in this thread.

View solution in original post

0 Kudos
7 Replies
2,200 Views
TrinathK
Contributor III

Hi Yipingwang,

Thanks a lot for correcting me. Please let me know how may i load .itb file also.

0 Kudos
2,180 Views
yipingwang
NXP TechSupport
NXP TechSupport

Your .itb image is too large to load to NAND flash.

0 Kudos
2,175 Views
TrinathK
Contributor III

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.

0 Kudos
2,151 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to my first post in this thread.

0 Kudos
2,223 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

0 Kudos
2,217 Views
TrinathK
Contributor III

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;

0 Kudos
2,206 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please define nand_bootcmd as the following.

=> setenv nand_bootcmd "nand read 0x81000000 0x01000000 0x2500000; nand read 0x90000000 0x02100000 0x8000;booti 0x81000000 - 0x90000000;

0 Kudos