Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Feb 2008 10:01:15 +0100
From:      Erik Norgaard <norgaard@locolomo.org>
To:        Rek Jed <rekjed@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pxeboot, TFTP only, NFS MOUNT RPC error: 60, timeout
Message-ID:  <47AC1A5B.2010101@locolomo.org>
In-Reply-To: <47AB9542.70406@gmail.com>
References:  <47AB4F00.1080307@gmail.com> <47AB7DBF.8030302@locolomo.org> <47AB9542.70406@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Rek Jed wrote:

> I also tried building it like that:
> 
> # cd /usr/src/sys/boot
> # make LOADER_TFTP_SUPPORT=YES  LOADER_NFS_SUPPORT=NO
> 
> This builds fine.  I copied it to my jumpstart server and it booted from
> tftp after approx 2 min. pause and the "NFS MOUNT RPC error: 60".  Can
> anyone tell me whats the difference between -DLOADER_TFTP_SUPPORT=YES
> and LOADER_TFTP_SUPPORT=YES?

OK, two things remain: Are you sure that it doesn't correctly fetch the 
kernel with tftp and then the kernel tries to mount a root device with nfs?

If the kernel is compiled with the slightest mention of nfs as root 
device it will use nfs, no matter that you have specified otherwise in 
loader.conf. The generic kernel has NFS_ROOT and NFS_CLIENT, since your 
root device is not NFS then you can leave out both. I recall having 
problems leaving in NFS_CLIENT although NFS_ROOT was not included.

Second, the loader is ignorant of which version of FreeBSD you use, it 
will just load whichever kernel you throw at it. I have a loader I used
for 6.1, http://www.locolomo.org/pub/pxeboot/jumpstart.tgz

Hope this helps. If you find any errors or things that have changed 
since I worked with this, let me know and I will update the howto.

Cheers, Erik



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47AC1A5B.2010101>