AnsweredAssumed Answered

Unable to mount root fs via NFS, trying floppy.

Question asked by Kevin McKinney on Jun 9, 2020
Latest reply on Jul 6, 2020 by Kevin McKinney

Hi Community,

I have built an image using Yocto for the MX6Quad SABRE Board, and I am attempting to load the kernel, device tree, and root filesystem from a network share. I have stored all three items on the same network share "/nfsroot", and when I boot my board I am able to download and install the kernel and the device tree binary. However, U-Boot complains about the location of the rootfs, but the filesystem is on the share as the kernel and device tree.

 

U-BOOT Configuration:

setenv serverip 10.0.0.66
setenv ipaddr 10.0.0.57
setenv nfsroot /nfsroot
setenv image zImage
setenv fdt_file imx6q-sabresd.dtb
setenv ip_dyn no
setenv netargs 'setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs rootwait rw ip=ip=10.0.0.57:10.0.0.66:10.0.0.0:255.255.255.0:off:eth0:off rootpath=10.0.0.66:/nfsroot,v3,tcp'

 

Network Share Contents:

$ ls -l /nfsroot
total 7440
drwxr-xr-x 2 root root 4096 Jun 5 14:30 bin
drwxr-xr-x 2 root root 4096 Jun 5 14:29 boot
drwxr-xr-x 2 root root 4096 Jun 3 23:59 dev
drwxr-xr-x 60 root root 4096 Jun 5 14:31 etc
drwxr-xr-x 3 root root 4096 Jun 5 14:29 home
-rw-r--r-- 1 root root 50776 Jun 5 22:51 imx6q-sabresd.dtb
drwxr-xr-x 9 root root 4096 Jun 4 02:24 lib
drwxr-xr-x 2 root root 4096 Jun 3 23:59 media
drwxr-xr-x 3 root root 4096 Jun 5 14:29 mnt
drwxr-xr-x 6 root root 4096 Jun 5 14:30 opt
drwxr-xr-x 2 root root 4096 Jun 3 23:59 proc
drwxr-xr-x 2 root root 4096 Jun 3 23:59 run
drwxr-xr-x 3 root root 4096 Jun 5 14:30 sbin
-rw-r--r-- 1 root root 505 Jun 4 02:09 SCR-libgpuperfcnt.txt
drwxr-xr-x 2 root root 4096 Jun 3 23:59 sys
drwxrwxrwt 2 root root 4096 Jun 3 23:59 tmp
drwxr-xr-x 37 root root 4096 Jun 5 14:30 unit_tests
drwxr-xr-x 10 root root 4096 Jun 4 01:22 usr
drwxr-xr-x 8 root root 4096 Jun 4 02:18 var
-rwxr-xr-x 1 root root 7487720 Jun 5 22:52 zImage

 

Boot Details:

=> run netboot
Booting from net ...
Using ethernet@02188000 device
TFTP from server 10.0.0.66; our IP address is 10.0.0.57
Filename 'zImage'.
Load address: 0x12000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########################################################
9.9 MiB/s
done
Bytes transferred = 7487720 (7240e8 hex)
Using ethernet@02188000 device
TFTP from server 10.0.0.66; our IP address is 10.0.0.57
Filename 'imx6q-sabresd.dtb'.
Load address: 0x18000000
Loading: ####
6.9 MiB/s
done
Bytes transferred = 50776 (c658 hex)
Kernel image @ 0x12000000 [ 0x000000 - 0x7240e8 ]
## Flattened Device Tree blob at 18000000
Booting using the fdt blob at 0x18000000
Using Device Tree in place at 18000000, end 1800f657
switch to ldo_bypass mode!

Starting kernel ...

......

......

......

IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
IP-Config: Complete:
device=eth0, hwaddr=00:04:9f:06:38:ce, ipaddr=174.0.0.57, mask=255.255.255.0, gw=10.0.0.0
host=off, domain=, nis-domain=(none)
bootserver=10.0.0.66, rootserver=10.0.0.66, rootpath=
IP-Config: Gateway not on directly connected network
wm8962-supply: disabling
VGEN1: disabling
VGEN2: disabling
VGEN3: disabling
ALSA device list:
#0: wm8962-audio
#1: imx-hdmi-soc
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6

 

Thank you in advanced!

-Kevin McKinney

Outcomes