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

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

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

890 次查看
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 项奖励
回复
1 回复

872 次查看
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 项奖励
回复