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?

923件の閲覧回数
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 返信

905件の閲覧回数
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 件の賞賛
返信