Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2000 08:50:03 -0800 (PST)
From:      Dan Papasian <bugg@bugg.strangled.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/16808: Fatal trap 12, kernel does not boot
Message-ID:  <200002211650.IAA98008@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/16808; it has been noted by GNATS.

From: Dan Papasian <bugg@bugg.strangled.net>
To: engarcia@fis.cinvestav.mx
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/16808: Fatal trap 12, kernel does not boot
Date: Mon, 21 Feb 2000 11:54:03 -0500

 You should try to remove the options you don't need from your
 kernel to eliminate some possiblities.
 
 I took the time to comment on which entries in your kernel
 configuration were _very_ wrong.  Scroll down.
 
 On Fri, Feb 18, 2000 at 08:39:46AM -0800, engarcia@fis.cinvestav.mx wrote:
 > machine         "i386"
 > cpu             "I586_CPU"
 > ident           CASA
 > maxusers        15
 > ## check  what the hell is maxdsiz
 > options         "MAXDSIZ=(256*1024*1024)"
 > options         "DFLDSIZ=(256*1024*1024)"
 > options         GPL_MATH_EMULATE                #Support for x87 emulation
 
 You definetly don't need GPL_MATH_EMULATE and unless you are going
 to run applications up to 256 megs large (instead of the default 128)
 you don't need the MAXDSIZE and DFLSIZE entries.
 
 > options         INET                    #InterNETworking
 > options         FFS                     #Berkeley Fast Filesystem
 > options         FFS_ROOT                #FFS usable as root device [keep this!]
 > options         MFS                     #Memory Filesystem
 > options         MFS_ROOT                #MFS usable as root device, "MFS" req'ed
 > options         NFS                     #Network Filesystem
 > options         "CD9660"                #ISO 9660 Filesystem
 > options         PROCFS                  #Process filesystem
 > options         "COMPAT_43"             #Compatible with BSD 4.3 [KEEP THIS!]
 > options         SCSI_DELAY=15000        #Be pessimistic about Joe SCSI device
 
 SCSI_DELAY?  I'm not sure if you have SCSI devices- if you don't,
 remove this.
 If you do have SCSI devices, you can leave this in.
 
 > options         UCONSOLE                #Allow users to grab the console
 > options         FAILSAFE                #Be conservative
 > options         USERCONFIG              #boot -c editor
 > options         INTRO_USERCONFIG
 > options         VISUAL_USERCONFIG       #visual boot -c editor
 
 You don't need INTRO_USERCONFIG.  That is for installation
 kernels.
 
 > options         PQ_LARGECACHE
 > options         USER_LDT
 
 You don't need PQ_LARGECACHE unless you have a specific reason
 for having it, and USER_LDT is only if you want to run things
 like WINE.
 
 > options         "VM86"
 > options         COMPILING_LINT
 
 You don't need COMPILING_LINT.  That is for compiling LINT.
 ... and not for making usable kernels.
 
 > 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
 > 
 > options         "CMD640"        # work around CMD640 chip deficiency
 
 Do you have a controller with a CMD640?  If no, remove this.
 
 > 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)
 
 Do you have an IDE Floppy?  This isn't for 1.44s, this is for
 things like the LS-120.  If you don't have one, remove this.
 
 > # A single entry for any of these controllers (ncr, ahb, ahc) is
 > # sufficient for any number of installed devices.
 > controller      ncr0
 > controller      ahb0
 > controller      ahc0
 > controller      isp0
 
 Do you have SCSI cards?  If no, remove _all_ of this.
 If yes, enable only the cards you have.
 
 > controller      dpt0
 > # DPT options
 > options DPT_RESTRICTED_FREELIST
 > options DPT_FREELIST_IS_STACK
 > options DPT_TIMEOUT_FACTOR=4
 > options DPT_INTR_DELAY=200      # Some motherboards need that
 > options DPT_LOST_IRQ
 > options DPT_RESET_HBA
 
 Do you have a RAID array?  If not, remove all of this.
 
 > ###############
 > controller      adv0    at isa? port ? cam irq ?
 > controller      adw0
 > controller      bt0     at isa? port ? cam irq ?
 > controller      aha0    at isa? port ? cam irq ?
 
 So you have SCSI?  If no, remove all of this.  If yes,
 enable only the cards you need.
 
 > 
 > controller      scbus0
 > 
 > device          da0   
 > 
 > #device         sa0
 > 
 > device          pass0
 > 
 > device          cd0     #Only need one of these, the code dynamically grows
 
 All of these are for SCSI as well.
 
 > 
 > 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
 > 
 > device          scd0    at isa? port 0x230 bio
 
 These are for cdrom drives that are proprietary.  If your
 cdrom doesn't hook up to a soundcard, or is faster than 4X, you
 probably don't need these.
 
 > 
 > # 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
 > # 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
 
 You don't use PCVT and syscons.  Disable the PCVT stuff.
 (keep only the device sc0 line)
 
 > device          npx0    at isa? port IO_NPX irq 13
 > 
 > device          apm0    at isa? disable flags 0x31 # Advanced Power Management
 > 
 > 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?
 > controller      vp0     at ppbus?
 > #
 > # revision 1.20 of this file.
 > 
 > device ed0 at isa? port 0x280 net irq 10 iomem 0xd8000
 > device ie0 at isa? port 0x300 net irq 10 iomem 0xd0000`
 > device ep0 at isa? port 0x300 net irq 10
 > device ex0 at isa? port? net irq?
 > device fe0 at isa? port 0x300 net irq ?
 > device le0 at isa? port 0x300 net irq 5 iomem 0xd0000
 > device lnc0 at isa? port 0x280 net irq 10 drq 0
 > device ze0 at isa? port 0x300 net irq 10 iomem 0xd8000
 > device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000
 > device cs0 at isa? port 0x300 net irq ?   
 
 Don't you dare tell me you have all of these NICs.
 Remove the ones you don't have.
 
 > 
 > pseudo-device   loop
 > pseudo-device   ether
 > pseudo-device   sl      1   
 > pseudo-device   ppp     1
 > pseudo-device   tun     1
 > pseudo-device   pty     100
 > pseudo-device   gzip            # Exec gzipped a.out's
 > pseudo-device   snp     5
 > pseudo-device   log
 
 > 
 > options         MAXCONS=12
 You don't need this.
 
 > 
 > options         SYSVSHM
 > options         SYSVMSG
 > options         SYSVSEM
 > 
 > pseudo-device   bpfilter 4      #Berkeley packet filter
 > ########################################################
 > 
 > any comment will be welcome.
 
 Don't expect LINT to give you a working kernel.
 Strip down GENERIC by removing all of the hardware 
 you don't have, and then use LINT to add hardware
 that you haven't but isn't in GENERIC.
 
 Fix up your kernel, and come back if it still doesn't work.
 
 -Dan Papasian
 <bugg@bugg.strangled.net>
 


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




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