Patches item #443891, was opened at 2001-07-23 12:15
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=313751&aid=443891&group_id=13751

Category: EigerStein
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Noyes (mhnoyes)
Assigned to: Charles Steinkuehler (cstein)
Summary: upx 2.2.16 kernel

Initial Comment:
A compressed version of the EigerStein 2.2.16 LRP kernel
made using the upx program. Copy it over the linux file
on your EigerStein floppy, and everything should work as
before, except that you will now have 50K more free space
on the floppy!

This must be considered experimental because the an
"unstable" version of the upx program was used. All I can
say is this works flawlessly for me.

The following is a corrected version of the message I
posted to the linux-router list explaining how I created
the file:

I saw the following idea in the Freesco forum, tried it,
and amazingly it works. I shrunk my LRP kernel (the
"linux" file) and saved about 50K. This is highly
experimental - use at your own risk.

There is a program called upx that creates
self-uncompressing versions of executable programs, and
in particular can make compressed kernels. See the upx
home page at:

http://wildsau.idv.uni-linz.ac.at/mfx/upx.html

Of course LRP kernels are already compressed, but upx
compresses them more. I tried this with the EigerStein
2.2.16 kernel. The original was 454,035 bytes. The
compressed version is 393,967.

Just copy the linux file in this archive to your
EigerStein disk or other LRP boot disk using the 2.2.16
kernel with the same kernel options as EigerStein.

You can compress you LRP kernel in the following way.
This is the procedure I used.

1. Download:

http://wildsau.idv.unilinz.ac.at/mfx/download/upx\
/unstable/upx1.11-linux.tar.gz

Note that this is the unstable version of upx!!!
Presumably the kernel compression feature will make it in
to the next stable version. At the time of writing, the
latest stable version is 1.04, and the upx team plans to
put kernel compression into version 1.20. Until that is
released, you have to use unstable version 1.11.

2. Copy the file upx from the upx 1.11 distribution
downloaded in step #1 and the linux file from your LRP
disk to a scratch space on a machine running a full Linux
with a 2.2 or later kernel. 

Upx doesn't run under LRP (at least not mine - I got page
errors) or Debian 2.1 (segmentation fault) but it did run
under Mandrake 7.2. I suspect it just needs a 2.2 kernel
on any regular Linux distribution. 

3. Execute

  ./upx -9 vmlinuz

When upx executes, it should mention file type vmlinuz.
If it doesn't, then for some reason upx is not
autdetecting the linux file as a compressed kernel.

4. Copy the linux file onto your LRP boot disk,
overwriting the old linux file.

5. Boot your lrp disk!!!

I would apreciate a quick email from anyone who tries
this, whether it works or not.

Tim Wegner
[EMAIL PROTECTED]


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=313751&aid=443891&group_id=13751

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to