Hello everyone,
I'm having issues configuring the NFS root file-system.
I have a OMAP3505 card (Micron) and my host machine runs under Fedora 9
I copied the nfs.tar.gz file from the SDK and extracted it in /mnt/omap3evmNfs in my host server (IP=131.167.122.141)
I set the IP of the OMAP card : 131.167.122.10
Then, I modified /etc/exports as follow:
--
/mnt/omap3evmNfs 131.167.122.0/255.255.252(rw,sync,no_subtree_check)
--
Then I executed the command:
> /usr/sbin/exportfs -ra
I kept the files /etc/hosts.allow and /etc/hosts.deny empty
I started nfs service because it seems it doesn't launch at boot time:
> /etc/init.d/nfs start
> /etc/init.d/nfslock start
Now, when I execute the command /usr/sbin/rpcinfo -p, I have:
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 4003 status
100024 1 tcp 4003 status
100011 1 udp 875 rquotad
100011 2 udp 875 rquotad
100011 1 tcp 875 rquotad
100011 2 tcp 875 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 4002 nlockmgr
100021 3 udp 4002 nlockmgr
100021 4 udp 4002 nlockmgr
100021 1 tcp 4002 nlockmgr
100021 3 tcp 4002 nlockmgr
100021 4 tcp 4002 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 4001 mountd
100005 1 tcp 4001 mountd
100005 2 udp 4001 mountd
100005 2 tcp 4001 mountd
100005 3 udp 4001 mountd
100005 3 tcp 4001 mountd
Finally, I set up the OMAP EVM:
OMAP3EVM # printenv
bootargs=mem=128M console=ttyS0,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2
baudrate=115200
preboot=
bootfile="uImage"
filesize=cc4c44
fileaddr=81600000
ethaddr=00:50cc2:7e:8a:f8
ipaddr=131.167.122.10
serverip=131.167.122.141
netmask=255.255.252.0
gatewayip=131.167.135.254
get_kernel=run nand_kernel
get_initrd=run nand_initrd
nand_kernel=nand read.i 0x80000000 280000 200000
nand_initrd=nand read.i 0x81600000 780000 1000000
tftp_kernel=tftpboot 0x80000000 uImage
tftp_initrd=tftpboot 0x81600000 ramdisk.gz
bootargs_rd=mem=128M console=ttyS0,115200n8 root=/dev/ram0 initrd=0x81600000,40M ramdisk_size=40960
bootargs_fs=mem=128M console=ttyS0,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:on
boot_rd=run get_kernel; run get_initrd; setenv bootargs $(bootargs_rd); run addip; bootm 0x80000000
boot_fs=run get_kernel; setenv bootargs $(bootargs_fs); run addip; bootm 0x80000000
boot_nfs=run get_kernel; setenv bootargs $(bootargs_nfs); run addip; bootm 0x80000000
bootdelay=5
bootcmd=run boot_nfs
bootargs_nfs=console=ttyS0,115200n8 noinitrd rw root=/dev/nfs nfsroot=131.167.122.141:/mnt/omap3evmNfs, nolock mem=128M
stdin=serial
stdout=serial
stderr=serial
mmcboot=mmcinit;fatload mmc 0 0x80000000 uImage;fatload mmc 0 0x81600000 ramdisk.gz;bootm 0x80000000
--------
Now when I try to boot the card I get the error :
...
IP-Config: Complete:
device=eth0, addr=131.167.122.10, mask=255.255.252.0, gw=131.167.135.254,
host=131.167.122.10, domain=, nis-domain=(none),
bootserver=131.167.122.141, rootserver=131.167.122.141, rootpath=
Looking up port of RPC 100003/2 on 132.166.132.141
eth0: link up, 100Mbps, full-duplex, lpa 0x8DE1
Looking up port of RPC 100005/1 on 132.166.132.141
call_verify: unknown auth error: 7
Root-NFS: Server returned error -5 while mounting /mnt/omap3evmNfs
VFS: Unable to mount root fs via NFS, trying floppy.
...
I disabled the firewire but I have always the same problem.
Please can you help me ?
Sincerly