From 75bffcd47ad9fec334150aab936e727054ff5cc8 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 10 Sep 2010 12:44:56 +0100 Subject: handbook: Drop USB Networking section, its no longer appropriate Signed-off-by: Richard Purdie --- handbook/usingpoky.xml | 86 -------------------------------------------------- 1 file changed, 86 deletions(-) (limited to 'handbook') diff --git a/handbook/usingpoky.xml b/handbook/usingpoky.xml index 50816c9273..ad6bda2545 100644 --- a/handbook/usingpoky.xml +++ b/handbook/usingpoky.xml @@ -159,92 +159,6 @@ $ bitbake qemu-native board/machine documentation for information about how to install these images. -
- USB Networking - - - Devices commonly have USB connectivity. To connect to the usbnet interface, on - the host machine run: - - - -modprobe usbnet -ifconfig usb0 192.168.0.200 -route add 192.168.0.202 usb0 - - -
- -
- QEMU/USB networking with IP masquerading - - - On Ubuntu, Debian or similar distributions you can have the network automatically - configured. You can also enable masquerading between the QEMU system and the rest - of your network. To do this you need to edit /etc/network/interfaces to include: - - - -allow-hotplug tap0 -iface tap0 inet static - address 192.168.7.200 - netmask 255.255.255.0 - network 192.168.7.0 - post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.0/24 - post-up echo 1 > /proc/sys/net/ipv4/ip_forward - post-up iptables -P FORWARD ACCEPT - - - - - This ensures the tap0 interface will be up everytime you run QEMU - and it will have network/internet access. - - - - Under emulation there are two steps to configure for internet access - via tap0. The first step is to configure routing: - - - -route add default gw 192.168.7.200 tap0 - - - - - The second is to configure name resolution which is configured in the - /etc/resolv.conf file. The simplest solution is - to copy its content from the host machine. - - - - USB connections to devices can be set up and automated in a similar way. - First add the following to - /etc/network/interfaces: - - - -allow-hotplug usb0 -iface usb0 inet static - address 192.168.0.200 - netmask 255.255.255.0 - network 192.168.0.0 - post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 - post-up echo 1 > /proc/sys/net/ipv4/ip_forward - post-up iptables -P FORWARD ACCEPT - - - - - and then to configure routing on the device you would use: - - - -route add default gw 192.168.0.202 usb0 - - - -
-- cgit v1.2.3-54-g00ecf