All of lore.kernel.org
 help / color / mirror / Atom feed
* Layerscape LS1012A RCW/PBI (PBL image) byte-swapping
@ 2018-06-14  4:56 Tim Hammer
  2018-06-14  9:29 ` C.r. Guo
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Hammer @ 2018-06-14  4:56 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 204 bytes --]

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?

Thanks!
-- 

.Tim

[-- Attachment #2: Type: text/html, Size: 426 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Layerscape LS1012A RCW/PBI (PBL image) byte-swapping
  2018-06-14  4:56 Layerscape LS1012A RCW/PBI (PBL image) byte-swapping Tim Hammer
@ 2018-06-14  9:29 ` C.r. Guo
  2018-06-14 18:45   ` Tim Hammer
  0 siblings, 1 reply; 4+ messages in thread
From: C.r. Guo @ 2018-06-14  9:29 UTC (permalink / raw)
  To: Tim Hammer, meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

Hello Tim,
Rcw has been swap .
You can see the below recipes.

https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/tree/recipes-bsp/rcw/rcw_git.bb

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
    else
        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install
    fi
    for f in `find ${D}/boot/rcw/ -name "*qspiboot*"`;do
        if echo $f |grep -q "qspiboot_sben"; then
            continue
        fi
        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
    done
}



thanks
chunrong


From: meta-freescale-bounces@yoctoproject.org [mailto:meta-freescale-bounces@yoctoproject.org] On Behalf Of Tim Hammer
Sent: 2018年6月14日 12:56
To: meta-freescale@yoctoproject.org
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?

Thanks!
--

.Tim

[-- Attachment #2: Type: text/html, Size: 8313 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Layerscape LS1012A RCW/PBI (PBL image) byte-swapping
  2018-06-14  9:29 ` C.r. Guo
@ 2018-06-14 18:45   ` Tim Hammer
  2018-06-15  4:03     ` C.r. Guo
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Hammer @ 2018-06-14 18:45 UTC (permalink / raw)
  To: C.r. Guo; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2181 bytes --]

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

> Hello Tim,
>
> Rcw has been swap .
>
> You can see the below recipes.
>
>
>
> https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/
> tree/recipes-bsp/rcw/rcw_git.bb
>
>
>
> 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
>
>     else
>
>         oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install
>
>     fi
>
>     for f in `find ${D}/boot/rcw/ -name "*qspiboot*"`;do
>
>         if echo $f |grep -q "qspiboot_sben"; then
>
>             continue
>
>         fi
>
>         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
>
>     done
>
> }
>
>
>
>
>

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:
      .pbi
      write 0x550000, 0x000f400c
      .end

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


>
>
> thanks
>
> chunrong
>
>
>
>
>
> *From:* meta-freescale-bounces@yoctoproject.org [mailto:meta-freescale-
> bounces@yoctoproject.org] *On Behalf Of *Tim Hammer
> *Sent:* 2018年6月14日 12:56
> *To:* meta-freescale@yoctoproject.org
> *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?
>
>
>
> Thanks!
>
> --
>
>
> .Tim
>



-- 

.Tim

[-- Attachment #2: Type: text/html, Size: 9216 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Layerscape LS1012A RCW/PBI (PBL image) byte-swapping
  2018-06-14 18:45   ` Tim Hammer
@ 2018-06-15  4:03     ` C.r. Guo
  0 siblings, 0 replies; 4+ messages in thread
From: C.r. Guo @ 2018-06-15  4:03 UTC (permalink / raw)
  To: Tim Hammer; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 3067 bytes --]

Hello Tim,
Thank you for your commends.
You are right.
LS1012A rcw do not be swapped .
You can swap by the below command :
tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl $f $f_swap 8
Rcw new code  will include auto swapped binaries for qspiboot during install target

I will submitted patch for new rcw code .

Thanks
Chunrong

From: Tim Hammer [mailto:tdhammer99@gmail.com]
Sent: 2018年6月15日 2:45
To: C.r. Guo <chunrong.guo@nxp.com>
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] Layerscape LS1012A RCW/PBI (PBL image) byte-swapping


On Thu, Jun 14, 2018 at 5:29 AM, C.r. Guo <chunrong.guo@nxp.com<mailto:chunrong.guo@nxp.com>> wrote:
Hello Tim,
Rcw has been swap .
You can see the below recipes.

https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/tree/recipes-bsp/rcw/rcw_git.bb<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.yoctoproject.org%2Fcgit%2Fcgit.cgi%2Fmeta-freescale%2Ftree%2Frecipes-bsp%2Frcw%2Frcw_git.bb&data=02%7C01%7Cchunrong.guo%40nxp.com%7C98a9a0560a684c01c11c08d5d226f3fb%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636645987165803190&sdata=mNNv%2F1F%2FrgPYZnDY2tbgUbX9ceZ9s4j%2FsIr7xj3NHcE%3D&reserved=0>

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
    else
        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install
    fi
    for f in `find ${D}/boot/rcw/ -name "*qspiboot*"`;do
        if echo $f |grep -q "qspiboot_sben"; then
            continue
        fi
        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
    done
}



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:
      .pbi
      write 0x550000, 0x000f400c
      .end

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


thanks
chunrong


From: meta-freescale-bounces@yoctoproject.org<mailto:meta-freescale-bounces@yoctoproject.org> [mailto:meta-freescale-bounces@yoctoproject.org<mailto:meta-freescale-bounces@yoctoproject.org>] On Behalf Of Tim Hammer
Sent: 2018年6月14日 12:56
To: meta-freescale@yoctoproject.org<mailto:meta-freescale@yoctoproject.org>
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?

Thanks!
--

.Tim



--

.Tim

[-- Attachment #2: Type: text/html, Size: 17842 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-15  4:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-14  4:56 Layerscape LS1012A RCW/PBI (PBL image) byte-swapping Tim Hammer
2018-06-14  9:29 ` C.r. Guo
2018-06-14 18:45   ` Tim Hammer
2018-06-15  4:03     ` C.r. Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.