From owner-freebsd-hackers Thu Feb 26 18:20:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA28528 for freebsd-hackers-outgoing; Thu, 26 Feb 1998 18:20:44 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA28490 for ; Thu, 26 Feb 1998 18:20:21 -0800 (PST) (envelope-from ambrisko@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id SAA19563 for ; Thu, 26 Feb 1998 18:17:40 -0800 (PST) Received: from UNKNOWN(), claiming to be "crab.whistle.com" via SMTP by alpo.whistle.com, id smtpd019556; Thu Feb 26 18:17:33 1998 Received: (from ambrisko@localhost) by crab.whistle.com (8.8.8/8.6.12) id SAA19935 for hackers@FreeBSD.ORG; Thu, 26 Feb 1998 18:14:37 -0800 (PST) From: Doug Ambrisko Message-Id: <199802270214.SAA19935@crab.whistle.com> Subject: Re: a chicken-egg problem with bootp and nfs_mountroot In-Reply-To: <199802261612.KAA13367@jake.lodgenet.com> from "Eric L. Hernes" at "Feb 26, 98 10:12:06 am" To: hackers@FreeBSD.ORG Date: Thu, 26 Feb 1998 18:14:37 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL29 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Eric L. Hernes writes: | | Howdy, | | A couple weeks ago I did some rather gross hacks locally here to get | around some similar problems.. I wanted a MFS root with NFS swap, | via boot rom. I ended up calling nfs_moutroot() from | mfs_mountroot() or something like that, all buggered up with an | MFS_NETBOOT option... Pretty hackish, but it works and I haven't | gotten a chance to clean it up yet :( | | Is that of any interest? Do you have any ideas on a cleaner way | to accomplish this... Or is this irrelevant to your question? ;-) I've done something similar since I'm using the bootp stuff & mfs root. I added a SYSINIT to do the bootp call if nfs is not being used. I also added code to specify which adapter to send the bootp requests on in case of multiple controllers. What I've been stumped on is trying to do a bootp request on all interfaces until success. This might be the wrong thing to do. BTW I hacked up the Linux etherboot code to be able to tftp the kernel and boot FreeBSD again. This way I can do netboots over Intel 10/100B cards. However now I'm running into a problem with machines locking up with a non-trival compile. I hope to get this code cleaned up since I've been gross hacking stuff to get things to do what I need. BTW anyone know how to pass a string in via a #define in config? Doug A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message