How to load and boot from NAND Flash for ls1043ardb

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to load and boot from NAND Flash for ls1043ardb

ソリューションへジャンプ
4,446件の閲覧回数
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 件の賞賛
返信
1 解決策
4,366件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to my first post in this thread.

元の投稿で解決策を見る

0 件の賞賛
返信
7 返答(返信)
4,416件の閲覧回数
TrinathK
Contributor III

Hi Yipingwang,

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

0 件の賞賛
返信
4,396件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
4,391件の閲覧回数
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 件の賞賛
返信
4,367件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to my first post in this thread.

0 件の賞賛
返信
4,439件の閲覧回数
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 件の賞賛
返信
4,433件の閲覧回数
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 件の賞賛
返信
4,422件の閲覧回数
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 件の賞賛
返信