* problems with NFS root for ADS860
@ 2004-03-11 6:03 m.venkatraj
2004-03-11 8:10 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: m.venkatraj @ 2004-03-11 6:03 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]
Hello,
I am trying to mount Root FS via NFS on a ADS860 board.
Here is the configuration I am using:
- gcc-3.3.1, glibc-2.3.2
- u-boot-1.0.1, built for ADS860 config.
- Linux-2.4.22 with NFS-root option selected. (standard kernel, not ELDK)
- An x86 box is configured as the BOOTP and NFS server. The root file system
folder is entered in the /etc/exports, and I have also made an entry in
/etc/hosts/allow
When the kernel tries NFS mount of the root file system, error 101 results,
followed by a message
"Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 02:00".
I verified with various sources on the net that the bootargs that I was
passing was in the correct format. Google led me to a lot of posts with the
same problem, but no leads.. Since I am relatively new around here, looking
up the kernel sources for the error 101 didn't lead me anywheer
Relevant portions of the monitor trace are attached:
Could you please guide me as to what is wrong, or am I missing something?
The same NFS server serves a 405GP walnut board that a colleaue is working
on, and there it loads just fine. That rules out NFS server configuration
errors, I think..
Just to add: I am able to mount RAMDISK root file system.
Any pointers to getting out of this muddle will be tremendously helpful..
Best regards
Venkat
[-- Attachment #2: nfserror.txt --]
[-- Type: text/plain, Size: 2615 bytes --]
## Booting image at 00100000 ...
Image Name:
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 600102 Bytes = 586 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Linux version 2.4.22 (root@helios) (gcc version 3.3.1) #36 Wed Mar 3 12:04:49 IS
T 2004
On node 0 totalpages: 1024
zone(0): 1024 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/nfs rw nfsroot=192.158.97.38:/tftpboot/powerpc-ro
otfs/ ip=192.158.98.116:192.158.97.38:192.158.96.1:255.255.252.0:MPC860ADS_VENKA
T::off
Decrementer Frequency = 180000000/60
Calibrating delay loop... 47.61 BogoMIPS
Memory: 2620k available (1064k kernel code, 300k data, 52k init, 0k highmem)
Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
CPM UART driver version 0.03
ttyS00 at 0x0280 is a SMC
pty: 256 Unix98 ptys configured
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
CSLIP: code copyright 1989 Regents of the University of California.
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 1024)
IP-Config: No network devices available.
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 100003/1 on 192.158.97.38
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.158.97.38
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get mountd port number from server, using default
RPC: sendmsg returned error 101
mount: RPC call returned error 101
Root-NFS: Server returned error -101 while mounting /tftpboot/powerpc-rootfs/
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or 02:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 02:00
<0>Rebooting in 180 seconds..
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problems with NFS root for ADS860
2004-03-11 6:03 m.venkatraj
@ 2004-03-11 8:10 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-03-11 8:10 UTC (permalink / raw)
To: m.venkatraj; +Cc: linuxppc-embedded
Dear Venkat,
in message <301A812E6528D511A8F70008C71E578601FCF557@ap-bang-m02.india.tek.com> you wrote:
>
> When the kernel tries NFS mount of the root file system, error 101 results,
> followed by a message
...
> I verified with various sources on the net that the bootargs that I was
> passing was in the correct format. Google led me to a lot of posts with the
> same problem, but no leads.. Since I am relatively new around here, looking
> up the kernel sources for the error 101 didn't lead me anywheer
Instead of seaching the web a simple local lookup would have done:
-> grep 101 /usr/include/*/errno.h
/usr/include/asm/errno.h:#define ENETUNREACH 101 /* Network is unreachable */
"Network is unreachable". Does that ring a bell?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Q: What do you get when you cross an ethernet with an income statement?
A: A local area networth.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: problems with NFS root for ADS860
@ 2004-03-11 8:20 m.venkatraj
0 siblings, 0 replies; 5+ messages in thread
From: m.venkatraj @ 2004-03-11 8:20 UTC (permalink / raw)
To: wd; +Cc: linuxppc-embedded
Hello Wolfgang,
> Instead of seaching the web a simple local lookup would have done:
>
> -> grep 101 /usr/include/*/errno.h
> /usr/include/asm/errno.h:#define ENETUNREACH 101
> /* Network is unreachable */
>
> "Network is unreachable". Does that ring a bell?
Thanks a lot!
Coming to think of it, my box and the NFS server are not on the same subnet.
Could this be an issue?
The box has IP 192.158.98.116, whereas the server is 192.158.97.38. But then
I am specifying the net mask as 255.255.252.0, also tried 255.255.0.0.
Neither helped.
The box IS able to read from the network, because u-boot picks up the kernel
image via tftp from the same server. I am clueless....
Thanks a ton for helping me thru.
Venkat
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problems with NFS root for ADS860
@ 2004-03-11 11:43 Jack Liu
2004-03-11 15:57 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Jack Liu @ 2004-03-11 11:43 UTC (permalink / raw)
To: linuxppc-embedded@lists.linuxppc.org, m.venkatraj@exgate.tek.com
Dear all
Currently I am porting linux to a new MPC8241 board. I am using
Motorola sandpoint porting code as a reference. So I modified
ppc/platforms/Sandpoint*.* file to adapt to the new board. I just
replace these four files(I am using 2.4.21 ppc kernel).
Also, I am using MPC8241's UART.So I also changed setup_io_mappings
function to
"io_block_mapping(0xfc000000, 0xfc000000, 0x02000000, _PAGE_IO); "
Do I still need to make other changes? In my understanding , porting
linux in ppc platform is register the following files.
ppc_md.setup_arch = sandpoint_setup_arch;
ppc_md.show_cpuinfo = sandpoint_show_cpuinfo;
ppc_md.irq_cannonicalize = sandpoint_irq_cannonicalize;
ppc_md.init_IRQ = sandpoint_init_IRQ;
ppc_md.get_irq = sandpoint_get_irq;
ppc_md.init = sandpoint_init2;
ppc_md.restart = sandpoint_restart;
ppc_md.power_off = sandpoint_power_off;
ppc_md.halt = sandpoint_halt;
ppc_md.time_init = NULL;
ppc_md.set_rtc_time = NULL;
ppc_md.get_rtc_time = NULL;
ppc_md.calibrate_decr = todc_calibrate_decr;
ppc_md.find_end_of_memory = sandpoint_find_end_of_memory;
ppc_md.setup_io_mappings = sandpoint_map_io;
Am I correct on this? Please help me on this.
Best regards
Jack
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problems with NFS root for ADS860
2004-03-11 11:43 problems with NFS root for ADS860 Jack Liu
@ 2004-03-11 15:57 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-03-11 15:57 UTC (permalink / raw)
To: Jack Liu; +Cc: linuxppc-embedded@lists.linuxppc.org
In message <200403111144.i2BBiOM4015518@ms.usish.com> you wrote:
>
> Currently I am porting linux to a new MPC8241 board. I am using
> Motorola sandpoint porting code as a reference. So I modified
> ppc/platforms/Sandpoint*.* file to adapt to the new board. I just
> replace these four files(I am using 2.4.21 ppc kernel).
> Also, I am using MPC8241's UART.So I also changed setup_io_mappings
And what has all this to do with "problems with NFS root for ADS860"
as you write in the subject???
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
The human race has one really effective weapon, and that is laughter.
- Mark Twain
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-03-11 15:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-11 11:43 problems with NFS root for ADS860 Jack Liu
2004-03-11 15:57 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2004-03-11 8:20 m.venkatraj
2004-03-11 6:03 m.venkatraj
2004-03-11 8:10 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).