Date: Sun, 7 Jul 2013 22:43:42 -0700 From: John-Mark Gurney <jmg@funkthat.com> To: Douglas Beattie <beattidp@ieee.org> Cc: freebsd-arm@freebsd.org Subject: Re: NFS root on BeagleBone Black Message-ID: <20130708054342.GB26412@funkthat.com> In-Reply-To: <0D94186F-F592-44C4-9F76-9E4B4B487468@ieee.org> References: <0D94186F-F592-44C4-9F76-9E4B4B487468@ieee.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Douglas Beattie wrote this message on Sun, Jul 07, 2013 at 23:06 -0600: > Working with the BeagleBone Black, I'm hoping to achieve boot to NFS root. > Thinking I'm fairly far along, I'm stuck with an 'error 19' at the final steps of > booting the kernel. Here's a little background -- any hints would be appreciated. > > On FreeBSD 9.1, I have a TFTP server, plus an NFS export on the same folder; > here are a few snippets from the console, which confirm this. > > [bsd03: /root/oss/crochet-freebsd]# tail -n2 /etc/inetd.conf > tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /opt/tftpboot > tftp dgram udp6 wait root /usr/libexec/tftpd tftpd -l -s /opt/tftpboot > [bsd03: /root/oss/crochet-freebsd]# cat /etc/exports > /opt/tftpboot -maproot=0 -alldirs -network 192.168.0.0 -mask 255.255.255.0 > [bsd03: /root/oss/crochet-freebsd]# showmount -e > Exports list on localhost: > /opt/tftpboot 192.168.0.0 > > I have built (using the excellent crochet facility) and can boot FreeBSD from > the microSD card, and I have verified that I can NFS mount the exported folder. > > Then, I created a custom kernel configuration, BEAGLEBONENFSROOT, with > just a couple changes, as follows: > > options NFS_ROOT #NFS usable as /, requires NFSCL > options ROOTDEVNAME=\"nfs:192.168.0.198:/opt/tftpboot/beaglebone\" Do you have: options BOOTP in your kernel to give the interface an ip address? I don't see anything in your dmesg about the kernel trying to get an ip address before it tries to nfs mount root. There isn't any communication from U-Boot to the kernel on what the ip address is suppose to be... The kernel needs to rediscover it itself. Hope this helps. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130708054342.GB26412>