[Buildroot] Compile Linux with Buildroot for i.MX28 EVK

Mikael Åsberg mikael.asberg at mdh.se
Sat Feb 25 08:39:12 UTC 2012


I understand that LZO has been mainlined in Linux.
How do I compress the kernel with LZO instead of the regular compression algorithm (LZMA/BZIP2)?

--------------------------------------------------------------
Mikael Åsberg
PhD student (Doktorand), Computer Engineering
School of Innovation, Design and Engineering
Mälardalen University, Västerås Sweden
Phone: +46(0)21 101502
Room nr: U1-145
Mail: mikael.asberg at mdh.se
--------------------------------------------------------------
________________________________________
Från: Thomas Petazzoni [thomas.petazzoni at free-electrons.com]
Skickat: den 24 februari 2012 21:31
Till: Mikael Åsberg
Kopia: Jean-Christophe PLAGNIOL-VILLARD; buildroot at busybox.net
Ämne: Re: [Buildroot] Compile Linux with Buildroot for i.MX28 EVK

Le Fri, 24 Feb 2012 17:46:55 +0100,
Mikael Åsberg <mikael.asberg at mdh.se> a écrit :

> Maybe I can de-compress a zImage to a "raw" Image, is that what you
> did?

On ARM, arch/arm/boot/Image is the raw uncompressed version of the
kernel. You can try to load it and jump to the beginning of it. You can
turn it into an uImage by calling mkimage on it.

However, as suggested by Jean-Christophe, you should really try LZO. It
is a very good trade-off between kernel size and decompression time.
Remember that using an uncompressed kernel means that you have a *lot*
more data to load from flash to RAM, which allows take time. Usually
LZO is a great compromise here.

Best regards,

Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list