Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Dec 1999 19:01:52 -0500
From:      Ben WIlliams <williamsl@Home.Com>
To:        freebsd-stable@freebsd.org
Subject:   kernel compile succeeds but is unusable, take two
Message-ID:  <17792.991202@Home.Com>

next in thread | raw e-mail | index | archive | help
   It was suggested to me that I should post my config file along with
the exact commands I issue to build my kernel so here they are.

In /usr/src/sys/i386/conf the file DELTA_9:
#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
# For more information read the handbook part System Administration -> 
# Configuring the FreeBSD Kernel -> The Configuration File. 
# The handbook is available in /usr/share/doc/handbook or online as
# latest version from the FreeBSD World Wide Web server 
# <URL:http://www.FreeBSD.ORG/>;
#
# An exhaustive list of options and more detailed explanations of the 
# device lines is present in the ./LINT configuration file. If you are 
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
#       $Id: GENERIC,v 1.143.2.12 1999/05/14 15:12:26 jkh Exp $

machine         "i386"
cpu             "I586_CPU"
ident           "DELTA_9"
maxusers        32

options         MATH_EMULATE            #Support for x87 emulation
options         INET                    #InterNETworking
options         FFS                     #Berkeley Fast Filesystem
options         FFS_ROOT                #FFS usable as root device [keep this!]
# options               NFS                     #Network Filesystem
# options               MSDOSFS                 #MSDOS Filesystem
# options               "CD9660"                #ISO 9660 Filesystem
options         PROCFS                  #Process filesystem
options         "COMPAT_43"             #Compatible with BSD 4.3 [KEEP THIS!]
options         UCONSOLE                #Allow users to grab the console
options         FAILSAFE                #Be conservative
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor

config          kernel  root on wd0

controller      isa0
controller      pnp0
controller      eisa0
controller      pci0

controller      fdc0    at isa? port "IO_FD1" bio irq 6 drq 2
disk            fd0     at fdc0 drive 0
# disk          fd1     at fdc0 drive 1

controller      wdc0    at isa? port "IO_WD1" bio irq 14
disk            wd0     at wdc0 drive 0 flags 0xb0ff
disk            wd1     at wdc0 drive 1 flags 0xb0ff

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)


# 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          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
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
device          vt0     at isa? tty
#options                XSERVER                 # support for X server
#options                FAT_CURSOR              # start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options                PCVT_SCANSET=2          # IBM keyboards are non-std

# device                npx0    at isa? port IO_NPX irq 13
device          npx0    at isa? port IO_NPX

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

# 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 pn0              # Lite-On 82c168/82c169 (``PNIC'')
device pn1              # second "Lite-On" ''PNIC''

pseudo-device   loop
pseudo-device   ether
# pseudo-device sl      1
# pseudo-device ppp     1
# pseudo-device tun     1
# pseudo-device pty     16
# pseudo-device gzip            # Exec gzipped a.out's

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
options         KTRACE          #kernel tracing

# This provides support for System V shared memory and message queues.
#
options         SYSVSHM
options         SYSVMSG
options         SYSVSEM

#  The `bpfilter' pseudo-device enables the Berkeley Packet Filter.  Be
#  aware of the legal and administrative consequences of enabling this
#  option.  The number of devices determines the maximum number of
#  simultaneous BPF clients programs runnable.
pseudo-device   bpfilter 4      #Berkeley packet filter

# Doesn't seem to make any difference if this is here or not, it still crashes.
# options               SOFTUPDATES

And the commands:
$ su -
Password:
delta# bash 
bash-2.03# cd /usr/src/sys/i386/conf
bash-2.03# /usr/sbin/config -r DELTA_9
Removing old directory ../../compile/DELTA_9:  Done.
Don't forget to do a ``make depend''
Kernel build directory is ../../compile/DELTA_9
bash-2.03# cd ../../compile/DELTA_9
bash-2.03# make depend

[ whole buncha make output cut ]
rm -f .depend
mv -f .newdep .depend

bash-2.03# make

[ whole buncha make output cut ]
loading kernel
   text    data     bss     dec     hex filename
 905521   83556  131496 1120573  11193d kernel

bash-2.03# make install
chflags noschg /kernel
mv /kernel /kernel.old
PATH=${PATH}:/sbin:/usr/sbin;  if [ `sysctl -n kern.bootfile` = /kernel ] ; then  sysctl -w kern.bootfile=/kernel.old ;  if [ -f /var/db/kvm_kernel.db ] ; then  mv -f /var/db/kvm_kernel.db /var/db/kvm_kernel.old.db ;  fi  fi
install -c -m 555 -o root -g wheel -fschg kernel /

bash-2.03# reboot

[ yadda yadda yadda ]
// something about npx0 being found on the mb
// something about npx0 being an INT 16 device
<supervisor read, page not present>


Help!
--
 Ben                            mailto:williamsl@Home.Com




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17792.991202>