LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-19-2009, 01:26 AM   #1
cs-e9302_user
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Kernel panic when using NFS!


Hello,

I've installed a NFS server on my host pc and run my embedded linux board using NFS as rootfs. I've loaded the kernel successfully but it will hang (kernel panic) because the NFS server returned an error.

The NFS server is verified working by mounting it using this command "mount -t nfs <server ip>:/home/nfsroot /mnt"

This is the kernel parameter used "console=ttyAM root=/dev/nfs ip=192.168.2.181:192.168.2.103:192.168.2.1:255.255.255.0 nfsroot=:192.168.2.103:/home/nfsroot"

Here's the message log:
...
...
ep93xx-rtc ep93xx-rtc: setting system clock to 1970-01-01 00:01:34 UTC(94)
IP-Config:
Complete:
device=eth0, addr=192.168.2.181, mask=255.255.255.0, gw=192.168.2.1,
host=192.168.2.181, domain=, nis-domain=(none),
bootserver=192.168.2.103, rootserver=192.168.2.103, rootpath=
Looking up port of RPC 100003/2 on 192.168.2.103
scsi 0:0:0:0: Direct-Access SanDisk Cruzer Micro 0.1 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 4001760 512-byte hardware sectors (2049 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 4001760 512-byte hardware sectors (2049 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda:sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
rpcbind: server 192.168.2.103 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.2.103
Root-NFS: Server returned error -13 while mounting /tftpboot/:192.168.2.103:/home/nfsroot
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 16384 mtdblock0 (driver?)
0800 2000880 sda driver:sd
0801 1999749 sda1
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


Also, the connection between the two devices is working. I can ping from the host pc to client and ping from client using RedBoot bootloader to host pc.

What could be the problem? Hope to here response from this forum.

Thanks.

Last edited by cs-e9302_user; 06-19-2009 at 01:28 AM.
 
Old 06-19-2009, 02:46 AM   #2
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
It has been a while since I tried this, but the article below helped me a lot when I was playing with it. I don't use Arch, but it should be a similar setup on any distribution. I hope it helps in some way.

http://wiki.archlinux.org/index.php/..._boot_NFS_root
 
Old 06-23-2009, 03:15 PM   #3
sg83
LQ Newbie
 
Registered: Jun 2008
Location: SF Bay Area
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 1
Quote:
Originally Posted by cs-e9302_user View Post
Hello,

Root-NFS: Server returned error -13 while mounting /tftpboot/:192.168.2.103:/home/nfsroot
That '/tftpboot/:192.168.2.103' seems a little fishy to me. Also, I believe that error (-13) means permission denied. Could you post up your '/etc/exports'?

For development purposes, just put '/home/nfsroot *(rw,no_root_squash,no_all_squash)' in your exports file.

I suggest first booting over NFS with an isolated switch (no gateway, etc). You can move over to your regular network once you have that working.
 
  


Reply



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
pxe nfs boot, kernel panic - portmap error davidcollins001 Linux - Networking 0 04-29-2007 12:20 PM
Kernel panic when booting via NFS ashwinikr Linux - Kernel 3 01-04-2007 03:43 PM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:33 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
Open Source Consulting | Domain Registration