Booting from QSPI on LS102xA

cancel
Showing results for 
Search instead for 
Did you mean: 

Booting from QSPI on LS102xA

Booting from QSPI on LS102xA

LS1021xA series product starts to support QSPI flash booting.

But booting from QSPI flash isn't the same as booting from SPI flash.

QSPI booting use XIP(Execute in place) method just like NOR Flash booting.

The memory map start address assigned to QSPI flash is 0x4000000.

You need to put your code at the right location.

1.gif

And another key point you should be noted is data endian format between QSPI controller and ARM AMBA AXI bus.2.gif

Any binary file burned into QSPI Flash should be done Byte-Swap process first.

Our Ls1021xA Bsp has provided this function at Tcl script file named “byte_swap.tcl”.

Follow the below command to finish this process .

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

Then Boot up system from SD/MMC media.

Burn the image file into QSPI Flash by following commands.

=>tftp 0x81000000 rcw_qspiboot_swap.bin

(Measure this binary file contains PBI command: 0xee0200, 0x40010000

This is  the Workaround for u-boot address )

=> sf probe

=> sf erase 0 0x10000

=> sf write 0x81000000 0 0x100

=> tftp 0x82000000 u-boot-qspiboot_swap.bin

=> sf erase 0x10000 0x90000

=> sf write 0x82000000 0x10000 0x80000

Comments

Hi,

I'm working on booting a customized LS1021A board from QSPI flash and I have one question:

What's the file rcw_qspiboot_swap.bin?

While I compile the u-boot, I can only get the u-boot.bin.

Is that file necessary to boot up a board?

Thanks

What's the file rcw_qspiboot_swap.bin?


You may use script "byte_swap.tcl" to swap your rcw.bin to rcw_qspiboot_swap.bin.

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


While I compile the u-boot, I can only get the u-boot.bin.

you could use QorIQ Configuration suite"pre-boot loader tool" to generate specific RCW binary file for your customized board.

Is that file necessary to boot up a board?

Yes,it is a pre-boot loader code and you need to modify it carefully.

Thanks Ming-Che,


Is the RCW binary file always needed no matter how I boot my LS1021A board?

Are those configurations already included in u-boot like imx6?

Yes, RCW binary file is necessary for T series ,LS series and part of P series QorIQ product.

Our SDK will help you insert RCW Data into U-boot binary file automatically after code-build process.

But LS SDK hasn't completed all feature yet.

Version history
Revision #:
1 of 1
Last update:
‎08-24-2014 10:52 PM
Updated by: