Re: Common data for uImage generation

2010-08-25 Thread Loïc Minier
On Wed, Aug 25, 2010, Dave Martin wrote: > Also, does anyone know why U-Boot always prints "loading legacy image" > when loading images created with mkimage? Kinda suggests the U-Boot > folks think this image format has been superseded by _something_ but I > never figured out why. From a quick l

Re: Common data for uImage generation

2010-08-25 Thread Dave Martin
> > It would be great if we agreed that U-Boot should be able to cope with > zImage directly.  Adding the necessary support to U-Boot is trivial. I did come across a ramdom version of U-Boot which could load zImages, but I don't have a pointer to that any more. Also, does anyone know why U-Boot a

Re: Common data for uImage generation

2010-08-24 Thread Nicolas Pitre
On Tue, 24 Aug 2010, Loïc Minier wrote: > On Tue, Aug 24, 2010, Dave Martin wrote: > > Couldn't we simply use the kernel tree "make uImage" rule, and put the > > uImage in the kernel binary packages, rather than reduplicating this > > elsewhere? Of course, which kernel tree targets to build may t

Re: Common data for uImage generation

2010-08-24 Thread Nicolas Pitre
On Tue, 24 Aug 2010, Dave Martin wrote: > Hi, > > On Mon, Aug 23, 2010 at 11:20 PM, Loïc Minier wrote: > > [...] > > > > >  a kernel build most commonly outputs a zImage; this is then converted > >  to an uImage for u-boot consumption with some rune like: > >    mkimage -A arm -O linux -T kern

Re: Common data for uImage generation

2010-08-24 Thread Amit Kucheria
On 10 Aug 24, Loïc Minier wrote: > On Tue, Aug 24, 2010, Alexander Sack wrote: > > assuming we have support to cross install debs on your sdcard, wouldn''t it > > be good enough for your case to keep the old deb and install that rather > > than keeping the backup on the sdcard? > > It's a valid p

Re: Common data for uImage generation

2010-08-24 Thread Loïc Minier
On Tue, Aug 24, 2010, Alexander Sack wrote: > assuming we have support to cross install debs on your sdcard, wouldn''t it > be good enough for your case to keep the old deb and install that rather > than keeping the backup on the sdcard? It's a valid point; also, the kernel changes ABI so frequen

Re: Common data for uImage generation

2010-08-24 Thread Loïc Minier
On Tue, Aug 24, 2010, Dave Martin wrote: > Couldn't we simply use the kernel tree "make uImage" rule, and put the > uImage in the kernel binary packages, rather than reduplicating this > elsewhere? Of course, which kernel tree targets to build may then > become board-specific, which might be seen

Re: Common data for uImage generation

2010-08-24 Thread Alexander Sack
On Tue, Aug 24, 2010 at 12:09 PM, Amit Kucheria wrote: > On 10 Aug 24, Loïc Minier wrote: > > On Tue, Aug 24, 2010, Amit Kucheria wrote: > > > * Ability to have a 'backup' kernel/initramfs in case of broken kernels > > >- A script running on x86 should allow me to revert to the backup > kernel

Re: Common data for uImage generation

2010-08-24 Thread Amit Kucheria
On 10 Aug 24, Loïc Minier wrote: > On Tue, Aug 24, 2010, Amit Kucheria wrote: > > * Ability to have a 'backup' kernel/initramfs in case of broken kernels > >- A script running on x86 should allow me to revert to the backup kernel > >incase the new kernel does not boot > > Keeping a backup

Re: Common data for uImage generation

2010-08-24 Thread Loïc Minier
On Tue, Aug 24, 2010, Amit Kucheria wrote: > * Ability to have a 'backup' kernel/initramfs in case of broken kernels >- A script running on x86 should allow me to revert to the backup kernel >incase the new kernel does not boot Keeping a backup is a good idea, but installing it from your

Re: Common data for uImage generation

2010-08-24 Thread Amit Kucheria
On Tue, Aug 24, 2010 at 11:28 AM, Dave Martin wrote: > Hi, > > On Mon, Aug 23, 2010 at 11:20 PM, Loïc Minier wrote: > > [...] > >> >>  a kernel build most commonly outputs a zImage; this is then converted >>  to an uImage for u-boot consumption with some rune like: >>    mkimage -A arm -O linux -

Re: Common data for uImage generation

2010-08-24 Thread Dave Martin
Hi, On Mon, Aug 23, 2010 at 11:20 PM, Loïc Minier wrote: [...] > >  a kernel build most commonly outputs a zImage; this is then converted >  to an uImage for u-boot consumption with some rune like: >    mkimage -A arm -O linux -T kernel -C none \ >        -a 0x80008000 -e 0x80008000 -n Linux \

Re: Common data for uImage generation

2010-08-23 Thread Amit Kucheria
On 10 Aug 24, Loïc Minier wrote: > > So what kind of operations do we want to be able to do? > > * generate an u-boot kernel image from a zImage >- input: zImage, kernel load address >- output: uImage > * generate an u-boot initrd image from an initrd.gz >- input: initrd.gz, initrd

Common data for uImage generation

2010-08-23 Thread Loïc Minier
Hey There are a bunch of places where we generate uImages and which duplicate information. a kernel build most commonly outputs a zImage; this is then converted to an uImage for u-boot consumption with some rune like: mkimage -A arm -O linux -T kernel -C none \ -a 0x800080