From owner-freebsd-current Sun Oct 4 10:40:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA29990 for freebsd-current-outgoing; Sun, 4 Oct 1998 10:40:46 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zone.syracuse.net (zone.syracuse.net [205.232.47.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA29981 for ; Sun, 4 Oct 1998 10:40:40 -0700 (PDT) (envelope-from green@zone.syracuse.net) Received: from localhost (green@localhost) by zone.syracuse.net (8.8.8/8.8.7) with ESMTP id NAA16308; Sun, 4 Oct 1998 13:33:31 -0400 (EDT) Date: Sun, 4 Oct 1998 13:33:31 -0400 (EDT) From: Brian Feldman To: Mike Smith cc: Michael Class , current@FreeBSD.ORG Subject: Re: Problem with 3-stage bootloader In-Reply-To: <199810041010.DAA03555@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I too cannot boot an ELF kernel yet, as I get a page fault as well :( more info when I get some. Oh, yes, this is with the very latest kernel and loader (with the esym = ssym = 0 fixes). Cheers, Brian Feldman On Sun, 4 Oct 1998, Mike Smith wrote: > > Hello, > > > > I was just trying to use the new 3-stage bootloader. > > It failed for my setup. To me it looks like it will only work, > > if the FreeBSD slice is the first in the partition-table of a disk. > > I can make it to work with the following patch (not meant as a > > correct solution, but to give you an idea, of what the reason for > > the failure is). Basically only the first slice-table entry is copied, > > but afterwards the code assumes that all 4 entries are in memory. > > Thanks; I just fixed this. > > > After this patch I can boot an aout-kernel on my machine. Unfortunately > > I am still failing on an ELF-Kernel. I get immediately dropped in the > > debugger, but a stacktrace gives only garbage back. > > I think this is fixed too - try initialising ssym and esym to 0 in > elf_exec and see if that helps. > -- > \\ Sometimes you're ahead, \\ Mike Smith > \\ sometimes you're behind. \\ mike@smith.net.au > \\ The race is long, and in the \\ msmith@freebsd.org > \\ end it's only with yourself. \\ msmith@cdrom.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message