Modify

Opened 3 years ago

Last modified 2 years ago

#20110 new defect

wwan for ncm not working

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

E3272,

# cat /lib/network/wwan/12d1\:1506 
{
        "desc": "Huawei E367/E398",
        "type": "ncm"
}
Sat Jul 18 09:49:23 2015 user.emerg syslog: setting up led WLAN
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): BusyBox v1.23.2 (2015-06-15 21:29:03 CEST) multi-call binary.
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): 
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): Usage: basename FILE [SUFFIX]
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): 
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): Strip directory path and .SUFFIX from FILE
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): 
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): 
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): wwan[1663] Using proto:wwan device:/dev/ iface:wwan0 desc:Huawei E367/E398
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): ls: /net: No such file or directory
Sat Jul 18 09:49:24 2015 daemon.notice netifd: wan (1663): The interface could not be found.

# cat /sys/class/net/wwan0/device/uevent
DEVTYPE=usb_interface
DRIVER=huawei_cdc_ncm
PRODUCT=12d1/1506/102
TYPE=0/0/0
INTERFACE=255/2/22
MODALIAS=usb:v12D1p1506d0102dc00dsc00dp00icFFisc02ip16in02
root@OpenWrt:/sys/devices/platform/ehci-platform/usb1/1-1/1-1:1.2/net/wwan0# cd /sys/class/net/wwan0/; find ../../../ -name ttyUSB* 
../../../1-1:1.0/ttyUSB0
../../../1-1:1.0/ttyUSB0/tty/ttyUSB0
../../../1-1:1.1/ttyUSB1
../../../1-1:1.1/ttyUSB1/tty/ttyUSB1
root@OpenWrt:/sys/devices/platform/ehci-platform/usb1/1-1/1-1:1.2/net/wwan0# cd /sys/class/net/wwan0/; find ../../../ -name ttyUSB*  | xargs basename
BusyBox v1.23.2 (2015-06-15 21:29:03 CEST) multi-call binary.

Usage: basename FILE [SUFFIX]

Strip directory path and .SUFFIX from FILE

Proposal solution:

 ctl_device=/dev/$(cd /sys/class/net/$net/; find ../../../ -name ttyUSB* |head -n1 | xargs basename )

in /lib/netifd/proto/wwan.sh

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by anonymous

Working can use this metod /ticket/20103.html (new kernel 4.1.2 its the same - Copy ultimately created a patch to target/linux/generic/patches-4.1 - enters the purely and working fain its the this line modems).

comment:2 Changed 3 years ago by anonymous

Working can use this metod /ticket/20103.html (new kernel 4.1.2 its the same - Copy ultimately created a patch to target/linux/generic/patches-4.1 - enters the purely and working fain its the this line modems).

comment:3 Changed 2 years ago by anonymous

Shouldn't it be /dev/cdc-wdm* instead of /dev/ttyUSB* for NCM? I have not installed kmod-usb-serial and changed /lib/netifd/proto/wwan.sh to use /dev/cdc-wdm* instead with Huawei E3276 stick (12d1:1506).

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.