mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Rouven Czerwinski <r.czerwinski@pengutronix.de>
To: Sascha Hauer <sha@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: i.MX HABV4 USB Image generation broken since fd9c7cbfe446b0f04aa66bb198c1769045ba2fe5
Date: Fri, 11 Feb 2022 10:59:55 +0100	[thread overview]
Message-ID: <17af354f430e1dcc253e086a6184923f1d520e08.camel@pengutronix.de> (raw)
In-Reply-To: <20220211094636.GE18637@pengutronix.de>

Hi Sascha,

On Fri, 2022-02-11 at 10:46 +0100, Sascha Hauer wrote:
> Hi Rouven,
> 
> On Tue, Feb 08, 2022 at 08:24:24AM +0100, Rouven Czerwinski wrote:
> > Hi,
> > 
> > Commit fd9c7cbfe446 ("scripts: Add common library functions")
> > intorduced the usage of the common library functions to imx-image,
> > which breaks the HAB USB image generation within barebox. Signed images
> > are still generated fine:
> > 
> >   OBJCOPYB images/start_imx6ul_ccbv2_512m.pblb
> >   CHKFILESIZE images/start_imx6ul_ccbv2_512m.pblb
> >   OBJCOPYB images/start_imx6ul_ccbv2_256m.pblb
> >   CHKFILESIZE images/start_imx6ul_ccbv2_256m.pblb
> >   IMX-IMG images/start_imx6ul_ccbv2_512m.pblb.imximg
> >   IMX-IMG images/start_imx6ul_ccbv2_512m.pblb.simximg
> >     Input CSF text filename
> > CSF Processed successfully and signed data available in
> > images/start_imx6ul_ccbv2_512m.pblb.simximg.csfbin
> >   IMX-IMG images/start_imx6ul_ccbv2_512m.pblb.usimximg
> >     Input CSF text filename
> > CSF Processed successfully and signed data available in
> > images/start_imx6ul_ccbv2_512m.pblb.usimximg.csfbin
> > write failed: Bad address
> > make[1]: *** [/home/phoenix/work/ptx/barebox/images/Makefile.imx:38:
> > images/start_imx6ul_ccbv2_512m.pblb.usimximg] Error 1
> > make[1]: *** Deleting file
> > 'images/start_imx6ul_ccbv2_512m.pblb.usimximg'
> > make: *** [Makefile:703: images] Error 2
> > 
> > I have attached the .config I used to test this, you'll need the i.MX
> > cst tool in your path and the environment configuration to point to
> > certificates. The ptx devel certificates
> > https://git.pengutronix.de/git/ptx-code-signing-dev were what i used
> > for testing.
> > 
> > I assume this is the same error that has been fixed in "scripts/common:
> > fix write_file when opened with mmap", however imx-image implements its
> > own xwrite helper and opens files itself, so there is a mismatch there
> 
> Could you give
> http://lists.infradead.org/pipermail/barebox/2022-February/038465.html a
> try? It hopefully solves this issue.

Works perfectly, you can add my:
Tested-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>

Rouven

-- 
Pengutronix e.K.           | Rouven Czerwinski          |
Steuerwalder Str. 21       | http://www.pengutronix.de/ |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0   |


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


      reply	other threads:[~2022-02-11 10:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-08  7:24 Rouven Czerwinski
2022-02-11  9:46 ` Sascha Hauer
2022-02-11  9:59   ` Rouven Czerwinski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17af354f430e1dcc253e086a6184923f1d520e08.camel@pengutronix.de \
    --to=r.czerwinski@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=sha@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox