The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/boot/kzipboot/

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

Name Size Last modified (GMT) Description
Back Parent directory 2023-01-29 20:54:29
File Makefile 692 bytes 2023-01-29 20:54:29
File README 1295 bytes 2023-01-29 20:54:29
C file boot.c 2693 bytes 2023-01-29 20:54:29
C file gzip.h 2765 bytes 2023-01-29 20:54:29
File head.S 302 bytes 2023-01-29 20:54:29
C file malloc.c 2172 bytes 2023-01-29 20:54:29
C file misc.c 4687 bytes 2023-01-29 20:54:29
File tail.S 283 bytes 2023-01-29 20:54:29
C file unzip.c 4715 bytes 2023-01-29 20:54:29

    1 /* Beware: mostly obsolete info */
    2 
    3 This is the first (alpha) release of kernel packer/unpacker
    4 for FreeBSD.  It is based on xBoot from Linux, but
    5 hardly rewritten.
    6 
    7 It assumes that:
    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.
   11 
   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.
   15 
   16 Then try to zip your kernel, for example:
   17 
   18         % kzip /kernel
   19         System size is 462848
   20         Compressed size 247027
   21 
   22 It will create file /kernel.kz:
   23 
   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
   27 
   28 Then rename /kernel.kz to /kernel and reboot.
   29 
   30         % mv /kernel /o3kernel
   31         % mv /kernel.kz /kernel
   32         % sync
   33         % reboot
   34 
   35 During booting, you will see the message:
   36 
   37         Uncompressing kernel...done
   38         Booting the kernel
   39 
   40 The packed kernel should load and run.
   41 
   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.
   45 
   46 Packed kernels are good for install and fixit floppies.
   47 
   48 Serge Vakulenko, <vak@zebub.msk.su>
   49 Opdated for FreeBSD 2.1 by Gary Jennejohn 12FEB95

[ source navigation ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.