Huawei E3276 problem

Tommy Cheng tommy7765 at yahoo.com
Tue Nov 13 02:24:15 PST 2012


yes, the cdc_ncm driver is working after commenting out usb_driver_claim_interface()

=================================================
# insmod /tmp/cdc_ncm.ko 
cdc_ncm: 14-Mar-2012
cdc_ncm 1-1:1.1: XX: ctx->control=81eec080, ctx->data=81eec080, ctx->ether_desc=814b67c8, intf=81eec080
device reported MAC ADDRESS: 0c:5b:8f:9a:64:00
usb 1-1: MAC-Address: 0x0c:0x5b:0x8f:0x27:0x9a:0x64
usb0: register 'cdc_ncm' at usb-rtl8652-ehci.0-1, CDC NCM, 0c:5b:8f:27:9a:64
usbcore: registered new interface driver cdc_ncm

# ifconfig usb0 up
enable_periodic
usb 1-1: NCM: unexpected notification 0x01!
# usb 1-1: NCM: unexpected notification 0x01!
usb 1-1: NCM: unexpected notification 0x03!
usb 1-1: NCM: unexpected notification 0x01!
usb 1-1: NCM: unexpected notification 0x01!
usb 1-1: NCM: unexpected notification 0x01!
cdc_ncm: usb0: 43 mbit/s downlink 43 mbit/s uplink
cdc_ncm: usb0: network connection: connected
usb 1-1: NCM: unexpected notification 0x01!

# 
# dhcpc.sh usb0 wait&
# Killed
udhcp client (v0.9.9-pre) started
into usb0.deconfig
Sending select for 42.72.195.115...
Lease of 42.72.195.115 obtained, lease time 518400
adding dns 168.95.1.1
adding dns 168.95.192.1

# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr 0C:5B:8F:27:9A:64  
          inet addr:42.72.195.115  Bcast:42.72.195.119  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# ping -c 4 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=49 time=350.000 ms
64 bytes from 8.8.8.8: seq=1 ttl=49 time=290.000 ms
64 bytes from 8.8.8.8: seq=2 ttl=49 time=280.000 ms
64 bytes from 8.8.8.8: seq=3 ttl=49 time=300.000 ms

--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 280.000/305.000/350.000 ms




----- Original Message -----
From: Olof Ermis <olof.ermis at gmail.com>
To: Tommy Cheng <tommy7765 at yahoo.com>
Cc: Bjørn Mork <bjorn at mork.no>; "libqmi-devel at lists.freedesktop.org" <libqmi-devel at lists.freedesktop.org>
Sent: Tuesday, November 13, 2012 6:11 PM
Subject: Re: Huawei E3276 problem

So, as posted on the network-manager list, when I removed the
usb_driver_claim_interface call it went through:

Nov 13 10:48:11 oloflinux kernel: [73768.167416] cdc_ncm 2-6:1.1
wwan0: register 'cdc_ncm' at usb-0000:00:1d.7-6, Mobile Broadband
Network Device, 0c:5b:8f:27:9a:64
Nov 13 10:48:11 oloflinux kernel: [73768.167452] usbcore: registered
new interface driver cdc_ncm
Nov 13 10:48:11 oloflinux NetworkManager[924]:    SCPlugin-Ifupdown:
devices added (path:
/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-6/2-6:1.1/net/wwan0,
iface: wwan0)
Nov 13 10:48:11 oloflinux NetworkManager[924]:    SCPlugin-Ifupdown:
device added (path:
/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-6/2-6:1.1/net/wwan0,
iface: wwan0): no ifupdown configuration found.

Still no wwan device available though, so pls give some hints on what
is needed to do now.

Is the usb_driver_claim_interface really needed? Looks slightly
"optional", http://docs.blackfin.uclinux.org/kernel/generated/usb/re75.html.

Cheers
Olof

2012/11/13 Tommy Cheng <tommy7765 at yahoo.com>:
> The debug output is as follows:
>
> # insmod /tmp/cdc_ncm.ko
> cdc_ncm: 14-Mar-2012
> cdc_ncm 1-1:1.1: XX: ctx->control=81eec080, ctx->data=81eec080, ctx->ether_desc=814b67c8, intf=81eec080
> cdc_ncm 1-1:1.1: XX: failed to claim interface: -16
> usb 1-1: bind() failure
> usbcore: registered new interface driver cdc_ncm
>
>
>
>
> ----- Original Message -----
> From: Bjørn Mork <bjorn at mork.no>
> To: Tommy Cheng <tommy7765 at yahoo.com>
> Cc: Olof Ermis <olof.ermis at gmail.com>; libqmi-devel at lists.freedesktop.org
> Sent: Tuesday, November 13, 2012 5:45 PM
> Subject: Re: Huawei E3276 problem
>
> Tommy Cheng <tommy7765 at yahoo.com> writes:
>
>> The initial submitted cdc_ncm driver (2010/12/07 net.git) and
>>
>> the latest submitted cdc_ncm driver(2012/08/04 net.git) are not
>> working.  The driver can't bind to E3276 because of "bind() failure".
>>
>> The driver only works for me is from the below link.  That driver
>> seems to be very similar to the initial subnitted one.  I'm still trying
>> to find out why.
>>
>>
>> http://www.spinics.net/lists/linux-usb/msg32494.html
>
> Right.  That's older than I hoped for.  I think we have better chances
> if you can add some debug printk's in the cdc_ncm_bind function.
> Knowing which error exit it takes, and also the value of the tested
> variables would be useful.
>
> Could you and/or Olof please test the attached patch on top of either
> v3.6.x or current mainline (which are identical wrt to cdc_ncm)?  It
> includes the new device IDs and some additional temporary debug output.
>
> This should help us see where the problem is.  I fear that it may be in
> cdc_ncm_setup(), in which case we need further testing, but at least
> this patch will tell us.
>
>
> Bjørn
>
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libqmi-devel
>



More information about the libqmi-devel mailing list