root with nfs with static ip and eth0 vs usb0

335 views
Skip to first unread message

Arthur Lambert

unread,
Mar 3, 2015, 10:40:33 AM3/3/15
to wand...@googlegroups.com
Hi,

I am currently trying to use nfs for rootfs on wandboard for fast debugging without success.

Env :
Buildroot
Kernel : g...@github.com:wandboard-org/linux.git
branch : wandboard_imx_3.10.17_1.0.1_ga


In uboot env :
setenv bootargs console=ttymxc0,115200 root=/dev/nfs ip=192.168.42.10 nfsroot=192.168.42.1:/srv/wandboard/nfs rw

nfs-kernel and /etc/exports are already configured on my host.


To boot from uboot :
mmc dev 0; run loadzimage; run loadfdt; bootz ${loadaddr} - ${fdt_addr}

During the nfs step during kernel boot, output is :

Pv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sending DHCP requests ...... timed out!
IP-Config: Retrying forever (NFS root)...
fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
Sending DHCP requests .libphy: 2188000.ethernet:01 - Link is Up - 1000/Full

I does not understand the issue here. bootargs was set with ip=192.168.X.X and not ip=dhcp. But my kernel want absolutly used dhcp. How can I fix that ?


Moreover I would like to use usb0 on usb otg instead of eth0 but it seems that uboot seems to use eth0 first by default. How to say to my friend uboot that I want to used usb0 instead of eth0 for nfs ? 

Thanks,
Arthur.

Arthur Lambert

unread,
Mar 6, 2015, 5:37:46 AM3/6/15
to wand...@googlegroups.com
Hi I was finally able to make it work.

I used this bootargs :

bootargs console=ttymxc0,115200 root=/dev/nfs rw nfsroot=192.168.42.1:/srv/wandboard/nfs ip=192.168.42.10::0.0.0.0:255.255.255.0:tutu:eth0:off 

tutu is my hostname of my host
192.168.42.1 is the ip of my host
192.168.42.10 will be the ip of my target

Arthur.
Reply all
Reply to author
Forward
0 new messages