From owner-freebsd-current Mon Aug 3 14:24:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA12810 for freebsd-current-outgoing; Mon, 3 Aug 1998 14:24:23 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from pinhead.parag.codegen.com (ppp-asfm08--165.sirius.net [205.134.241.165]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA12805 for ; Mon, 3 Aug 1998 14:24:21 -0700 (PDT) (envelope-from parag@pinhead.parag.codegen.com) Received: from pinhead.parag.codegen.com (localhost.parag.codegen.com [127.0.0.1]) by pinhead.parag.codegen.com (8.8.8/8.8.8) with ESMTP id OAA21264; Mon, 3 Aug 1998 14:24:07 -0700 (PDT) (envelope-from parag@pinhead.parag.codegen.com) Message-Id: <199808032124.OAA21264@pinhead.parag.codegen.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Mike Smith cc: freebsd-current@FreeBSD.ORG Subject: Re: NFS diskless booting (NFS root/swap) broken in -current? In-reply-to: Your message of "Mon, 03 Aug 1998 12:28:48 PDT." <199808031928.MAA00572@dingo.cdrom.com> X-Face: =O'Kj74icvU|oS*<7gS/8'\Pbpm}okVj*@UC!IgkmZQAO!W[|iBiMs*|)n*`X ]pW%m>Oz_mK^Gdazsr.Z0/JsFS1uF8gBVIoChGwOy{EK=<6g?aHE`[\S]C]T0Wm X-URL: http://www.codegen.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 03 Aug 1998 14:24:07 -0700 From: Parag Patel Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I found the problem. The bug is in locore.s. The following patch fixes NFS booting. The change to use the newer opt_nfsroot.h instead of opt_nfs.h was good, but the #ifdef for NFS also needed to be changed to NFS_ROOT. That was it - locore just wasn't copying the NFS info from its passed-in args into the kernel global nfs_diskless, so there was no data for the kernel to use to boot. -- Parag Patel # cvs diff -c locore.s Index: locore.s =================================================================== RCS file: /src/freebsd/src/sys/i386/i386/locore.s,v retrieving revision 1.111 diff -c -r1.111 locore.s *** locore.s 1998/07/27 16:45:01 1.111 --- locore.s 1998/08/03 21:18:06 *************** *** 569,575 **** rep movsb ! #ifdef NFS #ifndef BOOTP_NFSV3 /* * If we have a nfs_diskless structure copy it in --- 569,575 ---- rep movsb ! #ifdef NFS_ROOT #ifndef BOOTP_NFSV3 /* * If we have a nfs_diskless structure copy it in To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message