1 /* Beware: mostly obsolete info */
3 This is the first (alpha) release of kernel packer/unpacker
4 for FreeBSD. It is based on xBoot from Linux, but
8 1) The kernel should be loaded at 0x100000 phys address.
9 2) The CS selector is equal to 8, which is OK for all
10 current secondary boot programs.
12 Run "make install" to install it. It will place
13 "kzip" shell script into /usr/sbin, and several files
14 into /usr/libexec/kzip directory.
16 Then try to zip your kernel, for example:
20 Compressed size 247027
22 It will create file /kernel.kz:
24 % ls -l /kernel /kernel.kz
25 -rwxr-xr-x 1 root 497297 Oct 8 12:41 /386bsd
26 -rwxrwxr-x 1 root 262144 Oct 8 13:37 /386bsd.kz
28 Then rename /kernel.kz to /kernel and reboot.
30 % mv /kernel /o3kernel
31 % mv /kernel.kz /kernel
35 During booting, you will see the message:
37 Uncompressing kernel...done
40 The packed kernel should load and run.
42 The main problem with packed kernel is the lack of symbol table,
43 so all commands that require it, will not run.
44 Among them: ps, savecore, *stat, etc.
46 Packed kernels are good for install and fixit floppies.
48 Serge Vakulenko, <vak@zebub.msk.su>
49 Opdated for FreeBSD 2.1 by Gary Jennejohn 12FEB95