* An old problem ...about linux mount rootfs with nfs
@ 2005-08-24 2:58 徐小威的EMAIL
2005-08-24 7:30 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: 徐小威的EMAIL @ 2005-08-24 2:58 UTC (permalink / raw)
To: linuxppc-embedded
Hi All:
I used u-boot-1.1.3 and 2.4.25 linux on my custom MPC852T board, I
can't mount /opt/eldk/ppc_8xx as rootfs.
I used SCC4 (10M Ethernet) for download port.I also try to change to
FEC (100M) as download port, but still fail.I want to know the problem
is cause by u-boot or linux kernel config.
Boot 1.0.0 (Aug 24 2005 - 10:00:37)
CPU: MPC852TxxZPnn at 100 MHz: 4 kB I-Cache 4 kB D-Cache FEC present
DRAM: 32 MB
FLASH: 8 MB
In: serial
Out: serial
Err: serial
Net: SCC ETHERNET [PRIME]
PCMCIA: No Card found
Hit any key to stop autoboot: 0
=> setenv hostname banana
=> setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) ip=
$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off
=> printenv
bootcmd=bootm 40040000 40100000
bootdelay=3
baudrate=115200
loads_echo=1
ethprime=SCC ETHERNET
ipaddr=10.0.14.110
serverip=10.0.14.26
netmask=255.255.0.0
preboot=echo;
netdev=eth0
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)
ramargs=setenv bootargs root=/dev/ram rw
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):
$(netmask):$(hostname):$(netdev):off panic=1
flash_nfs=run nfsargs addip;bootm $(kernel_addr)
flash_self=run ramargs addip;bootm $(kernel_addr) $(ramdisk_addr)
net_nfs=tftp 200000 $(bootfile);run nfsargs addip;bootm
rootpath=/opt/eldk/ppc_8xx
bootfile=/tftpboot/uImage
kernel_addr=40040000
ramdisk_addr=40100000
ethaddr=00:01:02:B4:36:56
stdin=serial
stdout=serial
stderr=serial
ethact=SCC ETHERNET
bootcount=9
hostname=banana
bootargs=root=/dev/nfs rw nfsroot=10.0.14.26:/opt/eldk/ppc_8xx
ip=10.0.14.110:10.0.14.26::255.255.0.0:banana::off
Environment size: 907/16379 bytes
=> bootm 40040000
## Booting image at 40040000 ...
Image Name: Linux-2.4.25-rthal5
Created: 2005-08-22 3:20:52 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 724462 Bytes = 707.5 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Linux version 2.4.25-rthal5 (root@banana) (gcc version 3.3.3 (DENX ELDK
3.1.1 3.3.3-9)) #17 一 8月 22 11:15:26 CST 2005
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/nfs rw
nfsroot=10.0.14.26:/opt/eldk/ppc_8xx
ip=10.0.14.110:10.0.14.26::255.255.0.0:banana::off
Decrementer Frequency = 375000000/60
Calibrating delay loop... 99.73 BogoMIPS
Memory: 30692k available (1264k kernel code, 360k data, 52k init, 0k
highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 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: 8192 (order: 3, 32768 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.04
ttyS0 at 0x0280 is on SMC1 using BRG1
eth0: CPM ENET Version 0.2 on SCC4, 00:01:02:b4:36:56
eth1: FEC ENET Version 0.3, FEC irq 9, MII irq 12, addr
00:01:02:b4:36:57
RAMDISK driver initialized: 16 RAM disks of 20480K size 1024 blocksize
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
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 2048 bind 4096)
ip_conntrack version 2.1 (256 buckets, 2048 max) - 292 bytes per
conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.
http://snowman.net/projects/ipt_recent/
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
VFS: Cannot open root device "nfs" or 00:ff
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 00:ff
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: An old problem ...about linux mount rootfs with nfs
2005-08-24 2:58 An old problem ...about linux mount rootfs with nfs 徐小威的EMAIL
@ 2005-08-24 7:30 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-08-24 7:30 UTC (permalink / raw)
To: 徐小威的EMAIL; +Cc: linuxppc-embedded
In message <1124852294.11078.8.camel@banana> you wrote:
>
> I used u-boot-1.1.3 and 2.4.25 linux on my custom MPC852T board, I
> can't mount /opt/eldk/ppc_8xx as rootfs.
You pass incomplete config options to the kernel.
> Hit any key to stop autoboot: 0
> => setenv hostname banana
> => setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) ip=
> $(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off
> => printenv
> bootcmd=bootm 40040000 40100000
> bootdelay=3
> baudrate=115200
> loads_echo=1
> ethprime=SCC ETHERNET
> ipaddr=10.0.14.110
> serverip=10.0.14.26
> netmask=255.255.0.0
> preboot=echo;
> netdev=eth0
^^^^^^^^^^^^^
> nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)
> ramargs=setenv bootargs root=/dev/ram rw
> addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):
> $(netmask):$(hostname):$(netdev):off panic=1
^^^^^^^^^
Here you have all the necessary prparations.
> bootargs=root=/dev/nfs rw nfsroot=10.0.14.26:/opt/eldk/ppc_8xx
> ip=10.0.14.110:10.0.14.26::255.255.0.0:banana::off
^^
But here you are missing to pass the information which ethernet interface to use.
> Kernel command line: root=/dev/nfs rw
> nfsroot=10.0.14.26:/opt/eldk/ppc_8xx
> ip=10.0.14.110:10.0.14.26::255.255.0.0:banana::off
-----------------------------------------------^^^
No interface selected.
> eth0: CPM ENET Version 0.2 on SCC4, 00:01:02:b4:36:56
> eth1: FEC ENET Version 0.3, FEC irq 9, MII irq 12, addr
> 00:01:02:b4:36:57
But there are two intefaces. Which one should the kernel use?
Just fix your bootargs.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
You humans have that emotional need to express gratitude. "You're
welcome," I believe, is the correct response.
-- Spock, "Bread and Circuses", stardate 4041.2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-24 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-24 2:58 An old problem ...about linux mount rootfs with nfs 徐小威的EMAIL
2005-08-24 7:30 ` 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).