I'm running SNAPSHOT r6150 on a BT homehub 5a with a Huawei E3372h USB dongle.
I ran into a bug that crashed dwc2_lowlevel_hw_disable when using the dongle in "HiLink router mode" with kmod-usb-net-cdc-ether, so flashed the dongle to "stick mode" and now using kmod-usb-net-huawei-cdc-ncm instead.
The dongle works properly on a PC running Fedora27, though I guess in that case it is using NetworkManager/ModemManager for the dongle.
Software versions ...
kernel - 4.9.77-1-b3856355ef32057f204aaf8b7ab28ff3
comgt-ncm - 0.32-30
kmod-usb-net-cdc-ncm - 4.9.77-1
kmod-usb-net-huawei-cdc-ncm - 4.9.77-1
luci-proto-ncm - git-18.047.57952-461df8b-1
When I plug the dongle into the homehub router, I get the following in the kernel log, which seems good to me
[ 508.628244] usb 1-1: new high-speed USB device number 2 using dwc2
[ 509.288672] usb 1-1: USB disconnect, device number 2
[ 510.116203] usb 1-1: new high-speed USB device number 3 using dwc2
[ 510.521635] huawei_cdc_ncm 1-1:1.2: MAC-Address: 00:1e:10:1f:00:00
[ 510.526676] huawei_cdc_ncm 1-1:1.2: setting rx_max = 16384
[ 510.544257] huawei_cdc_ncm 1-1:1.2: NDP will be placed at end of frame for this device.
[ 510.551453] huawei_cdc_ncm 1-1:1.2: cdc-wdm0: USB WDM device
[ 510.559159] huawei_cdc_ncm 1-1:1.2 wwan0: register 'huawei_cdc_ncm' at usb-1e101000.ifxhcd-1, Huawei CDC NCM device, 00:1e:10:1f:00:00
and I see the control device "/dev/cdc-wdm0" has been created, along with the network device "wwan0"
I have added a section to my /etc/config/network as follows
config interface 'LTE'
option proto 'ncm'
option device '/dev/cdc-wdm0'
option mode 'auto'
option apn '3internet'
option ipv6 'auto'
option metric '100'
But when I try to start the interface, all I see from logread is the following over and over
Sat Feb 17 10:00:58 2018 daemon.notice netifd: Interface 'LTE' is setting up now
Sat Feb 17 10:01:00 2018 daemon.notice netifd: LTE (15994): Configuring modem
Sat Feb 17 10:01:00 2018 daemon.notice netifd: LTE (15994): WARNING: Variable 'modes' does not exist or is not an array/object
Sat Feb 17 10:01:00 2018 daemon.notice netifd: LTE (15994): Setting mode
Sat Feb 17 10:01:00 2018 daemon.notice netifd: LTE (15994): sending ->
Sat Feb 17 10:01:15 2018 daemon.notice netifd: LTE (15994): Timeout running AT-command
Sat Feb 17 10:01:15 2018 daemon.notice netifd: LTE (15994): Failed to set operating mode
Sat Feb 17 10:01:16 2018 daemon.notice netifd: LTE (16026): Stopping network LTE
Sat Feb 17 10:01:16 2018 daemon.notice netifd: LTE (16026): sending ->
Sat Feb 17 10:01:20 2018 daemon.notice netifd: Interface 'LTE' is now down
it looks like some part of netifd may be confused whether the "option mode" clause should really be "option modes", when I added both options it silenced the error but didn't help the interface to start.
I get no output from usbmode -s
or usbmode -l
I can see the following running while the interface is trying to start
gcom -d /dev/cdc-wdm0 -s /etc/gcom/runcommand.gcom
{ncm.sh} /bin/sh ./ncm.sh ncm setup LTE {"proto":"ncm","metric":100,"device":"/dev/cdc-wdm0","mode":"auto","apn":"3internet","me /// truncated
If I use minicom -D /dev/cdc-wdm0
I don't get any response to AT commands, but then if I try the same when the stick is plugged into the Fedora PC, I get no responses either, so that may not be significant
Anyone got any suggestions to get the dongle running with NCM?
Thanks ...