From: Guillaume Dargaud on
Hello all,
I have an embedded card, bootloader and kernel on flash, the kernel starts
with the options:
CONFIG_CMDLINE="console=ttyUL0,115200 rw root=/dev/nfs ip=bootp"

The root filesystem is then mounted from a PC. The PC also does DHCP server.

Then I have a working card, but plenty of NFS errors:

Linux/PPC load: console=ttyUL0,115200 rw root=/dev/nfs ip=bootp
Uncompressing Linux...done.
Now booting the kernel
[ 0.000000] Linux version 2.6.25-rc9 (guinevere(a)lpsc6185x.in2p3.fr) (gcc
version 4.1.2) #78 Thu Sep 11 15:15:24 CEST 2008
....
[ 117.931163] nfs: server 192.168.1.185 not responding, still trying
[ 117.940001] nfs: server 192.168.1.185 OK
[ 132.569645] nfs: server 192.168.1.185 not responding, still trying
[ 132.578635] nfs: server 192.168.1.185 OK
Welcome to the embedded guinevere platform. Build with buildroot by Dargaud
genepi30 login:

I also see plenty of error files:
# ll /var/log/
-rw------- 1 root root 144 Apr 13 2009
..nfs00000000008604dc00000001
-rw------- 1 root root 144 Apr 13 2009
..nfs00000000008604dd00000001
-rw------- 1 root root 144 Apr 13 2009
..nfs00000000008604de00000001
....
Which contain mostly (but also some data destined for other files):
# cat .nfs00000000008604dc00000001
Alarm raised: no contact with client PC in the last 2000s last 60 identical
messages among the last 100, with a flush at least every 60 seconds


Unless somebody has a better idea, I would like to play with the nfs
options, but I can't figure out where they are set.
The obvious place to try the kernel line doesn't change anything:
Linux/PPC load: console=ttyUL0,115200 rw,vers=3,proto=tcp root=/dev/nfs
ip=bootp

Once booted here's what i see:
# mount
rootfs on / type rootfs (rw)
/dev/root on / type nfs
(rw,vers=2,rsize=4096,wsize=4096,hard,nolock,proto=udp,timeo=11,retrans=2,sec=sys,addr=192.168.1.185)

Why are there two / mounts ?
/etc/fstab on the client doesn't contain / info

On the server, here's the dhcp config:
$ cat /etc/dhcpd.conf
allow bootp;
allow booting;
ddns-update-style interim;

subnet 192.168.1.0 netmask 255.255.255.0 {
default-lease-time 21600;
option routers 192.168.1.185;
option subnet-mask 255.255.255.0;
option ntp-servers 192.168.1.185;
}
host genepi30 {
hardware ethernet 0:a:35:1:3:1e;
fixed-address 192.168.1.230;
server-name "192.168.1.185";
option host-name "genepi30";
option root-path "192.168.1.185:/media/rootfs";
}

And my exported root filesystem for the card:
$ cat /etc/exports
/media/rootfs *(rw,no_root_squash,sync,insecure,fsid=0)

As for /etc/sysconfig/nfs, it only contains commented out lines (default
options).

Any idea on those nfs errors ?
--
Guillaume Dargaud
http://www.gdargaud.net/


 | 
Pages: 1
Prev: Using unprotected Wifi
Next: VPN questions