I have been trying to get the BB boot from a root filesystem on my
system's (Fedora 12) NFS directory. However, despite reading this and
other forums/wikis and the Building Embedded Linux systems ebook, I am
no closer to my goal. I think I am missing something very obvious. Any
pointers, suggestions or ways to troubleshoot would be much
appreciated.
Here are the steps I followed:
1. Compiled linux-omap-2.6 kernel with USB support.
2. Edited the /etc/exports file:
/home/akshay/nfsdir
192.168.1.102(rw,async,no_subtree_check,no_root_squash)
3. Added file ifcfg-usb0 to /etc/sysconfig/network-scripts/
DEVICE=usb0
IPADDR=192.168.1.8
NETMASK=255.255.255.0
ONBOOT=no
TYPE=USB
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
IPV6INIT=no
PEERDNS=yes
4. Edited the /etc/hosts.allow:
rpcbind:ALL
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
In the /etc/sysconfig/nfs, enabled the following:
RQUOTAD
RQUOTAD_PORT=875
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
STATD_PORT=662
STATD_OUTGOING_PORT=2020
5. SELinux was already disabled. Firewall was disabled through the
Firewall Manager for this exercise. So were the iptables using: sudo
service iptables stop
6. Typed the following commands at the prompt:
service rpcbind restart
service nfs restart
(Both restarted successfully)
7. At the BB console, typed the following:
#setenv bootargs 'console=ttyS2,115200n8 root=/dev/nfs
nfsroot=192.168.1.8:/home/akshay/nfsdir ip=192.168.1.102:255.255.255.0
nolock, rootdelay=2'
#boot
8. BB proceeded to boot the kernel successfully until it stalls here:
mmc0: new high speed SD card at address 1234
mmcblk0: mmc0:1234 SA02G 1.83 GiB
mmcblk0: p1
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=usb0, addr=192.168.1.102, mask=255.255.255.0,
gw=255.255.255.255,
host=192.168.1.102, domain=, nis-domain=(none),
bootserver=255.255.255.0, rootserver=192.168.1.8, rootpath=
Waiting 2sec before mounting root device...
Looking up port of RPC 100003/2 on 192.168.1.8
rpcbind: server 192.168.1.8 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.8
rpcbind: server 192.168.1.8 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -110 while mounting /home/akshay/
nfsdir
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "(null)" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available
partitions:
b300 1921024 mmcblk0 driver: mmcblk
b301 72261 mmcblk0p1
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-
block(2,0)
When I run ifconfig on my laptop, it shows usb0 device as being
present. Could it be that the ip address is still being dynamically
assigned?
Thanks,