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>
<bl2_qspi.pbl>
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.
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
...