Nfs root mounting problem!
"umesh" <[email protected]>
| Newsgroups | gmane.linux.drivers.prism54.user |
|---|---|
| Message-ID | <001001c48052$154ce110$6501a8c0@umesh> |
Hi All, I am working on Samsung S3C2510+uClinux-2.4.20 Platform. From last 10 days I am trying to configure NFS but Iam unable to setup it up. I have invoked NFS support in kernel configuration & I change setup.c to solve the command_line problem, like.. #ifndef CONFIG_CMDLINE // #define CONFIG_CMDLINE "root=/dev/rom0" #define CONFIG_CMDLINE "root=/dev/nfs rw nfsroot=192.168.1.5:/home/umesh/uClinux/romfs nfsaddrs=192.168.1.104:192.168.1.5:192.168.1.7:255.255.255.0::eth0:none" and //static char command_line[COMMAND_LINE_SIZE] = "root=/dev/rom0" static char command_line[COMMAND_LINE_SIZE] = "root=/dev/nfs rw nfsroot=192.168.1.5:/home/umesh/uClinux/romfs nfsaddrs=192.168.1.104:192.168.1.5:192.168.1.7:255.255.255.0::eth0:none"; But I am still getting error: I checked, my command line is parsing properly, even during booting I print value of root device from root_dev_setup() function & it prints root device = nfs. Please have a look on my boot log , It show IP-config -complete with correct data. I dont know where I am missing something even I serach the whole list archive and followed some help but I am unable to get it work. Linux version 2.4.20-uc0 ([email protected]) (gcc version 3.2.1) #200 Thu A ug 12 18:32:56 KST 2004 ENVM: Loading ENV Memory. Processor: Samsung Arm940T revision 2 Architecture: 2510REF-AN Warning: bad configuration page, trying to continue On node 0 totalpages: 8192 zone(0): 0 pages. zone(1): 8192 pages. zone(2): 0 pages. Kernel command line: root=/dev/nfs nfsroot=192.168.1.5:/home/umesh/uClinux/romfs nfsaddrs=192.168.1.104:192.168.1.5:192.168.1.7:255.255.255.0::eth0:any we r in root_dev_setup func and *line=/dev/nfs we r in root_dev_setup func and ROOT_DEV= 255 root device= nfs Calibrating delay loop... 82.94 BogoMIPS Memory: 32MB = 32MB total Memory: 30992KB available (973K code, 342K data, 52K init) 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 ENVM: Register envm driver. board detection: 2510REF board S3C2510 PCI Host Controller Initializing... S3C2510 PCI host initialized Found 00:00 [144d/a510] 000600 00 Found 00:08 [1260/3890] 000280 00 PCI: bus0: Fast back to back transfers enabled got res[c0000000:c0001fff] for resource 0 of PCI device 1260:3890 (Harris Semi conductor) Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd S3C2510 Serial I/O driver ttyS0: at 0xf0060000 (IRQs: Tx=11 Rx=12) is a builtin Console UART ttyS1: at 0xf0070000 (IRQs: Tx=07 Rx=08) is a builtin High-Speed UART ttyS2: at 0xf0080000 (IRQs: Tx=09 Rx=10) is a builtin High-Speed UART s3c2510.c: Revision: 2.0 Date: 2004.Jan.02 ethaddr0==00:09:30:28:12:22 eth0: Auto-negotiation eth0: found at f00a0000 ethaddr1==00:09:30:28:12:24 eth1: 100Mbps, Full-duplex fixed eth1: found at f00c0000 Blkmem copyright 1998,1999 D. Jeff Dionne Blkmem copyright 1998 Kenneth Albanowski Blkmem 1 disk images: 0: 80020000-8301FFFF [VIRTUAL 80020000-8301FFFF] (RO) IEEE 802.2 LLC for Linux 2.1 (c) 1996 Tim Alpaerts 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) eth0: link up, 10Mbps, half-duplex, lpa 0x0021 IP-Config: Complete: device=eth0, addr=192.168.1.104, mask=255.255.255.0, gw=192.168.1.7, host=192.168.1.104, domain=, nis-domain=(none), bootserver=192.168.1.5, rootserver=192.168.1.5, rootpath= NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NET4: Ethernet Bridge 008 for NET4.0 we r in mount_root function we r in mount_root's #if CONFIG_ROOT_NFS block we r in "mount_block_root" before "get_fs_names(fs_names)" , fs_names = /dev/root we r in "mount_block_root" after "get_fs_names(fs_names)" fs_name= <NULL> in mount_block_root= Kernel panic: VFS: Unable to mount root fs on 1f:00 I dont know why it is unable to mount nfsroot even I checked my nfs server is working properly for other linux boxes. If somebody faced the similar problem Please help me Out. I am very very sorry for long messege. RegardS!! Umesh