Re: i.MX HABV4 USB Image generation broken since fd9c7cbfe446b0f04aa66bb198c1769045ba2fe5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux