lzma
Ronald G Minnich
rminnich at lanl.gov
Thu Sep 14 12:50:07 EDT 2006
I just booted into an lzma-compressed payload.
It freed up some memory ...
[rminnich at q buildrom]$ make
Cleaning up shared libraries...
Building the initrd...
Building the uncompressed ELF payload...
Compressing the ELF payload with lzma...
Bytes left in ROM: 218117
Building linuxbios...
is that 200K? so it would seem ...
[rminnich at q ~]$ ls -l /tmp/olpcpayload.elf
-rw-rw-r-- 1 rminnich rminnich 666619 Sep 14 10:41 /tmp/olpcpayload.elf
[rminnich at q ~]$
I am attaching my diffs to git.
You probably don't want that verbose, but could we, pretty please :-)
leave the console at tty0? :-)
Here's what you change in linuxbios to test this.
[rminnich at q LinuxBIOSv2]$ svn diff
Index: targets/olpc/rev_a/Config.SPI.lb
===================================================================
--- targets/olpc/rev_a/Config.SPI.lb (revision 2414)
+++ targets/olpc/rev_a/Config.SPI.lb (working copy)
@@ -5,8 +5,8 @@
# Don't let LinuxBIOS compress the payload
#option CONFIG_COMPRESSED_ROM_STREAM_NRV2B=0
-#option CONFIG_COMPRESSED_ROM_STREAM_LZMA=1
-#option CONFIG_PRECOMPRESSED_ROM_STREAM=0
+option CONFIG_COMPRESSED_ROM_STREAM_LZMA=1
+option CONFIG_PRECOMPRESSED_ROM_STREAM=1
# leave 64k for vsa and 64k for EC code
option ROM_SIZE=(1024*1024)-(64*1024)-(64*1024)
many thanks to Carl-Daniel for his fine work. Carl-Daniel, your lzma
stuff worked first time!
The lzma, and my mods to linuxbios for it, seem to have worked so well
that I keep going back to history to see if I really did use the lzma,
but I think I did. Somebody else try this and see if I'm dreaming.
thanks
ron
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gitdiff
URL: <http://lists.laptop.org/pipermail/devel/attachments/20060914/956ecaf2/attachment.ksh>
More information about the Devel
mailing list