Date: Fri, 11 Jun 1999 00:04:33 +0200 From: Jeroen Ruigrok van der Werven <asmodai@ninth-circle.org> To: Rene Veerman <rene@xs4all.nl> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: newbie attempting to compile a 3.2 kernel Message-ID: <19990611000433.B7680@ninth-circle.org> In-Reply-To: <199906100805.KAA00634@smtp3.xs4all.nl>; from Rene Veerman on Sun, Jun 13, 1999 at 10:05:36AM %2B0200 References: <199906100805.KAA00634@smtp3.xs4all.nl>
index | next in thread | previous in thread | raw e-mail
* Rene Veerman (rene@xs4all.nl) [990610 13:55]:
> Hija.
>
> I editted the kernel-config file myself (see bottom of mail), and tried
> compiling the kernel as described in the handbook. It compiled just fine,
> but when booting it comes up with
>
> elf_loadexec: archsw.readin failed
>
> Here, i'm lost ;-)
No clue what this means...
> Can anyone tell me what I'm doing wrong here? (any other tips you have on
> this kernel config are also appreciated).
See inserted text.
> # Rene's modest little kernel
>
> machine "i386"
> cpu "I586_CPU"
I thought it was recommended to leave cpu's be that equal yer's or are
greater...
> ident MESSENGER-EXPERIMENTAL
> maxusers 32
>
> options INET #InterNETworking
> options FFS #Berkeley Fast Filesystem
> options FFS_ROOT #FFS usable as root device [keep this!]
> options MFS #Memory Filesystem
> options NFS #Network Filesystem
> options MSDOSFS #MSDOS Filesystem
> options "CD9660" #ISO 9660 Filesystem
> options "CD9660_ROOT" #CD-ROM usable as root. "CD9660" req'ed
> options PROCFS #Process filesystem
> options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!]
> options SCSI_DELAY=5000 #Be pessimistic about Joe SCSI device
> options UCONSOLE #Allow users to grab the console
> options FAILSAFE #Be conservative
> options USERCONFIG #boot -c editor
> options VISUAL_USERCONFIG #visual boot -c editor
> options QUOTA
>
>
> config kernel root on wd0
>
> options "NO_F00F_HACK"
Remove that line, it's generally better to check for F00F with pentiums.
> options "MD5"
>
> controller isa0
> controller pnp0
> controller eisa0
> controller pci0
Ye really need eisa0?
> controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2
> disk fd0 at fdc0 drive 0
>
> #disk fd1 at fdc0 drive 1
>
> #options "CMD640" # work around CMD640 chip deficiency
> controller wdc0 at isa? port "IO_WD1" bio irq 14
> disk wd0 at wdc0 drive 0
> disk wd1 at wdc0 drive 1
>
> controller wdc1 at isa? port "IO_WD2" bio irq 15
> disk wd2 at wdc1 drive 0
> disk wd3 at wdc1 drive 1
>
> options ATAPI #Enable ATAPI support for IDE bus
> options ATAPI_STATIC #Don't do it as an LKM
> device acd0 #IDE CD-ROM
> device wfd0 #IDE Floppy (e.g. LS-120)
Ye also have a LS-120? =)
> # A single entry for any of these controllers (ncr, ahb, ahc) is
> # sufficient for any number of installed devices.
> controller ahc0
> controller scbus0
> device vp0
> device da0
>
> device sa0
>
> device pass0
>
> device cd0 #Only need one of these, the code dynamically grows
>
> device wt0 at isa? port 0x300 bio irq 5 drq 1
> device mcd0 at isa? port 0x300 bio irq 10
>
> controller matcd0 at isa? port 0x230 bio
Surely there's no need for 4 diff cd-rom drivers? either use acd0, mcd0,
matcd0 or scd0. cd0 is SCSI.
Also, I gather yer using a mixed IDE/SCSI system?
> device scd0 at isa? port 0x230 bio
>
> # atkbdc0 controlls both the keyboard and the PS/2 mouse
> controller atkbdc0 at isa? port IO_KBD tty
> device atkbd0 at isa? tty irq 1
> device psm0 at isa? tty irq 12
>
> device vga0 at isa? port ? conflicts
>
> # splash screen/screen saver
> pseudo-device splash
>
> # syscons is the default console driver, resembling an SCO console
> device sc0 at isa? tty
>
> device npx0 at isa? port IO_NPX irq 13 #numeric CPU support
>
> # Serial port
> device sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4
> device sio1 at isa? port "IO_COM2" tty irq 3
> device sio2 at isa? disable port "IO_COM3" tty irq 5
> device sio3 at isa? disable port "IO_COM4" tty irq 9
Ye need 4 COM-ports? Just verifying.
> # Parallel port
> device ppc0 at isa? port? flags 0x40 net irq 7
> controller ppbus0
> device lpt0 at ppbus?
> device plip0 at ppbus?
> device ppi0 at ppbus?
> #controller vpo0 at ppbus?
>
> #
> # The following Ethernet NICs are all PCI devices.
> #
> device vx0 # 3Com 3c590, 3c595 (``Vortex'')
> device xl0 # 3Com 3c90x (``Boomerang'', ``Cyclone'')
>
> # Order is important here due to intrusive probes, do *not* alphabetize
> # this list of network interfaces until the probes have been fixed.
> # Right now it appears that the ie0 must be probed before ep0. See
> # revision 1.20 of this file.
>
> device ep0 at isa? port 0x300 net irq 10
>
> pseudo-device loop
> pseudo-device ether
> pseudo-device ppp 1
> pseudo-device tun 1
> pseudo-device pty 16
> pseudo-device gzip # Exec gzipped a.out's
[ snip of extra support and development stuff ]
Why not add options DDB for crash debugging?
> // Rene Veerman
> // XS4ALL software development
--
Jeroen Ruigrok van der Werven asmodai(at)wxs.nl
The *BSD Programmer's Documentation Project
Network/Security Specialist <http://home.wxs.nl/~asmodai>
*BSD & (g)VIM : Accept no limitations...
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990611000433.B7680>
