u-boot offset for QSPI boot on LS1043A

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

u-boot offset for QSPI boot on LS1043A

1,332 Views
sp_qoriq
Contributor III

What is the correct offset for u-boot when booting from QSPI? 0x40010000 or 0x40001000?

According to u-boot/README.qspi at integration · qoriq-open-source/u-boot · GitHub , it should be 0x1000 for LS1043A and we need to add the following PBI instruction to point to modify the boot location pointer:

write 0x570604, 0x40001000

However, ls1043aqds examples use 0x40010000 as boot location pointer. What is the correct offset?

As a follow-up question, is there an option to build a binary image for u-boot + rcw (not with SPL) with appropriate offsets using the LSDK or yocto toolchain?

Tags (2)
0 Kudos
2 Replies

692 Views
ufedor
NXP Employee
NXP Employee

The SPI Flash U-Boot programming offset has to be in accordance with the SCRATCHRW2 value.

If the programming offset is 0x10000, then booting has to be performed from the 0x40010000.

It is needed to ensure that RCW contains correct value for the "write 0x570604".

0 Kudos

692 Views
sp_qoriq
Contributor III

Thanks for the clarification. May be README.qspi can be updated to remove (line 33) the special instruction for LS1043A (and LS2080A), to avoid any confusion.

Can you please answer my second question in the original post? Is there a "bitbake" or "flex-build" option to build a combined image - or do I need to manually program the QSPI flash at appropriate offsets?

0 Kudos