On Wed, Mar 27, 2013 at 3:15 PM, Nicolas Pitre <nico(a)fluxnic.net> wrote:
On Wed, 27 Mar 2013, Peter Robinson wrote:
> On 27 Mar 2013 03:24, "Jon" <jdisnard(a)gmail.com> wrote:
> > The problem statement is different u-boot are different, and we cannot
> > have unified images.
>
> Yes we can, we just need a tool to adjust the uboot bit like Han's tool for
> the A1x devices. Its less ugly than multiple images which are even less
> workable.
That tool is called 'mkimage'. You grab a universal zImage, and use
mkimage on it at installation time to adjust it to the U-Boot runtime
environment where it is installed.
Morale of this story: including mkimage (aka "make uImage") as part of
the kernel build process was a mistake. It has sent the wrong message
to people, presenting uImage as the distributable build product which it
is not.
The tool is not mkimage, it does likely use mkimage underneath though,
it's a ncurses menu which allows you to select the device you have and
it generates the correct bits for boot. Whether Hans generates all the
mkimage options before hand and just copies the right one into place
or generates them on the fly I'm not 100% sure.
Peter