From owner-freebsd-current Mon Aug 3 12:31:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA23105 for freebsd-current-outgoing; Mon, 3 Aug 1998 12:31:03 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA23083 for ; Mon, 3 Aug 1998 12:30:56 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id MAA00572; Mon, 3 Aug 1998 12:28:49 -0700 (PDT) Message-Id: <199808031928.MAA00572@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Parag Patel cc: Mike Smith , 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:15:01 PDT." <199808031915.MAA20516@pinhead.parag.codegen.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 03 Aug 1998 12:28:48 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > >Do you have 'options NFS_ROOT' in your kernel config? > > Yup, sure do. > > > >It might help to check the nfs_diskless_valid flag, and maybe dump the > >nfs_diskless structure just to see whether it's coming in correctly. > >The family is set by the bootstrap, so if it's not copied, it's not > >going to work. > > It's set to 0 (not valid). If it's set to zero, then locore.c has not copied the structure in from low memory. You might want to be looking at this fragment there: #ifdef NFS #ifndef BOOTP_NFSV3 /* * If we have a nfs_diskless structure copy it in */ movl BI_NFS_DISKLESS(%ebx),%esi cmpl $0,%esi je olddiskboot movl $R(_nfs_diskless),%edi movl $NFSDISKLESS_SIZE,%ecx cld rep movsb movl $R(_nfs_diskless_valid),%edi movl $1,(%edi) #endif #endif The nfs_diskless_valid flag is also fiddled in sys/nfs/bootp_subr.c; a quick look at the code leaves me a little seasick, but it's not clear at all that the nfs_diskless structure is properly populated in that case. -- \\ 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