Unable to mount root fs via NFS, trying floppy.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to mount root fs via NFS, trying floppy.

1,419 Views
bytefirst
Contributor I

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

0 Kudos
4 Replies

1,327 Views
bytefirst
Contributor I

1 DISTRO = "poky"
2 DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
3 DISTRO_VERSION = "2.4.2"
4 DISTRO_CODENAME = "rocko"
5 SDK_VENDOR = "-pokysdk"
6 SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"

I have not tried the demo images.. I will find these and test.

Thanks for your help

0 Kudos

1,327 Views
bytefirst
Contributor I

Hi Rita,

Thanks for the response. I am using the documents you suggested, however, I am still unable to find the rootfs from the SABRE Board. Is it possible that I did not build an initramfs? I can find the .dtb and zImage, but I cannot seem to load the rootfs. Any suggestions would be helpfu!

0 Kudos

1,327 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Which version of BSP are you using? Have you tied the demo images? Does it work?

0 Kudos

1,327 Views
Rita_Wang
NXP TechSupport
NXP TechSupport
0 Kudos