Re: Layerscape LS1012A RCW/PBI (PBL image) byte-swapping

Tim Hammer <tdhammer99@...>

On Thu, Jun 14, 2018 at 5:29 AM, C.r. Guo <chunrong.guo@...> wrote:

Hello Tim,

Rcw has been swap .

You can see the below recipes.


do_install () {

    if [ ${M} = ls2088ardb ]; then

        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install

        oe_runmake BOARDS=${M}_rev1.1  DESTDIR=${D}/boot/rcw/ install


        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install


    for f in `find ${D}/boot/rcw/ -name "*qspiboot*"`;do

        if echo $f |grep -q "qspiboot_sben"; then



        f_swap=`echo $f |sed -e 's/qspiboot/qspiboot_swap/'`

        tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl $f $f_swap 8

        mv -f $f_swap $f





Thank you for the pointer. I might have seen that before, but never investigated why it is not working for me.

None of the LS1012A board RCW builds result in a file name with "qspiboot" in them. Therefore, this step is not done for the RCW files generated for these boards.

I see that many other LS1 boards get "qspiboot" in the file name (ls1021a*, ls1043a*, ls1046a*) but I have not figured out how/why.

The ls1012a* boards all have a qspi_endianess.rcw snippet with the same commands:
      write 0x550000, 0x000f400c

Is this supposed to take the place of the byte_swap script?






From: [mailto:meta-freescale-bounces@...] On Behalf Of Tim Hammer
Sent: 2018
614 12:56
Subject: [meta-freescale] Layerscape LS1012A RCW/PBI (PBL image) byte-swapping



The RCW/PBI file needs to be byte-swapped before being written into the QSPI flash.


Is there a reason why this step has not been included in the Yocto recipe that builds it?







Join to automatically receive all group messages.