NFS root on BeagleBone Black

John-Mark Gurney jmg at funkthat.com
Mon Jul 8 05:43:48 UTC 2013


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."


More information about the freebsd-arm mailing list