Here's the other way to do it... ---------- Forwarded message ---------- From: Vishal Bhoj <[email protected]> Date: Tue, Mar 27, 2012 at 11:52 AM Subject: Fwd: Networking on the fast model To: Paul Larson <[email protected]>, Zygmunt Krynicki < [email protected]>
---------- Forwarded message ---------- From: Dave Martin <[email protected]> Date: 22 March 2012 16:56 Subject: Networking on the fast model To: Vishal Bhoj <[email protected]> git clone git://git.linaro.org/people/dmart/tunsetup.git cd tunsetup make sudo ./tunsetup -c -t tap -o `id -u` tap%d >/tmp/tunsetup.conf # ^ this creates a fake ethernet device which can be accessed by you . /tmp/tunsetup.conf -C motherboard.hostbridge.interfaceName=$TUN_IF Random link-local addresses are generated automatically. You can configure boot-time networking on the model by putting: ip=$TUN_REMOTEIP::$TUN_LOCALIP:$TUN_NETMASK ...on the kernel command line If you want to allow the model to talk to the Internet, you also need to enable NAT: sudo /bin/sh -c 'echo 1 >/proc/sys/net/ipv4/ip_forward' sudo iptables -t nat -A POSTROUTING -s $TUN_REMOTEIP -j MASQUERADE ...and copy/paste the contents of /etc/resolv.conf into the model filesystem's /etc/resolv.conf The IP and DNS setup stuff could be handled by having a local DHCP server, but I was too lazy to set that up... Let me know how you get on! Cheers ---Dave
_______________________________________________ linaro-validation mailing list [email protected] http://lists.linaro.org/mailman/listinfo/linaro-validation
