You are not logged in.

#1 2011-11-03 00:22:21

SuperRaWR
Member
From: Sylvan Lake, AB
Registered: 2011-09-18
Posts: 9
Website

usb0 Interface Isn't Showing As Available?

First of all, I've never used usbnet before, and I HAVE searched the forums & google for answers.

For some reason, I can't seem to activate usb0 interface.  I was trying to tether my android phone, instead of having to use the mobile AP over wifi.  I've had absolutely no luck though.  I can't even see my usb0 interface, and it's not being automatically created when I plug my phone in and enabled USB tethering.  I've tried making sure the module is enabled by using:

[steven@msi ~]$ modprobe usbnet

This is the output of iwconfig, note that I'm currently using Wifi tethering, hence wlan0's output:

[steven@msi ~]$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"Steven Phone"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: REMOVEDADDRESS
          Bit Rate=54 Mb/s   Tx-Power=15 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=70/70  Signal level=-37 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:7   Missed beacon:0

And here is showing the module exists:

[steven@msi ~]$ lsmod | grep usbnet
usbnet                 15362  3 rndis_wlan,rndis_host,cdc_ether
mii                     3995  2 usbnet,r8169
usbcore               142576  12 rndis_wlan,rndis_host,cdc_ether,usbnet,cdc_acm,usb_storage,uas,uvcvideo,usbhid,xhci_hcd,ehci_hcd

Are there any recommendations anyone can make?  I've read in many past threads that other people seemingly had the same issue, and settled with some sort of third party application, however, I'm interested in knowing why I can't get THIS way to work?

Last edited by SuperRaWR (2011-11-03 00:25:49)

Offline

#2 2011-11-03 01:53:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: usb0 Interface Isn't Showing As Available?

Could you post the last couple dozen lines of dmesg taken immediately after you connect the phone to the computer.

Also (since I have no good way to evaluate your technical prowess yet), did you tell the phone how to connect to the computer?  I am not sure about usbnet, but you probably either have to connect as "Mobile Broadband Connect" rather than as "Charge Only", or "Disk Drive".  Alternatively, it might require that you enable debugging (Settings->Applications->Development->USB Debugging)

Last edited by ewaller (2011-11-03 01:54:15)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-11-03 02:25:57

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: usb0 Interface Isn't Showing As Available?

I honestly haven't tried tethering with a stock non-rooted phone, but this application works marvellously for a rooted android phone (og motorola droid). Sorry I can't be more help...

Scott

Offline

#4 2011-11-03 05:35:57

SuperRaWR
Member
From: Sylvan Lake, AB
Registered: 2011-09-18
Posts: 9
Website

Re: usb0 Interface Isn't Showing As Available?

ewaller wrote:

Could you post the last couple dozen lines of dmesg taken immediately after you connect the phone to the computer.

But of course, I should have posted this in my initial post.

[ 6092.196766] usb 2-1.1: new full speed USB device number 6 using ehci_hcd
[ 6136.725760] usb 2-1.3: new high speed USB device number 7 using ehci_hcd
[ 6137.234983] usbcore: registered new interface driver cdc_ether
[ 6137.244687] rndis_host 2-1.3:6.0: RNDIS_MSG_QUERY(0x00010202) failed, -32
[ 6137.253808] rndis_host 2-1.3:6.0: rndis set packet filter, -32
[ 6137.255739] rndis_host: probe of 2-1.3:6.0 failed with error -32
[ 6137.255773] usbcore: registered new interface driver rndis_host
[ 6137.271627] rndis_wlan 2-1.3:6.0: RNDIS_MSG_QUERY(0x00010202) failed, -32
[ 6137.275108] usbcore: registered new interface driver rndis_wlan

As you can see, rndis is being registered, but I don't know that this means: RNDIS_MSG_QUERY(0x00010202) failed, -32

Last edited by SuperRaWR (2011-11-04 18:13:46)

Offline

#5 2011-11-04 18:13:51

SuperRaWR
Member
From: Sylvan Lake, AB
Registered: 2011-09-18
Posts: 9
Website

Re: usb0 Interface Isn't Showing As Available?

ewaller wrote:

Also (since I have no good way to evaluate your technical prowess yet), did you tell the phone how to connect to the computer?  I am not sure about usbnet, but you probably either have to connect as "Mobile Broadband Connect" rather than as "Charge Only", or "Disk Drive".  Alternatively, it might require that you enable debugging (Settings->Applications->Development->USB Debugging)

Yes, I have enabled the built in "USB Tethering" in Android, as per the method I've used on windows (and this wiki page).  Linux is still very foreign to me, so I really am not sure what the issue could be.


firecat53 wrote:

I honestly haven't tried tethering with a stock non-rooted phone, but this application works marvellously for a rooted android phone (og motorola droid). Sorry I can't be more help...

Scott

I'm aware of such apps, and I appreciate the help, but as I've stated, I'm merely interested in knowing why this method is not working.

Offline

#6 2011-11-04 20:14:59

damjan
Member
Registered: 2006-05-30
Posts: 454

Re: usb0 Interface Isn't Showing As Available?

Maybe you'll have to debug it on your phone too. Here it works with no fuss on the first try. This is dmesg output on my laptop:

[232540.056089] usb 1-1: new high speed USB device number 7 using ehci_hcd
[232540.444713] usbcore: registered new interface driver cdc_ether
[232540.462043] rndis_host 1-1:1.0: usb0: register 'rndis_host' at usb-0000:00:1d.7-1, RNDIS device, ea:72:84:47:01:3c
[232540.462495] usbcore: registered new interface driver rndis_host

and also ip link

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
…
25: usb0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether ea:72:84:47:01:3c brd ff:ff:ff:ff:ff:ff

Offline

#7 2011-11-04 20:49:23

SuperRaWR
Member
From: Sylvan Lake, AB
Registered: 2011-09-18
Posts: 9
Website

Re: usb0 Interface Isn't Showing As Available?

damjan wrote:

Maybe you'll have to debug it on your phone too.

Hmm, I never really thought of that, however it works on Windows properly, which lead me to the assumption it had something to do with Arch or something.

Offline

#8 2011-11-05 08:01:32

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: usb0 Interface Isn't Showing As Available?

For what it's worth, I am using CyanogenMod 7.1 here and USB tethering works just fine. I just need to activate it on my phone and the usb0 interface appears on my laptop (Arch, of course). I don't think I need to load any modules - I'll have to check my modules array to see if I pre-load them, though, been a while since I checked what was needed to get USB tethering running on Linux.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB