Date: Mon, 03 Aug 1998 14:24:07 -0700 From: Parag Patel <parag@cgt.com> To: Mike Smith <mike@smith.net.au> Cc: freebsd-current@FreeBSD.ORG Subject: Re: NFS diskless booting (NFS root/swap) broken in -current? Message-ID: <199808032124.OAA21264@pinhead.parag.codegen.com> In-Reply-To: Your message of "Mon, 03 Aug 1998 12:28:48 PDT." <199808031928.MAA00572@dingo.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808032124.OAA21264>
