LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   SMDK2450 board - Linux kernel root file system not getting mounted (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/smdk2450-board-linux-kernel-root-file-system-not-getting-mounted-852939/)

aprajam 12-28-2010 10:13 PM

SMDK2450 board - Linux kernel root file system not getting mounted
 
Hello experts,

We have SMDK2450 board based on S3c2450 processor. We have beeen trying hard to get Linux kernel working on the board. The NAND flash interface is not working in the board. Hence we moved to boot the kernel using NFS root file system. But this is not going through. Here is the log:

Looking up port of RPC 100003 / 2 on 192.168.1.10
Root-NFS: Unable to get nfsd port number from server, using default
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.10
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -101 while mounting /opt/eldk/arm
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block (2,0)

I have checked NFS server setup in Ubuntu 9.1 host and also have cehcked that NFS is enabled in kernel. Any help would be of great help.

Thanks and regards

Rajam
QMax Systems

Oliv' 12-31-2010 04:40 AM

Hello,

We need more information to be able to help you.
So what about server logs? you should find them in /var/log/daemon.log. Just open a console and do
Code:

tail -f /var/log/daemon.log
then boot the board and get relevant logs.
And what about server setup... just need the output of
Code:

exportfs -a

aprajam 01-04-2011 11:38 PM

Hi

Thanks for looking into it. We did a re-installation of Ubuntu to just check whether that might be an issue based on suggestion from net.

But the situation remains the same and here is the server log:

qmax@Qmax-U910:~$ tail -f /var/log/daemon.log
Jan 5 10:33:53 Qmax-U910 xinetd[2786]: removing echo
Jan 5 10:33:53 Qmax-U910 xinetd[2786]: removing time
Jan 5 10:33:53 Qmax-U910 xinetd[2786]: removing time
Jan 5 10:33:53 Qmax-U910 xinetd[2786]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in.
Jan 5 10:33:53 Qmax-U910 xinetd[2786]: Started working: 1 available service
Jan 5 10:33:57 Qmax-U910 tftpd[2789]: tftpd: trying to get file: zImage
Jan 5 10:33:57 Qmax-U910 tftpd[2789]: tftpd: serving file from /tftpboot
Jan 5 10:36:14 Qmax-U910 nfsd[2846]: nfssvc: Setting version failed: errno 16 (Device or resource busy)
Jan 5 10:41:39 Qmax-U910 NetworkManager: <info> (eth0): carrier now OFF (device state 8, deferring action for 4 seconds)
Jan 5 10:41:41 Qmax-U910 NetworkManager: <info> (eth0): carrier now ON (device state 8)

aprajam 01-04-2011 11:40 PM

Here is the output of exportfs command:

qmax@Qmax-U910:~$ exportfs -a
exportfs: could not open /var/lib/nfs/.etab.lock for locking: errno 13 (Permission denied)
exportfs: could not open /var/lib/nfs/.etab.lock for locking: errno 13 (Permission denied)
exportfs: can't lock /var/lib/nfs/etab for writing
qmax@Qmax-U910:~$ sudo exportfs -a
[sudo] password for qmax:
qmax@Qmax-U910:~$

Thanks and regards

Rajam
QMax systems

Oliv' 01-05-2011 03:35 AM

Well, first you have this annoying error in your log message:
Code:

nfsd[2846]: nfssvc: Setting version failed: errno 16 (Device or resource busy)
So I am not sure that your NFS server is up and running.
Then, about the "exportfs" command, sorry but I made a mistake. In fact, I need the result of this command without any arguments, I mean:
Code:

exportfs
or the result of the following command:
Code:

cat /etc/exports
Another useful info would be the result of:
Code:

rpcinfo -p
Also, have you any error messages on server side (in daemon.log file) when client try to do its mount request ? Have you do any modifications in hosts.allow or hosts.deny files ?

Regards,

Oliv'

aprajam 01-07-2011 12:05 AM

Result of /etc/exports:

qmax@Qmax-U910:~/BM/BSP/s3c-u-boot-1.1.6$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
# /filesystem qmax@Qmax-U910(rw,no_root_squash)
/home/qmax/blookmark/wordir/eldk/arm 192.168.1.20(rw,sync,no_root_squash,no_subtree_check)

aprajam 01-07-2011 12:06 AM

rpcinfo command gave the output as:

qmax@Qmax-U910:~/BM/BSP/s3c-u-boot-1.1.6$ rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 60431 status
100024 1 tcp 45423 status
100021 1 udp 60139 nlockmgr
100021 3 udp 60139 nlockmgr
100021 4 udp 60139 nlockmgr
100021 1 tcp 51613 nlockmgr
100021 3 tcp 51613 nlockmgr
100021 4 tcp 51613 nlockmgr
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 58004 mountd
100005 1 tcp 47786 mountd
100005 2 udp 58004 mountd
100005 2 tcp 47786 mountd
100005 3 udp 58004 mountd
100005 3 tcp 47786 mountd
qmax@Qmax-U910:~/BM/BSP/s3c-u-boot-1.1.6$

aprajam 01-07-2011 12:07 AM

We did not do any change to hosts.allow and hosts.deny files.

Oliv' 01-07-2011 05:10 AM

Well it seems that on client side you try to mount the following directory: /opt/eldk/arm
But on the server side, you just have exported the following directory: /home/qmax/blookmark/wordir/eldk/arm
And it does not match :'(
You have to modify one of your config to make things matched.

aprajam 01-08-2011 06:39 AM

I realized that and I changed the root path in the bootargs environment variable. Still there is no improvement. I also did a check on the kernel configuration that NFS is included. Now I am planning to change the bootargs in the U-boot code itself and try it once more ....

theNbomr 01-09-2011 07:01 PM

Monitor (tail -f) /var/log/messages on the NFS server while booting the SMDK2450 board. See if the requests for mounting are arriving, and what the NFS server is doing with any requests that arrive. Loosen up the client address range on the NFS server (and then restart the server), and try mounting the NFS export from another host; one that is fully booted and running. Show us the results of these tests.

--- rod.

aprajam 01-10-2011 07:32 AM

2 Attachment(s)
Thanks again for the support and here is the /var/log/daemon.log output:
qmax@Qmax-U910://$ tail -f /var/log/daemon.log
Jan 10 11:05:37 Qmax-U910 xinetd[18527]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in.
Jan 10 11:05:37 Qmax-U910 xinetd[18527]: Started working: 1 available service
Jan 10 11:05:37 Qmax-U910 nfsd[18548]: nfssvc: Setting version failed: errno 16 (Device or resource busy)
Jan 10 11:06:05 Qmax-U910 tftpd[18567]: tftpd: trying to get file: zImage
Jan 10 11:06:05 Qmax-U910 tftpd[18567]: tftpd: serving file from /tftpboot
Jan 10 11:12:15 Qmax-U910 ntfs-3g[18737]: Version 2010.3.6 external FUSE 28
Jan 10 11:12:15 Qmax-U910 ntfs-3g[18737]: Mounted /dev/sdc1 (Read-Write, label "", NTFS 3.1)
Jan 10 11:12:15 Qmax-U910 ntfs-3g[18737]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,dmask=0077
Jan 10 11:12:15 Qmax-U910 ntfs-3g[18737]: Mount options: rw,nosuid,nodev,uhelper=udisks,silent,allow_other,nonempty,relatime,fsname=/dev/sdc1,blkdev,blksize=4096,default_permissions
Jan 10 11:12:15 Qmax-U910 ntfs-3g[18737]: Global ownership and permissions enforced, configuration type 1

E 28
Jan 10 11:12:15 Qmax-U910 ntfs-3g[18737]: Mounted /dev/sdc1 (Read-Write, label "", NTFS 3.1)
Jan 10 11:12:15 Qmax-U910 ntfs-3g[18737]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,dmask=0077
Jan 10 11:12:15 Qmax-U910 ntfs-3g[18737]: Mount options: rw,nosuid,nodev,uhelper=udisks,silent,allow_other,nonempty,relatime,fsname=/dev/sdc1,blkdev,blksize=4096,default_permissions

I could not see any network related info in /var/log/messages and I have enclosed that file here as attachment.

I have also enclosed the serial log from kernel during boot process.

Thanks and regards

Rajam

aprajam 01-10-2011 07:35 AM

1 Attachment(s)
I am enclosing the kernel config file - just in case if I have missed any configuration setting there.

cnxsoft 01-10-2011 11:49 PM

Quote:

CONFIG_ROOT_NFS=y
CONFIG_NFSD=m
Should nfsd be built into the kernel (instead of a module), since your rootFS is located in NFS ?

aprajam 01-18-2011 11:06 AM

We tried this option too. But still the issue is not resolved.


All times are GMT -5. The time now is 03:54 PM.