Posted: Tue Jul 11, 2017 23:50 Post subject: Sierra Wireless module Help
I've messed around with a couple of the latest BS builds on my WRT1900AC v2 (from what I've read 31899 is fairly stable), but would like to get usb tethering up and running.
but it looks like the sierra wireless driver isn't working for me for either r31899 or r32597.
After inserting usbnet/cdc_ether/sierra_net, dmesg shows:
[ 149.601287] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 149.773341] usb 1-1: config 1 has an invalid interface number: 9 but max is 0
[ 149.780518] usb 1-1: config 1 has no interface number 0
[ 168.258395] usbcore: registered new interface driver cdc_ether
[ 179.996731] usb 1-1: USB disconnect, device number 2
[ 182.191284] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 182.363770] usb 1-1: config 1 has an invalid interface number: 9 but max is 0
[ 182.370953] usb 1-1: config 1 has no interface number 0
[ 190.032326] usbcore: registered new interface driver sierra_net
[ 210.190979] usb 1-1: USB disconnect, device number 3
[ 212.521283] usb 1-1: new high-speed USB device number 4 using xhci-hcd
[ 212.692385] usb 1-1: config 1 has an invalid interface number: 9 but max is 0
[ 212.699556] usb 1-1: config 1 has no interface number 0
This is a Sierra device using a Netgear vendor ID, it is included in dd-wrt for mode switching when you have selected Mobile Broadband as WAN but that is also the only thing dd-wrt currently does with it.
The USB ID 0846:68d3, which is the result after mode switching, is currently not included in the mainline linux qmi_wwan driver and that is the reason for it not being fully supported in dd-wrt.
qmi_wwan is btw the only net type interface in it, there is no sierra_net interface. _________________ Kernel panic: Aiee, killing interrupt handler!
Look for default devices ...
found USB ID 1d6b:0002
found USB ID 1d6b:0002
found USB ID 0846:0fff
vendor ID matched
product ID matched
found USB ID 1d6b:0003
Found devices in default mode (1)
Access device 002 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 9
USB description data (for identification)
-------------------------
Manufacturer: NETGEAR
Product: AirCard 779S
Serial No.: <serial#>
-------------------------
Send Sierra control message
-> Run lsusb to note any changes. Bye!
After I try running usb_modeswitch, the router stops responding...
-> Run lsusb to note any changes. Bye!
That is a normal usb_modeswitch ending after a successful switch, you should have got the linux cmd prompt afterwards.
Remove the verbose switch (-W) and see if that makes any difference. Do also try without your compiled qmi_wwan driver in case it is that one causing problems. _________________ Kernel panic: Aiee, killing interrupt handler!
After I try running usb_modeswitch, the router stops responding...
-> Run lsusb to note any changes. Bye!
That is a normal usb_modeswitch ending after a successful switch, you should have got the linux cmd prompt afterwards.
Remove the verbose switch (-W) and see if that makes any difference. Do also try without your compiled qmi_wwan driver in case it is that one causing problems.
Original qmi_wwan:
[ 34.161008] usb 1-1: USB disconnect, device number 2
[ 34.701285] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 34.872288] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[ 34.879469] usb 1-1: config 1 has an invalid interface number: 8 but max is 2
[ 34.886650] usb 1-1: config 1 has no interface number 1
[ 34.891903] usb 1-1: config 1 has no interface number 2
[ 41.152096] usbcore: registered new interface driver usbserial
[ 41.157979] usbcore: registered new interface driver usbserial_generic
[ 41.164565] usbserial: USB Serial support registered for generic
root@DD-WRT:~# usb_modeswitch -v 0x0846 -p 0x0fff -S
Look for default devices ...
No devices in default mode found. Nothing to do. Bye!
Mod qmi_wwan:
[ 119.518521] usbcore: deregistering interface driver qmi_wwan
[ 139.049825] usbcore: registered new interface driver qmi_wwan
[ 174.557132] usb 1-1: USB disconnect, device number 3
[ 271.468827] usbcore: deregistering interface driver qmi_wwan
[ 291.349264] usbcore: registered new interface driver qmi_wwan
[ 302.841289] usb 1-1: new high-speed USB device number 4 using xhci-hcd
[ 303.013301] usb 1-1: config 1 has an invalid interface number: 9 but max is 0
[ 303.020472] usb 1-1: config 1 has no interface number 0
So as an update - i didn't have USB Storage support enabled.. Enabled Core USB/Storage/USB Over IP (disable: Printer/Automatic Drive Mount)... updated dmesg:
Original qmi_wwan:
[ 36.256902] usbcore: registered new interface driver cdc_acm
[ 36.262633] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 36.292593] usbcore: registered new interface driver cdc_wdm
[ 36.329360] usbcore: registered new interface driver qmi_wwan
[ 36.348347] usbcore: registered new interface driver usbserial
[ 36.354271] usbcore: registered new interface driver usbserial_generic
[ 36.360876] usbserial: USB Serial support registered for generic
[ 36.388279] usbcore: registered new interface driver sierra
[ 36.393929] usbserial: USB Serial support registered for Sierra USB modem
[ 36.409096] usbcore: registered new interface driver option
[ 36.414757] usbserial: USB Serial support registered for GSM modem (1-port)
[ 36.430479] usbcore: registered new interface driver qcserial
[ 36.436343] usbserial: USB Serial support registered for Qualcomm USB modem
[ 104.561294] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 104.732008] usb 1-1: config 1 has an invalid interface number: 9 but max is 0
[ 104.739191] usb 1-1: config 1 has no interface number 0
[ 104.746954] usb-storage 1-1:1.9: USB Mass Storage device detected
[ 104.753216] scsi host2: usb-storage 1-1:1.9
[ 105.762009] scsi 2:0:0:0: CD-ROM Aircard TRU-Install 2.31 PQ: 0 ANSI: 2
[ 117.428696] usb 1-1: USB disconnect, device number 2
[ 117.971294] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 118.143386] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[ 118.150588] usb 1-1: config 1 has an invalid interface number: 8 but max is 2
[ 118.157773] usb 1-1: config 1 has no interface number 1
[ 118.163027] usb 1-1: config 1 has no interface number 2
[ 172.381481] usbcore: deregistering interface driver qmi_wwan
Just checked and realized that for the 4.9 branch I checked out, it didn't match 32597 - did an update and it looks like it worked now:
[ 38.644093] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 38.671320] usbcore: registered new interface driver cdc_wdm
[ 38.722149] usbcore: registered new interface driver qmi_wwan
[ 38.742064] usbcore: registered new interface driver usbserial
[ 38.747981] usbcore: registered new interface driver usbserial_generic
[ 38.754562] usbserial: USB Serial support registered for generic
[ 38.783523] usbcore: registered new interface driver sierra
[ 38.789178] usbserial: USB Serial support registered for Sierra USB modem
[ 38.805935] usbcore: registered new interface driver option
[ 38.811601] usbserial: USB Serial support registered for GSM modem (1-port)
[ 38.822973] usbcore: registered new interface driver qcserial
[ 38.828814] usbserial: USB Serial support registered for Qualcomm USB modem
[ 89.647404] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 89.819885] usb 1-1: config 1 has an invalid interface number: 9 but max is 0
[ 89.827058] usb 1-1: config 1 has no interface number 0
[ 89.834226] usb-storage 1-1:1.9: USB Mass Storage device detected
[ 89.847670] scsi host2: usb-storage 1-1:1.9
[ 90.888168] scsi 2:0:0:0: CD-ROM Aircard TRU-Install 2.31 PQ: 0 ANSI: 2
[ 103.288028] usb 1-1: USB disconnect, device number 2
[ 103.827405] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 103.999968] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[ 104.007141] usb 1-1: config 1 has an invalid interface number: 8 but max is 2
[ 104.014329] usb 1-1: config 1 has no interface number 1
[ 104.019585] usb 1-1: config 1 has no interface number 2
I searched some of the other threads (admittedly briefly) - with Mobile Broadband as the connection, the Dial string reverts to UMTS/3G/3.5G, even if I have Force LTE/4G selected. Is there other configuration needed? I'll search more tomorrow, but I didn't see any new interfaces in ifconfig, and I couldn't ping anything
if these aren't set to usb0, ifconfig won't bring up wwan0, and the Mobile Broadband setting seems to overwrite them:
nvram set wan_default=usb0
nvram set wan_iface=usb0
nvram set wan_ifname=usb0
nvram set wan_ifnames=usb0
nvram set wan_ifname2=usb0
If i try manually setting an IP it takes, but I can't ping anything. Any ideas?
Did you notice that the user in the usb_modeswitch forum also had to set them manually and that the gateway was his IP address + 1 ? _________________ Kernel panic: Aiee, killing interrupt handler!
If i try manually setting an IP it takes, but I can't ping anything. Any ideas?
Did you notice that the user in the usb_modeswitch forum also had to set them manually and that the gateway was his IP address + 1 ?
I saw that part - but he also used modemmanager to do some other initialization - not sure how much dd-wrt supports going down that path (uhdhcp vs dhclient, etc). I didn't see mmcli or qmicli on the router
Basically the modem would come up by default in raw ip mode, rather than 802.3. With the updated qmi_wwan.c in jffs, and having WAN Connection set to "Automatic (DHCP)", this script works most of the time (saved to /jffs/etc/config/modem.startup). Sometimes, uqmi hangs on connect - I up'd the delay to 5 seconds after usb_modeswitch, just to make sure the modem was ready. There's also commented out lines to reset the modem, but I ended up not using it.
For whatever reason, having WAN set to Mobile Broadband and running a subset of the commands (usbnet/cdc-wdm/qmi_wwan get inserted automatically & usb_modeswitch auto runs) wouldn't work - couldn't ping anything from the router or my pc.
modem.startup:
Code:
#!/bin/sh
killall udhcpc
killall uqmi
#Set nvram variables
nvram set wan_ifname=wwan0
nvram set wan_ifname2=wwan0
nvram set wan_ifnames=wwan0
nvram set wan_default=wwan0
nvram set wan_iface=wwan0
#Load kernel modules
insmod usbnet
insmod cdc-wdm
#Modified qmi_wwan.c with Netgear AC779S device id
insmod /jffs/qmi_wwan_4_9_mod.ko
sleep 2