Altera_Forum
Honored Contributor
21 years agomount root over NFS
Over the last two days, I've been trying to get the NIOS kernel to mount its root FS over NFS, without result. I assume I'm missing something obvious, but I am missing it.
The server (Debian/Sarge) has been used for over a year as server and serves a quite some NFS root FS's for PowerPC architectures, embedded. We never had any problem with this. The server runs a DHCP server that replies on the bootp packets. When looking at theKernel command line: CONSOLE=/dev/ttyS0 noinitrd ip=bootp root=/dev/nfs rw
PID hash table entries: 128 (order: 7, 2048 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 14500k/16384k RAM, 0k/0k ROM (1482k kernel code, 201k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
NET: Registered protocol family 16
NIOS serial driver version 0.0
ttyS0 (irq = 4) is a builtin NIOS UART
smc_probe: 50000 Khz Nios
SMSC LAN91C111 Driver (v2.1), (Linux Kernel 2.6)
eth0: SMC91C11xFD(rev:1) at 0x82110300 IRQ:6 MEMSIZE:8192b NOWAIT:0 ADDR: 00:07:ed:0a:02:cf
smc_probe: 50000 Khz Nios
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0:PHY 100BaseT
eth0:PHY Full Duplex
Sending BOOTP requests . OK
IP-Config: Got BOOTP answer from 10.158.231.6, my address is 10.158.231.140
IP-Config: Complete:
device=eth0, addr=10.158.231.140, mask=255.255.255.0, gw=10.158.231.1,
host=10.158.231.140, domain=, nis-domain=(none),
bootserver=10.158.231.6, rootserver=10.158.231.6, rootpath=/users/firmware/marc/targets/nios2/evaluation
Looking up port of RPC 100003/2 on 10.158.231.6
Looking up port of RPC 100005/1 on 10.158.231.6
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 56k freed (0x1184000 - 0x1191000)
Kernel panic - not syncing: No init found. Try passing init= option to kernel. For this kernel, I disabled devfs; and created the nodes manually (devfs is normally always used) but there is no difference in the result. I even tried to replace the '/sbin/init' with a statically linked hello_world program, but again, no difference. I see the bootp packets arriving and I see the replies; I even see that the root FS directory is mounted remotely in xtab: /home/firmware/marc/targets/nios2/evaluation 10.158.231.140(rw,async,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,subtree_
check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) The kernel I am trying is the nios 1.3 kernel (2.6.9-uc0) on an Altera NIOS 2 Evaluation kit. Any suggestions?