You are not logged in.

#1 2010-11-10 11:57:17

jacopastorius82
Member
Registered: 2010-10-27
Posts: 31

arch does not create usb0 for android tethering

i followed the wiki instructions. usbnet module properly loaded.in android phone usb tethering is active but ifconfig -a does not show usb0 interface. i also checked dmesg and there is not other assigned name for android usb

Offline

#2 2010-11-10 12:46:40

jacopastorius82
Member
Registered: 2010-10-27
Posts: 31

Re: arch does not create usb0 for android tethering

i also tried wifi tethering. iwlist find my android access point, i can associate it with wlan0 but when i do dhcpcd wlan0 it waits for carrier and after some minutes returns time out error. Seems it can't give ip address to my wlan: Also tried doing that with wicd and it says that can't assign ip address

Any help really appreciated

Last edited by jacopastorius82 (2010-11-10 12:47:20)

Offline

#3 2010-11-10 16:42:40

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: arch does not create usb0 for android tethering

I'm not sure which method you're using to try to tether, but the one I settled on for use on Linux is called azilink (http://code.google.com/p/azilink/).  I made a package that you can install with pacman for it (http://jowilkin.thayer.dartmouth.edu/az … pkg.tar.gz).  It requires the android-sdk package from the AUR.

It installs an rc.d script for azilink in /etc/rc.d.  So you can start tethering with

/etc/rc.d/azilink start

And use the same command with the 'stop' argument to turn off tethering.

Before you start it, you need to have usb debugging enabled (see step 2 on http://code.google.com/p/azilink), and you also need to make sure you have azilink installed on your phone (see step 4 on http://code.google.com/p/azilink) and running.

As a warning, no one else has tested it but me.  It works fine for me so far, but I can't guarantee anything.  One thing to be aware of is that it needs to replace your /etc/resolv.conf file during tethering.  I tried to build in a crude mechanism to backup your current resolv.conf before tethering starts and then put it back in place when tethering is stopped, but it is very crude.  If you use something like NetworkManager, your resolv.conf is probably being auto generated and backing it up is not really an issue since it will be regenerated, but if you use a customized resolv.conf, make sure you keep your own backup.

Edit: I forgot that the rc.d script assumes you are using network manager.  If you aren't, I think you should just be able to comment the relevant lines out (lines 24 and 58).

Last edited by jowilkin (2010-11-10 17:00:56)

Offline

#4 2010-11-10 18:25:33

jacopastorius82
Member
Registered: 2010-10-27
Posts: 31

Re: arch does not create usb0 for android tethering

forgot to mention i have froyo so tethering should work ut of the box with linux

Offline

#5 2010-11-10 18:27:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 26,251
Website

Re: arch does not create usb0 for android tethering

Wifi tethering does work out of the box for me (using wicd and WPA2/AES).


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#6 2010-11-10 18:28:32

schuay
Trusted User (TU)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: arch does not create usb0 for android tethering

jasonwryan wrote:

Wifi tethering does work out of the box for me (using wicd and WPA2/AES).

Same here, using cyanogenmod.
Edit: and after connecting per USB and enabling tethering in "Wireless & network settings" -> "Tethering" -> "USB Tethering", the usb0 interface is created automatically.

Last edited by schuay (2010-11-10 18:32:37)

Offline

#7 2010-11-10 18:32:50

jacopastorius82
Member
Registered: 2010-10-27
Posts: 31

Re: arch does not create usb0 for android tethering

what rom are u running on your wildfire?

Also tried with cyanogenmod and no luck..i really can't understand what the problem could be

Last edited by jacopastorius82 (2010-11-11 13:12:52)

Offline

Board footer

Powered by FluxBB