Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Apr 1997 10:53:27 +0200 (CEST)
From:      Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: What is the absolute minimum options for a kernel? (INET required)
Message-ID:  <Pine.BSF.3.95.970426101358.854A-100000@lend.tu-graz.ac.at>

next in thread | raw e-mail | index | archive | help
Actually with a few '#ifdef INET' in /usr/src/sys/i386/i386/machdep.c you
*can* get rid of INET. (Email me for a patch).
I was curious how much one can strip down a kernel and still run it and
ended up with:
# /sys/compile/BARE
# minimum kernel configuration
ident		BARE
options		MFS
options		MFS_ROOT=1
machine		"i386"
cpu		"I386_CPU"
cpu		"I486_CPU"
cpu		"I586_CPU"
cpu		"I686_CPU"
maxusers	8
config		kernel root on wd0
controller	isa0
# Mandatory, don't remove
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

Obviously MFS_ROOT has to be tuned, I've set it to 1K to see
>size /bare
text    data    bss     dec     hex
368640  32768   20960   422368  671e0
how much fat remains.
(To do anything with it you may want to add some device drivers too).

BTW, the V7 kernel (1979) was 40K only.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970426101358.854A-100000>