AnsweredAssumed Answered

Unable to mount root fs via NFS; error -6

Question asked by Jaikumar J on Jun 24, 2015
Latest reply on Aug 6, 2015 by Jaikumar J

Hi,

I am working on T1040RDB board. Trying to mount the rootfs through NFS

 

Getting this error:

VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
Please append a correct "root=" boot option; here are the available partitions:

 

env variable are set as above

baudrate=115200

bdev=sda3

bootargs=root=/dev/ram rw console=ttyS0,115200

bootcmd=run nohvboot

bootcmd_default=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;bootm e8020000 e9300000 e8800000

bootdelay=3

bootfile=zImage

c=ffe

consoledev=ttyS0

dir=t1040rdb-64b

eth1addr=00:04:9F:03:41:BE

eth2addr=00:04:9F:03:41:BF

eth3addr=00:04:9F:03:41:C0

eth4addr=00:04:9F:03:41:C1

eth5addr=00:04:9f:8e:7b:b4

ethact=FM1@DTSEC4

ethaddr=00:04:9F:03:41:BD

ethprime=e1000#0

fdtaddr=e00000

fdtfile=uImage-t1040rdb.dtb

fileaddr=e00000

filesize=8b66

fman_ucode=eff00000

gatewayip=192.168.0.254

hvboot=setenv bootargs console=$consoledev,$baudrate config-addr=0xfe8900000;bootm 0xfe8700000 - 0xfe8800000

hwconfig=fsl_ddr:bank_intlv=cs0_cs1

ipaddr=192.168.0.218

loadaddr=1000000

netdev=eth3

netmask=255.255.255.0

nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr

nohvboot=tftp 1000000 $dir/$bootfile;tftp 5000000 $dir/$ramdiskfile;tftp e00000 $dir/$fdtfile;setenv bootargs root=/dev/ram rw console=ttyS0,115200 $othbootargs;bootm 1000000 5000000 e00000;

ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr

ramdiskaddr=2000000

ramdiskfile=fsl-image-core-t1040rdb-64b.ext2.gz.u-boot

rootpath=/opt/fsl_rootfs_nfs

serverip=192.168.0.47

tftpflash=tftpboot $loadaddr $uboot && protect off $ubootaddr +$filesize && erase $ubootaddr +$filesize && cp.b $loadaddr $ubootaddr $filesize && protect on $ubootaddr +$filesize && cmp.b $loadaddr $ubootaddr $filesize

uboot=u-boot.bin

ubootaddr=0xeff40000

 

 

Kernel parameters & boot log

PERCPU: Embedded 11 pages/cpu @c000000007900000 s15808 r0 d29248 u262144

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1034240

Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.47:/opt/fsl_rootfs_nfs ip=192.168.0.218:192.168.0.47:192.168.0.254:255.255.255.0::eth0:off console=ttyS0,115200

PID hash table entries: 4096 (order: 3, 32768 bytes)

....

...

fsl_dpa_generic: FSL DPAA Generic Ethernet driver ()

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

IP-Config: Complete:

     device=eth0, hwaddr=00:04:9f:03:41:bd, ipaddr=192.168.0.218, mask=255.255.255.0, gw=192.168.0.254

     host=192.168.0.218, domain=, nis-domain=(none)

     bootserver=192.168.0.47, rootserver=192.168.0.47, rootpath=

md: Waiting for all devices to be available before autodetect

md: If you don't use raid, use raid=noautodetect

md: Autodetecting RAID arrays.

md: Scanned 0 and added 0 devices.

md: autorun ...

md: ... autorun DONE.

VFS: Unable to mount root fs via NFS, trying floppy.

VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6

 

NFS server is working fine, I have tested it by mounting it.

 

On a mailing list, I found, "vers=3" to be added to nfsroot,  Tried it, same result.

Please direct me.

 

Thanks & regards

Jaikumar

Outcomes