Hi all,
I have a problem. I build a rootfs using buildroot and configured NFS to
the unflatted FS.
The problem is that init is not started.
Here is my bootargs :
setenv bootargs console=ttySAC0,115200 noinitrd init=/sbin/init
mini2440=3tb ip=192.168.1.16 root=/dev/nfs rw nfsroot=192.168.1.15:/nfsroot
and the log :
eth0: link down
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, addr=192.168.1.16, mask=255.255.255.0,
gw=255.255.255.255,
host=192.168.1.16, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=192.168.1.15, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.15
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Looking up port of RPC 100005/1 on 192.168.1.15
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 132K
and the system freezes. Next lines should be (when booted from nand with
jffs2 rootfs):
Initializing random number generator... done.
Starting network...
ip: RTNETLINK answers: File exists
Starting sshd: OK
Welcome to Buildroot
buildroot login:
Ether init or /etc/init.d/rcS is not called.
Any ideas?
Thanks in advance,
Init doesn't start with NFS
Consider the follwoing points:
in ubuntu:
1.
sudo vi /etc/exports
/export/fs *(rw,no_subtree_check,sync)
sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.1
broadcast 192.168.0.255
gateway 192.168.0.1
sudo /etc/init.d/networking restart
2.
ifconfig
eth0 Link encap:Ethernet HWaddr 00:23:54:a2:cd:32
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:248 Base address:0x2000
3.
sudo /etc/init.d/nfs-kernel-server restart
* Stopping NFS kernel daemon [
OK ]
* Unexporting directories for NFS kernel daemon... [
OK ]
* Exporting directories for NFS kernel daemon... [
OK ]
* Starting NFS kernel daemon [
OK ]
for further details please refer the
website:http://processors.wiki.ti.com/index.php/Creating_a_Root_File_System_for_...
Let me know stil you are facing the problem.
If so please send your kernel configuration .config and root file system.
Thanks
Alex


