[PATCH 2/7] scripts: new kwbimage manipulation tool for Marvell SoC boot images
Sascha Hauer
s.hauer at pengutronix.de
Tue May 7 05:47:52 EDT 2013
On Tue, May 07, 2013 at 11:33:24AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 23:03 Mon 06 May , Thomas Petazzoni wrote:
> > Dear Sascha Hauer,
> >
> > On Mon, 6 May 2013 22:56:31 +0200, Sascha Hauer wrote:
> >
> > > > > Barebox update will generate the correct image for the storagemedia at
> > > > > runtime
> > > >
> > > > What is "Barebox update" ?
> > >
> > > barebox_update is a command that you can call during runtime to update
> > > barebox. Over writing images directly to the storage it has the
> > > advantage that you can do additional sanity checks on the images.
> > >
> > > Also for example on i.MX a board specific poke table is all you need
> > > to bring up SDRAM. As long as you have this poke table and a devicetree
> > > you could use the same binary on different boards.
> >
> > Ok, makes sense. On Marvell Kirkwood, the SDRAM bring up is also done
> > using a set of (address, value) pairs that are part of the image
> > header. This mechanism is also available for Armada 370/XP, but
> > apparently, DDR3 requires a more dynamic tuning to find optimal
> > timings, so having static values in a table is no longer appropriate.
> >
> > In our case, how would barebox_update work? Would it overwrite just the
> > barebox.bin payload (which would require updating the 32 bits checksum
> > and the payload size in the header, otherwise the Marvell SoC would not
> > boot the image at the next reboot), or should it overwrite the whole
> > image (in which case it would have to re-extract the configuration and
> > the binary blob, and reconstruct the image at runtime) ? Probably the
> > first solution is the easiest one.
>
> yes you need to construct the image at *runtime* and drop this madness of 1
> image per media to generate. As this will create 1 defconfig per target device
>
> which duplicate the defconfig and make the maintainance a nightmare
That's the way we currently do it. Don't expect from Thomas to do it
differently as long there is not even a single example in the tree how
to do it.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list