From owner-freebsd-questions Fri Apr 9 16:11:48 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 17B8414BD5 for ; Fri, 9 Apr 1999 16:11:42 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id QAA11168; Fri, 9 Apr 1999 16:09:26 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Fri, 9 Apr 1999 16:09:26 -0700 (PDT) From: Doug White To: Davis Cc: freebsd-questions@FreeBSD.ORG Subject: Re: fatal trap! How do I escape? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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