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

Re: Test images for Debian lenny rc2 available



On Sun, Feb 8, 2009 at 04:33, Loïc Minier <lool@dooz.org> wrote:

>  Interesting, didn't think of that!  Debian and Ubuntu armel are both
>  targetting armel only, so while an interesting stunt I don't think I'll
>  aim at providing armeb kernels; instead I guess I'll try to load an
>  APEX image as d-i does.

You should be able to use the little endian kernel image, and I think
that all you have to do is endian swap the kernel image file using
devio, i.e. something like,

wget http://ftp.debian.org/debian/dists/testing/main/installer-armel/current/images/ixp4xx/netboot/vmlinuz-2.6.26-1-ixp4xx
mv vmlinuz-2.6.26-1-ixp4xx vmlinuz-2.6.26-1-ixp4xx.orig
devio '<< vmlinuz-2.6.26-1-ixp4xx.orig; xp $ 4' > vmlinuz-2.6.26-1-ixp4xx

In this case, it is lucky that the kernel image is a multiple of 4 in
size. Otherwise, one would have to pad the image before endian
swapping it:

mv vmlinuz-2.6.26-1-ixp4xx vmlinuz-2.6.26-1-ixp4xx.orig
dd if=vmlinuz-2.6.26-1-ixp4xx of=vmlinuz-2.6.26-1-ixp4xx.pad ibs=xxx conv=sync
devio '<< vmlinuz-2.6.26-1-ixp4xx.pad; xp $ 4' > vmlinuz-2.6.26-1-ixp4xx

where xxx is a number that is a multiple of four and is larger than
the image size.

I should really try this out :-)

Gordon

-- 
Gordon Farquharson
GnuPG Key ID: 32D6D676


Reply to: