Wind River Support Network

HomeDefectsLIN6-8041
Fixed

LIN6-8041 : Wrong nfsroot= suggestion in scripts/user-nfs.sh standard output

Created: Jul 29, 2014    Updated: Dec 3, 2018
Resolved Date: Aug 13, 2014
Found In Version: 6.0.0.9
Fix Version: 6.0.0.11
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Host Tools

Description

When launching the userspace nfs server daemon from a project, target instructions are wrong (see last line below):

prj$ make nfs-start
Starting User Mode nfsd
  /some/path/_prj/host-cross/usr/bin/pseudo /some/path/_prj/host-cross/usr/sbin/unfsd -p -N -i /some/path/_prj/var/nfs0.pid -e /some/path/_prj/var/exports0 -x 11411 -n 3349 -y 21411 -m 3348

On your target please remember to add the following options for NFS
nfsroot=IP_ADDRESS:/some/path/_prj/export/dist,nfsvers=2,mountprog=21411,nfsprog=11411,udp

I have never been able to connect to this nfs server with the line above. It seems the correct line is the one used by layers/wrlinux/scripts/config-target.pl:
nfsroot=10.0.2.2:/some/path/_prj/export/dist,nfsvers=3,port=3249,mountprog=21311,nfsprog=11311,udp,mountport=3248

Workaround

From layers/wrlinux/scripts/config-target.pl, use
root=/dev/nfs nfsroot=$gw:$ex,nfsvers=3,port=$NFS_PORT,mountprog=$NFS_MOUNTPROG,nfsprog=$NFS_NFSPROG,$nfs_args,mountport=$MOUNT_PORT $TARGET_VIRT_ROOT_MOUNT
(example:
nfsroot=10.0.2.2:/some/path/_prj/export/dist,nfsvers=3,port=3249,mountprog=21311,nfsprog=11311,udp,mountport=3248
)
instead of the suggested nfsroot=

Other Downloads


Live chat
Online