When you plug an Android phone into a Linux computer and enable the tethering option, a network device is created called usb0. I've identified the following kernel modules that provide this, that are missing from Tomato: mii, usbnet, cdc_ether, rndis_host. If those could be added to the extra modules package, it would be appreciated.
Not having a linuxen box to hook either of my Android phones to, I don't know about that sort of tethering.
I do tether under XP, and have had no problems there. Wireless G is no problem, using WPA2 AES either. What would be the upside/downside of linux tethering? And if it is something to be sought, would a live cd distro work?
- bezantsoft
/s/ BezantSoft
teddy_b: This doesn't seem to be the case. There are many modules that seem like they should work, but I've not gotten them to register a usb0 device for any android device. Here's my startup script:
_
insmod /jffs/lib/modules/mii.ko
insmod /jffs/lib/modules/usbnet.ko
insmod /jffs/lib/modules/cdc_ether.ko
insmod /jffs/lib/modules/rndis_host.ko
brctl addif br0 usb0
__
The modules register and show loaded without any problems, but no usb0. Here's my /var/log/messages when I plug in my device:
Dec 31 16:10:12 unknown user<dot>info kernel: usb 1-1: new high speed USB device using ehci_hcd and address 6
Dec 31 16:10:13 unknown user<dot>info kernel: usb 1-1: configuration #1 chosen from 1 choice
Dec 31 16:10:13 unknown user<dot>debug hotplug[576]: Attached USB device 1-1:1.1 [INTERFACE=255/66/1 PRODUCT=bb4/c02/227]
Dec 31 16:10:13 unknown user<dot>debug hotplug[575]: Attached USB device 1-1:1.0 [INTERFACE=8/6/80 PRODUCT=bb4/c02/227]
Dec 31 16:10:22 unknown user<dot>info kernel: usb 1-1: USB disconnect, address 6
Dec 31 16:10:22 unknown user<dot>info kernel: usb 1-1: new high speed USB device using ehci_hcd and address 7
Dec 31 16:10:22 unknown user<dot>info kernel: usb 1-1: configuration #1 chosen from 1 choice
Dec 31 16:10:22 unknown user<dot>debug hotplug[588]: Attached USB device 1-1:1.0 [INTERFACE=224/1/3 PRODUCT=bb4/ffc/227]
Dec 31 16:10:23 unknown user<dot>debug hotplug[591]: Attached USB device 1-1:1.1 [INTERFACE=10/0/0 PRODUCT=bb4/ffc/227]
Dec 31 16:10:23 unknown user<dot>debug hotplug[595]: Attached USB device 1-1:1.2 [INTERFACE=255/66/1 PRODUCT=bb4/ffc/227]
I attempted to get this working with Toastman's latest version and received the following error. anyone have a workaround?
insmod: can't insert rndis_host.ko unknown symbol in module, or unknown parameter
I found working kernel modules.
<dot>="."
tomato<dot>groov<dot>pl/K26/build5x-092-EN/extras-mips2.tar.gz
I got this far today, I still need to figure out the NATTING and default route.
insmod mii.ko
insmod usbnet.ko
insmod cdc_ether.ko
insmod rndis_host.ko
ifconfig usb0 up
udhcpc -i usb0
insmod mii.ko
insmod usbnet.ko
insmod cdc_ether.ko
insmod rndis_host.ko
<enabled usb tethering>
ifconfig usb0 up
udhcpc -i usb0
I found working kernel modules.
<dot>="."
tomato<dot>groov<dot>pl/K26/build5x-092-EN/extras-mips2.tar.gz
I got this far today, I still need to figure out the NATTING and default route.
insmod mii.ko
insmod usbnet.ko
insmod cdc_ether.ko
insmod rndis_host.ko
ifconfig usb0 up
udhcpc -i usb0
Got it working!!!
cp extras-mips1/* /opt/lib
cd /opt/lib/
insmod mii.ko
insmod usbnet.ko
insmod cdc_ether.ko
insmod rndis_host.ko
<enable usb tethering>
ifconfig usb0 up
udhcpc -i usb0
<output>
Sending discover…
Sending select for <addr>… <—-this is your usb0 address
Lease of <addr> obtained, lease time 3600
<output>
ifconfig usb0 <addr> netmask <mask> broadcast <bcast>
route add default gw <gw> usb0 <—-you can get your gateway when you tether from your laptop
iptables —table nat —append POSTROUTING —out-interface usb0 -j MASQUERADE
## You need to add your own DNS server at this point, I'm still working out the details.