Hello,
I’ve recently tried to configure Linux and U-boot on SAM9-L9260 to use NFS root file system but run into several problems. First of all I used slightly modified bootargs from the User Manual like this:
bootargs=mem=64M console=ttyS0,115200 root=/dev/nfs rw nfsroot=192.168.0.30:/nfsroot ip=192.168.0.26:192.168.0.30
But after booting kernel ipconfig driver informed that he can’t open eth0 interface:
IP-Config: Failed to open eth0
I manage to “solve” this problem by adding ethaddr to u-boot environmental variables, but file system did mounted only read-only mode giving this information:
Checking root file system...fsck 1.40-WIP (14-Nov-2006)
fsck.ext3: No such device or address while trying to open /lib/init/rw/rootdev
Possibly non-existent or swap device?
fsck died with exit status 8
failed (code 8).
* An automatic file system check (fsck) of the root filesystem failed.
A manual fsck must be performed, then the system restarted.
The fsck should be performed in maintenance mode with the
root filesystem mounted in read-only mode.
* The root filesystem is currently mounted in read-only mode.
A maintenance shell will now be started.
After performing system maintenance, press CONTROL-D
to terminate the maintenance shell and restart the system.
Give root password for maintenance
(or type Control-D to continue):
I would like to admit that when I mount this partition not as root file system it is fully writeable. This is my configuration file of nfs server:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
#/files 192.168.0.1/24(rw,no_root_squash,no_all_squash)
/nfsroot 192.168.0.0/255.255.0.0(rw,no_root_squash,sync)
Moreover when I try to go back to NAND flash root file system with ethaddr in u-boot kernel cannot bring up eth0:
SIOCSIFHWADDR: No such device
Failed to bring up eth0.
Thanks in advance for any help
Paul