USB ethernet HOWTO

From GreenphoneWiki

Jump to: navigation, search

We have to enable USB networking in the host kernel to be able to telnet into the Greenphone via USB cable.

Contents

[edit] Compile kernel modules manually

If you are using the default precompiled kernel for Debian, Red Hat, Fedora, SUSE or any other precompiled GNU/Linux distribution, then skip ahead to the next section. If you are using a custom kernel, then you should do the following:

cd /usr/src/linux
make menuconfig
  1. Go to the sub menu "Device Drivers" -> "USB support" -> "USB Network Adapters".
  2. Scroll down to "Multi-purpose USB Networking Framework" and press "M".
  3. Scroll down to "Simple USB Network Links (CDC Ethernet subset)" and press "M". A sub-menu will appear.
  4. Scroll down to "Embedded ARM Linux links (iPaq, ...)" and press "Y".
  5. Exit and save.
make modules
make modules_install

[edit] Enable the module

modprobe cdc_ether

This driver creates an interface named "ethX", where X depends on what other networking devices you have in use. However, if the IEEE 802 "local assignment" bit is set in the address, a "usbX" name is used instead.

[edit] Configure manually

ifconfig eth1 up
ifconfig eth1 10.10.10.21 netmask 255.0.0.0 broadcast 10.255.255.255

[edit] Configure for Gentoo GNU/Linux

Add this line to /etc/conf.d/net

config_eth1=( "10.10.10.22 netmask 255.0.0.0  broadcast 10.255.255.255" )
Personal tools