I am trying to build a Rasbperry Pi-based LTE router using an EM7565 on a Waveshare dual-Ethernet 4G/5G Base board, using OpenWRT.
I have tried building OpenWRT with kmod-usb-net-sierrawireless, kmod-usb-serial-option, usb-modeswitch, kmod-usb-wdm, kmod-usb-net-qmi-wwan, uqmi, luci-proto-qmi, kmod-usb-serial-option, kmod-usb-serial-qualcomm, and kmod-usb-serial-sierrawireless
When I boot the device, the USB modem is identified:
root@OpenWrt:~# dmesg | grep usb
[ 0.086024] usbcore: registered new interface driver usbfs
[ 0.086070] usbcore: registered new interface driver hub
[ 0.086110] usbcore: registered new device driver usb
[ 0.086233] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 0.086344] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[ 0.359673] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 0.359698] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.359716] usb usb1: Product: xHCI Host Controller
[ 0.359730] usb usb1: Manufacturer: Linux 5.15.60 xhci-hcd
[ 0.359744] usb usb1: SerialNumber: 0000:01:00.0
[ 0.360504] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[ 0.360530] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.360548] usb usb2: Product: xHCI Host Controller
[ 0.360561] usb usb2: Manufacturer: Linux 5.15.60 xhci-hcd
[ 0.360575] usb usb2: SerialNumber: 0000:01:00.0
[ 0.361978] usbcore: registered new interface driver uas
[ 0.362053] usbcore: registered new interface driver usb-storage
[ 0.667391] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 0.923624] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.20
[ 0.939086] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 0.952639] usb 1-1: Product: USB2.0 Hub
[ 1.502342] usb 2-4: new SuperSpeed USB device number 2 using xhci_hcd
[ 1.538359] usb 2-4: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=31.00
[ 1.546546] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 1.553691] usb 2-4: Product: USB 10/100/1000 LAN
[ 1.558398] usb 2-4: Manufacturer: Realtek
[ 1.562490] usb 2-4: SerialNumber: 001000001
[ 1.827403] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd
[ 1.962738] usb 1-1.3: New USB device found, idVendor=1199, idProduct=90c2, bcdDevice= 0.00
[ 1.971119] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1.978447] usb 1-1.3: Product: QUSB_Fast_Enum.
[ 1.982980] usb 1-1.3: Manufacturer: Sierra Wireless, Incorporated
[ 1.989168] usb 1-1.3: SerialNumber: XK73468776020606
[ 2.241111] usb 1-1.3: USB disconnect, device number 3
[ 7.474072] usbcore: registered new interface driver cdc_wdm
[ 7.495790] usbcore: registered new interface driver lan78xx
[ 7.505008] usbcore: registered new interface driver r8152
[ 7.512122] usbcore: registered new interface driver usbhid
[ 7.517724] usbhid: USB HID core driver
[ 7.523626] usbcore: registered new interface driver usbserial_generic
[ 7.530252] usbserial: USB Serial support registered for generic
[ 7.536785] usbcore: registered new interface driver cdc_ether
[ 7.543539] usbcore: registered new interface driver cdc_ncm
[ 7.589020] usbcore: registered new interface driver qmi_wwan
[ 7.595384] usbcore: registered new interface driver sierra
[ 7.601056] usbserial: USB Serial support registered for Sierra USB modem
[ 7.608623] usbcore: registered new interface driver sierra_net
[ 7.624049] usbcore: registered new interface driver brcmfmac
[ 7.631876] usbcore: registered new interface driver option
[ 7.637525] usbserial: USB Serial support registered for GSM modem (1-port)
[ 7.646110] usbcore: registered new interface driver qcserial
[ 7.651975] usbserial: USB Serial support registered for Qualcomm USB modem
[ 7.687900] usb 2-4: reset SuperSpeed USB device number 2 using xhci_hcd
[ 14.087426] usb 1-1.3: new high-speed USB device number 4 using xhci_hcd
[ 14.218631] usb 1-1.3: New USB device found, idVendor=1199, idProduct=90c3, bcdDevice= 0.06
[ 14.227000] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 14.234339] usb 1-1.3: Product: Sierra Wireless EM7565 with Qualcomm Snapdragon X16 LTE
[ 14.242365] usb 1-1.3: Manufacturer: Sierra Wireless, Incorporated
[ 14.248560] usb 1-1.3: SerialNumber: [redacted]
But it seems that the driver is not loaded:
root@OpenWrt:~# cat /sys/kernel/debug/usb/devices
...
T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=01 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1199 ProdID=90c3 Rev= 0.06
S: Manufacturer=Sierra Wireless, Incorporated
S: Product=Sierra Wireless EM7565 with Qualcomm Snapdragon X16 LTE
S: SerialNumber=2af40a0a
C:* #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=82(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=84(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
And further, I see no USB TTY device, nor a qmi device to manage:
root@OpenWrt:~# ls /dev/cdc-*
ls: /dev/cdc-*: No such file or directory
root@OpenWrt:~# ls /dev/ttyUSB*
ls: /dev/ttyUSB*: No such file or directory
Is there something I may be missing in trying to get this modem working on OpenWRT?