LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 12-28-2010, 11:13 PM   #1
aprajam
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Rep: Reputation: 0
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
 
Old 12-31-2010, 05:40 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
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
 
Old 01-05-2011, 12:38 AM   #3
aprajam
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
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)
 
Old 01-05-2011, 12:40 AM   #4
aprajam
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
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
 
Old 01-05-2011, 04:35 AM   #5
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
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'
 
Old 01-07-2011, 01:05 AM   #6
aprajam
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
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)
 
Old 01-07-2011, 01:06 AM   #7
aprajam
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
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$
 
Old 01-07-2011, 01:07 AM   #8
aprajam
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
We did not do any change to hosts.allow and hosts.deny files.
 
Old 01-07-2011, 06:10 AM   #9
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
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.
 
Old 01-08-2011, 07:39 AM   #10
aprajam
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
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 ....
 
Old 01-09-2011, 08:01 PM   #11
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.
 
Old 01-10-2011, 08:32 AM   #12
aprajam
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
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
Attached Files
File Type: txt log_msg_jan10.txt (2.0 KB, 3 views)
File Type: txt kernel_log.txt (7.5 KB, 4 views)
 
Old 01-10-2011, 08:35 AM   #13
aprajam
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
I am enclosing the kernel config file - just in case if I have missed any configuration setting there.
Attached Files
File Type: txt k.config.txt (62.0 KB, 3 views)
 
Old 01-11-2011, 12:49 AM   #14
cnxsoft
Member
 
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 166

Rep: Reputation: 29
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 ?
 
Old 01-18-2011, 12:06 PM   #15
aprajam
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
We tried this option too. But still the issue is not resolved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgraded Kernel, Kernel Panic, Can't read root file system. Romanus81 Slackware 25 05-04-2008 11:45 PM
Kernel 2.6.22.5: waiting for root file system drpixel404 Linux - General 12 09-19-2007 11:31 AM
Loading kernel from cd, root file system on usb NeoNecro Linux - General 0 04-28-2007 06:23 AM
Detect storage device by checking mounted file system to Linux syseeker Programming 4 02-06-2006 11:14 AM


All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration