From owner-freebsd-current Tue Apr 28 13:24:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA25334 for freebsd-current-outgoing; Tue, 28 Apr 1998 13:24:53 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA25323 for ; Tue, 28 Apr 1998 13:24:45 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.8.8/8.8.5) with SMTP id UAA19069; Tue, 28 Apr 1998 20:54:25 +0100 (BST) Date: Tue, 28 Apr 1998 20:54:25 +0100 (BST) From: Doug Rabson To: Mike Smith cc: current@FreeBSD.ORG Subject: Re: ELF kernels: When? In-Reply-To: <199804281707.KAA00622@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 On Tue, 28 Apr 1998, Mike Smith wrote: > > > > I spent some time this weekend doing exactly that. I pulled NetBSD's > > libsa, libz and i386/stand into our tree and hacked on them until they > > built. I made some ugly hacks in there to construct FreeBSD style > > bootinfo and slice stuff, so it should boot most things. I haven't > > actually tried it on a real machine (my scratch box is in pieces) but it > > works fine under bochs (bochs is a godsend for this kind of work :-). > > I'm wondering how you got it to compile. 8( It patches OK onto > -current, but doesn't build due to not finding stand.h and libkern.h. You probably can't build from libsa itself. If you make in biosboot, it sets up some cunning arguments to point cpp at the right directories. > > > If anyone is interested, the hacked sources are in > > freefall:~dfr/netbsdboot.diff.gz. I think they should apply cleanly. If > > they don't tell me. > > Consider yourself told. 8) Where are you trying to make and what was the error? I'll fix it if I can see it :). > > If you want a real challenge, how about pulling libsa out seperately, > and making the libz build from the standard libz sources. I still > dream of extricating the bootloader from the kernel. 8) Hmm. I think it *might* be possible to use libz from /usr/src/lib but it really needs to be rebuilt in a cunning way (I think) so that it can run in the standalone environment. I'll think about it. I don't think the i386 bootloader will have much resemblance to the alpha bootloader so that part should stay with the kernel since it has such an intimate relationship with it. > > ... and just for dessert, I take it you were only building the biosboot > loader? Of course! I also built installboot (which was pretty easy). I don't expect to have much trouble with dosboot and netboot but I can't test them. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891 Fax: +44 181 381 1039 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message