Why is the byte order of the image created with Flex-builder (bl2_qspi.pbl) different?

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

Why is the byte order of the image created with Flex-builder (bl2_qspi.pbl) different?

458 Views
nekarose
Contributor II

Why is the byte order of the RCW+PBI+BL2 image mounted on NOR flash different from the byte order of the bl2_qspi.pbl image built through flex-builder?

<NOR Flash>

nekarose_0-1648715043101.png

<bl2_qspi.pbl>

nekarose_1-1648715078747.png

I am currently trying to do flash programming using T32, but it does not work properly when the bl2_qspi.bpl file is applied due to the byte order difference as above.

 

0 Kudos
1 Reply

440 Views
Teddy1
Contributor II

Look at the chapter "CCSR address map" of your Layerscape processor, for QuadSPI, there is written "Big-endian (byte swapping required)"

I use T32 to flash my QSPI Flash NOR and I do swap bl2 and fip for usage with T32 (and I use bl2/fip binaries not swapped when updating from Linux /dev/mtdX)

...
FLASH.ReProgram.ALL
pRINT "select RCW ( /bl2_qspi_swp.pbl) binary..."
Data.LOAD.binary arm64_target\lauterbach\bl2_qspi_swp.pbl D:40000000 /Long
pRINT "select u-boot ( /fip_swp.bin) binary..."
Data.LOAD.binary arm64_target\lauterbach\fip_swp.bin D:40100000 /Long
...

 

0 Kudos