ask for a whole qspi boot image for ls1021a

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ask for a whole qspi boot image for ls1021a

2,089 次查看
wangqiang1
Contributor I

Can anyone help providing a whole image for ls1021a qspi boot that can be programmed by a flash programmer?  I have no debugger to programe spi flash, so I wang to programe qspi flash first by a programmer, then solder it to board. For that I need an image including RCW,PBL and uboot. Can anyone help me ?  ls1021a Tower board is my reference. Thanks!  

标签 (1)
标记 (1)
0 项奖励
回复
5 回复数

1,896 次查看
keestrommel
Contributor IV

On a LS1021TWR board you can program the QSPI boot without using a programmer but using a SD card (e.g. the one that comes with the LS1021TWR board):

All the files used in following instructions are build by QoriQ SDK2.0. It assumes that the NOR boot (vBank 0) is running that was pre-progammed at the board by the vendor.

To be able to access SD card program SDK 2.0 NOR RCW and U-Boot:

tftp 81000000 rcw_1000.bin
erase 60000000 6001ffff
cp 81000000 60000000 $filesize

tftp 81000000 u-boot.bin
erase 60100000 601fffff
cp 81000000 60100000 $filesize

Reset the board. Now the SDK2.0 NOR boot is running. Insert the SD card and program the SD QSPI (not SD IFC!) U-Boot:
tftp 81000000 u-boot-with-spl-pbl.bin
mmc erase 8 800
mmc write 81000000 8 800

Change DIP switches SW2.0[OFF], SW2.3[ON], SW2.5[OFF]. Reset the board. Now the SD QSPI U-Boot is running. Program the QSPI U-Boot

sf probe

tftp 81000000 rcw_1000_qspiboot_swap.bin
sf erase 0 10000
sf write 81000000 0 $filesize

tftp 81000000 u-boot.swap.bin
sf erase 10000 80000
sf write 81000000 10000 $filesize

Change DIP switches SW2.3[OFF]. SW2.4[ON]. Reset te board. Now the QSPI boot is running

0 项奖励
回复

1,750 次查看
hfkjsaoidu213
Contributor II

hi!

How to compile u-boot.swap.bin  or  rcw_1000_qspiboot_swap.bin?

标记 (1)
0 项奖励
回复

1,896 次查看
Pavel
NXP Employee
NXP Employee

Usually customers use Flash programmer for RCW, PBL and u-boot burning and use u-boot for Linux burning.

Usually customers use TFTP connection from u-boot for Linux binary image loading. This connection provides high-speed data loading.

 

Flash programmer data loading via JTAG via JTAG connection does not provide high-speed data loading. This connection requires long time (approximately a few hours) for Linux binary image burning.


Best regards,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,748 次查看
hfkjsaoidu213
Contributor II

hi!

How to compile u-boot.swap.bin  or  rcw_1000_qspiboot_swap.bin?

标记 (1)
0 项奖励
回复

1,725 次查看
kele6ra
Contributor III

Hello. You may use script "byte_swap.tcl" to swap your rcw.bin to rcw_qspiboot_swap.bin. Or make rcw with the help of utility qoriq rcw utility

tclsh ./byte_swap.tcl ./<original file name>.bin ./<Byte-swap file name>.bin 8 

The above RCW binary takes care of swapping the QSPI AMBA memory, so that the U-Boot binary does not need to be swapped when flashing it.

And according to the new Layerscape SDK memory layout. U-boot has 0x100000 offset instead of 0x10000.

0 项奖励
回复