Trying to mount a directory called root, which has other directories in it (a root fs) using NFS (nfs-kernel-server) on a Ubuntu 10.04LTS statically assigned at 192.168.1.3 The client (mini2440 running barebox) is at 192.168.1.230 Modified /etc/exports: /home/davef/Pengutronix/OSELAS.BSP-Pengutronix-Mini2440-2011.05.0 192.168.1.230(rw,no_root_squash,sync,no_subtree_check) And in the barebox bootloader's /env/config file I have the line: nfsroot="${eth0.serverip}:/home/davef/Pengutronix/OSELAS.BSP-Mini2440-2011. 05.0/platform-mini2440/root" which when the kernel boots gives: commandline: console=ttySAC0,115200 mini2440=0tb root=/dev/nfs nfsroot=192.168.1 .3:/home/davef/Pengutronix/OSELAS.BSP-Mini2440-2011.05.0/platform-mini2440/root, v3,tcp noinitrd ip=192.168.1.230::192.168.1.1:255.255.255.0::: mtdparts=nand:256 k(barebox),64k(bareboxenv),2048k(kernel),-(root) arch_number: 1999 (Appears good, so far) However, towards the end of the boot process I get the following error: IP-Config: Complete: device=eth0, addr=192.168.1.230, mask=255.255.255.0, gw=192.168.1.1, host=192.168.1.230, domain=, nis-domain=(none), bootserver=255.255.255.255, rootserver=192.168.1.3, rootpath= VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "nfs" or unknown-block(2,0) Please append a correct "root=" boot option; here are the available partitions: 1f00 256 mtdblock0 (driver?) 1f01 64 mtdblock1 (driver?) 1f02 2048 mtdblock2 (driver?) 1f03 63168 mtdblock3 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) Function entered at [<c0027b24>] from [<c028e84c>] Function entered at [<c028e84c>] from [<c0008e8c>] Function entered at [<c0008e8c>] from [<c0008f6c>] Function entered at [<c0008f6c>] from [<c00090a8>] Function entered at [<c00090a8>] from [<c0008ae8>] Function entered at [<c0008ae8>] from [<c0023a1c>] Looking in /var/log/syslog I get the following error message: Jun 16 20:36:53 davef-desktop mountd[2224]: refused mount request from 192.168.1.230 for /home/davef/Pengutronix/OSELAS.BSP-Mini2440-2011.05.0/platform-mini2440/root (/): not exported Well, I have read 10-20 different postings on many sites and have tried a number of suggestions with NO change in the error message. The problem doesn't seem related to trying to mount a "root" directory. Has anyone got NFS running using Barebox talking to a Ubuntu host or insight into what the error message is really trying to tell me? I would have thought the server would just serve up files, why is it being told to mount anything? Thanks, Dave
Barebox and NFS problem
Your exported path looks different from the one that your target wants to mount: /home/davef/Pengutronix/OSELAS.BSP-Pengutronix-Mini2440-2011.05.0 /home/davef/Pengutronix/OSELAS.BSP-Mini2440-2011.05.0/[...]
Juergen, Well spotted! The correct path was in /etc/exports. Because the "editor" that is used when setting /env/config in barebox doesn't seem to work very well, when using minicom, I manually typed the path in AND of course got it wrong!! Thank you VERY much. Dave