Subject: Probleme beim Kompilieren des Kernels
To: NetBSD-Deutsch <regional-de@NetBSD.org>
From: Thomas Kaepernick <Thomas.Kaepernick@web.de>
List: regional-de
Date: 10/03/2006 18:04:15
Liebe Leute,
ich versuche seit einiger Zeit mit folgender Config einen Kernel zu
backen:
include "arch/i386/conf/std.i386"
makeoptions COPTS="-Os"
maxusers 2 # estimated number of users
options I486_CPU
options MATH_EMULATE # floating point emulation
options PIC_DELAY
options NOREDZONE
options INSECURE # disable kernel security levels - X needs this
options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
options NMBCLUSTERS=256
options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
options COMPAT_11 # NetBSD 1.1
options COMPAT_16 # NetBSD 1.6
options COMPAT_43 # 4.3BSD, 386BSD, and BSDI
options COMPAT_386BSD_MBRPART # recognize old partition ID
file-system FFS # UFS
file-system NFS # Network File System client
file-system MSDOSFS # MS-DOS file system
file-system KERNFS # /kern
# immutable) behave as system flags.
options VNODE_OP_NOINLINE # don't inline vnode op calls
options INET # IP + ICMP + TCP + UDP
options ALTQ_FIFOQ # First-In First-Out Queue
config netbsd root on ? type ?
options WSEMUL_VT100 # VT100 / VT220 emulation
options WS_KERNEL_FG=WSCOL_BLACK
options WS_KERNEL_BG=WSCOL_WHITE
options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls
options WSDISPLAY_COMPAT_USL # VT handling
options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
options WSDISPLAY_DEFAULTSCREENS=2
options PCDISPLAY_SOFTCURSOR
mainbus0 at root
cpu0 at mainbus0
isa0 at mainbus?
pcmcia* at pcic? controller ? socket ?
pcic0 at isa? port 0x3e0 iomem 0xd0000 iosiz 0x4000
pcic1 at isa? port 0x3e2 iomem 0xd4000 iosiz 0x4000
npx0 at isa? port 0xf0 irq 13 # x86 math coprocessor
pckbc0 at isa? # pc keyboard controller
pckbd* at pckbc? # PC keyboard
vga0 at isa?
wsdisplay* at vga? console ?
wskbd* at pckbd? console ?
pcppi0 at isa?
sysbeep0 at pcppi?
com0 at isa? port 0x3f8 irq 4 # Standard PC serial ports
com1 at isa? port 0x2f8 irq 3
lpt0 at isa? port 0x378 irq 7 # standard PC parallel ports
wdc0 at isa? port 0x1f0 irq 14 # ST506, ESDI, and IDE controllers
fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard PC floppy controllers
fd* at fdc? drive ? # the drives themselves
include "arch/i386/conf/GENERIC.local"
pseudo-device ipfilter # IP filter (firewall) and NAT
pseudo-device loop # network loopback
pseudo-device ppp 2 # Point-to-Point Protocol
pseudo-device tun 2 # network tunneling over tty
pseudo-device pty # pseudo-terminals
pseudo-device rnd # /dev/random and in-kernel generator
pseudo-device clockctl # user control of clock subsystem
Mit der den Sourcen vom 2.0.3er lief der config-Lauf durch. Beim Make-Lauf
erhielt ich folgende Meldung:
# link CAPTAIN/netbsd
ld -T ../../../../arch/i386/conf/kern.ldscript -Ttext c0100000 -e start -X -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
wdc_isa.o(.text+0x104): In function `wdc_isa_probe':
: undefined reference to `wdcprobe'
wdc_isa.o(.text+0x260): In function `wdc_isa_attach':
: undefined reference to `wdcintr'
wdc_isa.o(.text+0x2fd): In function `wdc_isa_attach:
: undefined reference to `wdcattach'
*** Error code 1
Stop.
Bei der 3.99-Kernel-Source erhalte ich schon im config-Lauf die folgende
Fehlermeldung:
../../../../netinet/files.ipfilter:22: syntax error
../../../../net/files.pf:16: syntax error
*** Stop.
Ich möchte so einen kleinen Kernel bauen, um ihn auf einem 486 mit 4 MByte
RAM zu verwenden. Gebaut wird er auf einem 2.0-Maschine.
Was mache ich da falsch? Habe ich eine wichtige Option ausgeschaltet?
Gruß
Thomas Kaepernick