[Buildroot] [EXT] Re: [PATCH v3 8/9] board/nxp/common/ls: Add standard post image script for Layerscape processors

Jerry Huang jerry.huang at nxp.com
Fri Dec 6 12:49:52 UTC 2019



Best Regards
Jerry Huang

> -----Original Message-----
> From: Jerry Huang
> Sent: Friday, December 6, 2019 8:35 PM
> To: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> Cc: Vladimir Oltean <olteanv at gmail.com>; buildroot at busybox.net; Michael
> Walle <michael at walle.cc>; geomatsi at gmail.com;
> matthew.weber at collins.com
> Subject: RE: [EXT] Re: [Buildroot] [PATCH v3 8/9] board/nxp/common/ls: Add
> standard post image script for Layerscape processors
> 
> 
> 
> Best Regards
> Jerry Huang
> 
> > -----Original Message-----
> > From: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> > Sent: Friday, December 6, 2019 4:04 PM
> > To: Jerry Huang <jerry.huang at nxp.com>
> > Cc: Vladimir Oltean <olteanv at gmail.com>; buildroot at busybox.net;
> > Michael Walle <michael at walle.cc>; geomatsi at gmail.com;
> > matthew.weber at collins.com
> > Subject: Re: [EXT] Re: [Buildroot] [PATCH v3 8/9] board/nxp/common/ls:
> > Add standard post image script for Layerscape processors
> >
> > Caution: EXT Email
> >
> > On Fri, 6 Dec 2019 07:23:17 +0000
> > Jerry Huang <jerry.huang at nxp.com> wrote:
> >
> > > > > +       # build the itb image
> > > > > +       cp board/nxp/$(plat_name)/kernel.its
> > ${BINARIES_DIR}/kernel.its
> > > > > +       cd ${BINARIES_DIR}/
> > > > > +       /usr/bin/mkimage -f kernel.its kernel.itb
> > > >
> > > > Why does mkimage have the full path specified here?
> > > Use the mkimage at host machine.
> >
> > And that is not correct because nothing guarantees you that there is
> > an mkimage installed in /usr/bin/mkimage. You can only rely on the
> > mkimage built by Buildroot.
> I want to use the mkimage built by buildroot from uboot-tools, but I got this
> error when handling DTB file:
> mkimage: unsupported type Flat Device Tree
> 
> the DTB file is create with command "make" during building Linux kernel.
> 
> When I use mkimage from ubuntu system, it is no any problem.
> 
> So ,how to handle it?
More information:
When the Linux kernel is 4.14, there is not any issue when using mkimage built by buildroot to create ITB file.

Now the Linux kernel is 4.19, the error is reported when using mkimage built by buildroot to handle the DTB file.

> > Thomas
> > --
> > Thomas Petazzoni, CTO, Bootlin
> > Embedded Linux and Kernel engineering
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fboot
> > lin.c
> om&data=02%7C01%7Cjerry.huang%40nxp.com%7Cc0a9dbf3584742076d
> >
> c608d77a22d5f2%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6371
> >
> 12162347177474&sdata=iAhqJ45WKxYlgdrbEd8DISqFyKX4t3nfm8jNN6BEl
> > ZQ%3D&reserved=0


More information about the buildroot mailing list