NFS deployment not working -p2041rdb

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

NFS deployment not working -p2041rdb

1,206 Views
gokulrajpandiya
Contributor I

I just followed instructions given in QorIQ-SDK2.0 doc as below.

1.On the Linux host NFS server, add the following line in the file /etc/exports:

<nfs_root_path> <board_ipaddress>(rw,no_root_squash,async)

ex. /home/cdot/yacto/new_rfs 192.168.43.129(rw,no_root_squash,async)

2.Restart the NFS service:

/etc/init.d/nfs restart

ex.  /etc/init.d/nfs-kernel-server restart

3.Setting U-Boot Environment

setenv bootargs root=/dev/nfs rw nfsroot=<tftp_serverip>:<nfs_root_path>

ip=<board_ipaddr>:<tftp_serverip>:

<your_gatewayip>:<your_netmask>:<board_name>:eth0:off console=ttyS0,115200

=>setenv netdev <ethx>

=>saveenv

ex.

setenv bootargs root=/dev/nfs-kernel- server rw nfsroot=192.168.43.60:/home/cdot/yacto/new_rfs ip=192.168.43.129:192.168.43.69:192.168.43.1:255.255.255.0:p2041rdb:fm1-gb0:off console=ttyS0,115200

setenv netdev fm1-gb0

saveenv

4.Booting up the System

bootm ec02000 - ec80000

=>loads only uImage and dtb and then goes for reboot after 180 secs.

Note.

1.My u-boot,RCW and FMan ucode are in NOR flash at EBF40000,EC000000,EBF00000 respectively.

2.My uImage,DTB are also in NOR Flash at EC020000,EC800000  respectively

3.RAMDISK deployment from TFTP and NOR flash is working fine.

0 Kudos
3 Replies

883 Views
Pavel
NXP Employee
NXP Employee

setenv nfsargs "setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off" 

setenv console "$consoledev,$baudrate $othbootargs"

setenv nfsboot "run nfsargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"

Ethernet should be connected to the prime Ethernet connection

Check u-boot NFS variables using the following command:

printenv nfsargs

printenv nfsboot

printenv nfshost


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

883 Views
gokulrajpandiya
Contributor I

Dear Pavel,

I tried the same.But still i am getting same error.The following error i am getting

still.Could pls tell me what is the problem with definition/syntax "root=/dev/nfs rw"

our approach to define the bootargs parameter may be different.But finally the bootargs

parameter should have the following settings.

There is no problem NFS server also.All aspect of security issues are all checked.We

are able to mount a path the nfs server from any other system in the n/w.We debugged

with n/w tool wireshark and found there is no pkts(request) from p2041rdb(client)at

all.

kindly guide us on this issue in which we got help up for more than a month.

regards,

Gokul.

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:

1f00 131072 mtdblock0 (driver?)

1f01 32768 mtdblock1 (driver?)

1f02 262144 mtdblock2 (driver?)

1f03 131072 mtdblock3 (driver?)

1f04 65536 mtdblock4 (driver?)

1f05 16384 mtdblock5 (driver?)

1f06 16384 mtdblock6 (driver?)

1f07 1024 mtdblock7 (driver?)

1f08 5120 mtdblock8 (driver?)

1f09 1024 mtdblock9 (driver?)

1f0a 9216 mtdblock10 (driver?)

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

Call Trace:

On Thu, 28 Jul 2016 20:23:37 -0700, Pavel wrote

Pavel Chubakov

replied to

the discussion "NFS deployment not working -p2041rdb"

To view the discussion, visit:

https://community.nxp.com/message/817467?et=watches.email.thread#comment-817467

>

0 Kudos

883 Views
gokulrajpandiya
Contributor I

Dear Pavel,

I tried the same.But still i am getting same error.The following error i am getting

still.Could pls tell me what is the problem with definition/syntax "root=/dev/nfs rw"

our approach to define the bootargs parameter may be different.But finally the bootargs

parameter should have the following settings.

There is no problem NFS server also.All aspect of security issues are all checked.We

are able to mount a path the nfs server from any other system in the n/w.We debugged

with n/w tool wireshark and found there is no pkts(request) from p2041rdb(client)at

all.

kindly guide us on this issue in which we got help up for more than a month.

regards,

Gokul.

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:

1f00 131072 mtdblock0 (driver?)

1f01 32768 mtdblock1 (driver?)

1f02 262144 mtdblock2 (driver?)

1f03 131072 mtdblock3 (driver?)

1f04 65536 mtdblock4 (driver?)

1f05 16384 mtdblock5 (driver?)

1f06 16384 mtdblock6 (driver?)

1f07 1024 mtdblock7 (driver?)

1f08 5120 mtdblock8 (driver?)

1f09 1024 mtdblock9 (driver?)

1f0a 9216 mtdblock10 (driver?)

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

Call Trace:

On Thu, 28 Jul 2016 20:23:37 -0700, Pavel wrote

Pavel Chubakov

replied to

the discussion "NFS deployment not working -p2041rdb"

To view the discussion, visit:

https://community.nxp.com/message/817467?et=watches.email.thread#comment-817467

>

0 Kudos