head	1.2;
access;
symbols
	RELENG_4_11_0_RELEASE:1.1
	RELENG_4_11:1.1.0.34
	RELENG_4_11_BP:1.1
	RELENG_4_10_0_RELEASE:1.1
	RELENG_4_10:1.1.0.32
	RELENG_4_10_BP:1.1
	RELENG_4_9_0_RELEASE:1.1
	RELENG_4_9:1.1.0.30
	RELENG_4_9_BP:1.1
	RELENG_4_8_0_RELEASE:1.1
	RELENG_4_8:1.1.0.28
	RELENG_4_8_BP:1.1
	RELENG_4_7_0_RELEASE:1.1
	RELENG_4_7:1.1.0.26
	RELENG_4_7_BP:1.1
	RELENG_4_6_2_RELEASE:1.1
	RELENG_4_6_1_RELEASE:1.1
	RELENG_4_6_0_RELEASE:1.1
	RELENG_4_6:1.1.0.24
	RELENG_4_6_BP:1.1
	RELENG_4_5_0_RELEASE:1.1
	RELENG_4_5:1.1.0.22
	RELENG_4_5_BP:1.1
	RELENG_4_4_0_RELEASE:1.1
	RELENG_4_4:1.1.0.20
	RELENG_4_4_BP:1.1
	RELENG_4_3_0_RELEASE:1.1
	RELENG_4_3:1.1.0.18
	RELENG_4_3_BP:1.1
	RELENG_4_2_0_RELEASE:1.1
	RELENG_4_1_1_RELEASE:1.1
	RELENG_4_1_0_RELEASE:1.1
	RELENG_3_5_0_RELEASE:1.1
	RELENG_4_0_0_RELEASE:1.1
	RELENG_4:1.1.0.16
	RELENG_4_BP:1.1
	RELENG_3_4_0_RELEASE:1.1
	RELENG_3_3_0_RELEASE:1.1
	RELENG_3_2_PAO:1.1.0.14
	RELENG_3_2_PAO_BP:1.1
	RELENG_3_2_0_RELEASE:1.1
	POST_VFS_BIO_NFS_PATCH:1.1
	PRE_VFS_BIO_NFS_PATCH:1.1
	POST_SMP_VMSHARE:1.1
	PRE_SMP_VMSHARE:1.1
	POST_NEWBUS:1.1
	PRE_NEWBUS:1.1
	RELENG_3_1_0_RELEASE:1.1
	RELENG_3:1.1.0.12
	RELENG_3_BP:1.1
	RELENG_2_2_8_RELEASE:1.1
	RELENG_3_0_0_RELEASE:1.1
	RELENG_2_2_7_RELEASE:1.1
	PRE_NOBDEV:1.1
	POST_DEVFS_SLICE:1.1
	PRE_DEVFS_SLICE:1.1
	RELENG_2_2_6_RELEASE:1.1
	POST_SOFTUPDATE:1.1
	PRE_SOFTUPDATE:1.1
	RELENG_2_2_5_RELEASE:1.1
	WOLLMAN_MBUF:1.1.0.10
	BP_WOLLMAN_MBUF:1.1
	RELENG_2_2_2_RELEASE:1.1
	post_smp_merge:1.1
	pre_smp_merge:1.1
	RELENG_2_2_1_RELEASE:1.1
	RELENG_2_2_0_RELEASE:1.1
	RELENG_2_1_7_RELEASE:1.1
	RELENG_2_1_6_1_RELEASE:1.1
	RELENG_2_1_6_RELEASE:1.1
	RELENG_2_2:1.1.0.8
	RELENG_2_2_BP:1.1
	RELENG_2_1_5_RELEASE:1.1
	wollman_polling:1.1.0.6
	RELENG_2_1_0_RELEASE:1.1
	RELENG_2_1_0:1.1.0.4
	RELENG_2_1_0_BP:1.1
	RELENG_2_0_5_RELEASE:1.1
	RELENG_2_0_5:1.1.0.2
	RELENG_2_0_5_BP:1.1
	RELENG_2_0_5_ALPHA:1.1;
locks; strict;
comment	@# @;


1.2
date	2000.03.19.11.42.22;	author peter;	state dead;
branches;
next	1.1;

1.1
date	95.04.15.08.23.35;	author phk;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Remove the old a.out-only boot loader, we don't use it any more.
The new boot1/boot2 can load a.out and elf kernels directly.
I think the sys/pc98 version can go too as the sys/boot/pc98 code
appears to be functional, but I'll leave that for the pc98 folks.

"There can be only one."
@
text
@/* Beware: mostly obsolete info */

This is the first (alpha) release of kernel packer/unpacker
for FreeBSD.  It is based on xBoot from Linux, but
hardly rewritten.

It assumes that:
1) The kernel should be loaded at 0x100000 phys address.
2) The CS selector is equal to 8, which is OK for all
   current secondary boot programs.

Run "make install" to install it.  It will place
"kzip" shell script into /usr/sbin, and several files
into /usr/libexec/kzip directory.

Then try to zip your kernel, for example:

	% kzip /kernel
	System size is 462848
	Compressed size 247027

It will create file /kernel.kz:

	% ls -l /kernel /kernel.kz
	-rwxr-xr-x    1 root       497297 Oct  8 12:41 /386bsd
	-rwxrwxr-x    1 root       262144 Oct  8 13:37 /386bsd.kz

Then rename /kernel.kz to /kernel and reboot.

	% mv /kernel /o3kernel
	% mv /kernel.kz /kernel
	% sync
	% reboot

During booting, you will see the message:

	Uncompressing kernel...done
	Booting the kernel

The packed kernel should load and run.

The main problem with packed kernel is the lack of symbol table,
so all commands that require it, will not run.
Among them: ps, savecore, *stat, etc.

Packed kernels are good for install and fixit floppies.

Serge Vakulenko, <vak@@zebub.msk.su>
Opdated for FreeBSD 2.1 by Gary Jennejohn 12FEB95
@


1.1
log
@The magic code to uncompress a kernel.

Reviewed by:	phk
Obtained from:	Linux via 386BSD.
@
text
@@

