Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Apr 1999 16:09:26 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Davis <dd002f@uhura.cc.rochester.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: fatal trap! How do I escape?
Message-ID:  <Pine.BSF.4.03.9904091607090.28562-100000@resnet.uoregon.edu>
In-Reply-To: <Pine.SOL.3.96.990409004410.223A-100000@uhura.cc.rochester.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 9 Apr 1999, Davis wrote:

> The following story takes place on my FreeBSD 3.1 machine:
> 
> After using snd0/gus0 for my Gravis Ultrasound for a while, I decided to
> try using pnp0/pcm0 instead. I put all the appropriate lines in my kernel
> file. I made a /kernel.config file which looks like this:
> USERCONFIG
> pnp 1 0 os enable port0 0x220 irq0 11 drq0 5 drq1 7
> quit

That's the old way.  You need to take the USERCONFIG off and add

load /kernel
load -t userconfig_script /kernel.config
autoboot 10

to /boot/boot.conf.  (This deserves a FAQ entry!)

> That did it; pcm0 was detected (as pcm1, of course).
> BUT - several lines later (after the kernel loaded ep0, then npx0), I
> received the following message:
> 
> Fatal trap 12: page fault while in kernel mode
> fault virtual address	= 0x4
> fault code		= supervisor read, page not present
> instruction pointer	= 0x8:0xf01dc7a2
> stack pointer		= 0x10:0xf02a6f88
> frame pointer		= 0x10:0xf02a6f88
> code segment		= base 0x0, limit 0xfffff, type 0x16
> 			= DPL 0, pres 1, def32 1, gran 1
> processor eflags	= interrupt enabled, resume, IOPL=0
> current process		= 0 ()
> interrupt mask 		=
> trap number		= 12
> panic: page fault
> 
> 
> This is a 100% reproducible error. Could someone help me out with this?
> Also, could anyone tell me what I need to do to get /kernel.config to be
> loaded properly at startup (though that is undesirable at the moment).
> Thanks in advance to everyone.

I've had odd boot-time crashes like this.  Based on the fault address I'd
say it's a corrupted pointer.

Plus, you need more port address than that; you should specify at least
three.

Doug White                               
Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org



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




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