[BusyBox] LZMA (Patches for busybox and buildroot)

Thomas Lundquist lists at zelow.no
Thu May 5 04:43:07 MDT 2005


I am crossposting this and not putting it on the bug tracking (yet) as
this is more or less a "total package" for both busybox and buildroot.

I have added lzma support to both. It has saved me quite alot of space
since it has the best compression I have seen so far. The downside of
lzma (of which we have added to) is that there seems to be no real
standard on how the files are made which makes the different utils
incompatible with eachother.

I've pasted the contents of the Readme file at the end of this post.

The lzma compressor(s) need C++ but the decompressor (lzmacat) uses a C
only library.

My misfortune is that floppyfw, which this was made for, uses a compiled
uClibc without LARGEFILE support and therefore buildroot g++ > 3.4 won't 
compile.  I'd be happy if anyone looked at this since I haven't been
able to sort it out.

I also am half way to buildroot packages for mksquashfs-lzma and
cramfstools with lzma support, so if this is accepted I'll finish those
two aswell.

All this can be found at:

http://www.zelow.no/floppyfw/download/Development/Patches/

(Where you also have a couple other applets. fakeident are already in
busybox snapshot but cryptpw could be nice aswell)

http://www.zelow.no/floppyfw/download/Development/lzma/

http://www.zelow.no/floppyfw/download/Development/Patches/README.lzma

-- snip -- 

This is a readme for lzma in busybox, buildroot, kernel and standalone.

This is in use by floppyfw, both the floppyfw itself and the
corresponding floppyfw devkit based on buildroot.

The feature common for all these packages are that they use the
zlib/stream 
based method as used by the lzma patched mksquashfs found at 
http://oleg.wl500g.info/

Thanks to Ming-Ching Tiew <mctiew at yahoo.com> for lzmatools and the
kernel patch.


lzmatools

a compressor and decompressor. both pretty simple.

This requires the lzma sdk version 4.06 to compile.

http://www.7-zip.org/sdk.html

Kernel LZMA compression:

This is a patch to use lzma for compressing/decompressing vmlinux and
it is alot better than bzImage and UPX. It does need lzmacomp from the 
lzmatools package. 

http://www.zelow.no/floppyfw/download/Development/lzma/

Busybox:

lzmacat is a busybox adaption of the lzmacat in the izmatools package.

Buildroot stuff:

lzmatools-buildroot.tgz is make files for lzmatools

lzma-buildroot.tgz is a separate lzma tool from 
http://martinus.geekisp.com/rublog.cgi/Projects/LZMA
This is not compatible with the other lzma based tools and patches here 
and neither the lzma tools you can compile from the SDK (the last time 
I checked at least)

Thomas.
thomasez at zelow.no



More information about the busybox mailing list