diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-10 12:44:56 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-10 12:44:56 +0100 |
commit | 75bffcd47ad9fec334150aab936e727054ff5cc8 (patch) | |
tree | cb61605799e44bbb70ea741675fcec2a55a487fa /handbook/usingpoky.xml | |
parent | ad30f2cc4e1072ab5b2ec60de08f4d299118a255 (diff) | |
download | poky-75bffcd47ad9fec334150aab936e727054ff5cc8.tar.gz |
handbook: Drop USB Networking section, its no longer appropriate
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'handbook/usingpoky.xml')
-rw-r--r-- | handbook/usingpoky.xml | 86 |
1 files changed, 0 insertions, 86 deletions
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 | |||
159 | board/machine documentation for information about how to install these images. | 159 | board/machine documentation for information about how to install these images. |
160 | </para> | 160 | </para> |
161 | 161 | ||
162 | <section id='usingpoky-install-usbnetworking'> | ||
163 | <title>USB Networking</title> | ||
164 | |||
165 | <para> | ||
166 | Devices commonly have USB connectivity. To connect to the usbnet interface, on | ||
167 | the host machine run: | ||
168 | </para> | ||
169 | <para> | ||
170 | <programlisting> | ||
171 | modprobe usbnet | ||
172 | ifconfig usb0 192.168.0.200 | ||
173 | route add 192.168.0.202 usb0 | ||
174 | </programlisting> | ||
175 | </para> | ||
176 | </section> | ||
177 | |||
178 | <section id='usingpoky-install-qemu-networking'> | ||
179 | <title>QEMU/USB networking with IP masquerading</title> | ||
180 | |||
181 | <para> | ||
182 | On Ubuntu, Debian or similar distributions you can have the network automatically | ||
183 | configured. You can also enable masquerading between the QEMU system and the rest | ||
184 | of your network. To do this you need to edit <filename>/etc/network/interfaces</filename> to include: | ||
185 | </para> | ||
186 | |||
187 | <para><programlisting> | ||
188 | allow-hotplug tap0 | ||
189 | iface tap0 inet static | ||
190 | address 192.168.7.200 | ||
191 | netmask 255.255.255.0 | ||
192 | network 192.168.7.0 | ||
193 | post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.0/24 | ||
194 | post-up echo 1 > /proc/sys/net/ipv4/ip_forward | ||
195 | post-up iptables -P FORWARD ACCEPT | ||
196 | </programlisting> | ||
197 | </para> | ||
198 | |||
199 | <para> | ||
200 | This ensures the tap0 interface will be up everytime you run QEMU | ||
201 | and it will have network/internet access. | ||
202 | </para> | ||
203 | |||
204 | <para> | ||
205 | Under emulation there are two steps to configure for internet access | ||
206 | via tap0. The first step is to configure routing: | ||
207 | </para> | ||
208 | |||
209 | <para><programlisting> | ||
210 | route add default gw 192.168.7.200 tap0 | ||
211 | </programlisting> | ||
212 | </para> | ||
213 | |||
214 | <para> | ||
215 | The second is to configure name resolution which is configured in the | ||
216 | <filename>/etc/resolv.conf</filename> file. The simplest solution is | ||
217 | to copy its content from the host machine. | ||
218 | </para> | ||
219 | |||
220 | <para> | ||
221 | USB connections to devices can be set up and automated in a similar way. | ||
222 | First add the following to | ||
223 | <filename>/etc/network/interfaces</filename>: | ||
224 | </para> | ||
225 | |||
226 | <para><programlisting> | ||
227 | allow-hotplug usb0 | ||
228 | iface usb0 inet static | ||
229 | address 192.168.0.200 | ||
230 | netmask 255.255.255.0 | ||
231 | network 192.168.0.0 | ||
232 | post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 | ||
233 | post-up echo 1 > /proc/sys/net/ipv4/ip_forward | ||
234 | post-up iptables -P FORWARD ACCEPT | ||
235 | </programlisting> | ||
236 | </para> | ||
237 | |||
238 | <para> | ||
239 | and then to configure routing on the device you would use: | ||
240 | </para> | ||
241 | |||
242 | <para><programlisting> | ||
243 | route add default gw 192.168.0.202 usb0 | ||
244 | </programlisting> | ||
245 | </para> | ||
246 | |||
247 | </section> | ||
248 | </section> | 162 | </section> |
249 | 163 | ||
250 | <section id='usingpoky-debugging'> | 164 | <section id='usingpoky-debugging'> |