Huawei Cellular Dongle on Jetson TX2


#1

Hello everyone,

I started testing out nvidia Jetson TX2 and found out that usb_modeswitch doesn’t seem to work the same way as it does in other Resin support hardware boards:

When plugging in the a Huawei modem or when booting with modem plugged in, it stays in default modem and doesn’t not appear in modem manager list:

Feb 15 21:14:20 94beb9f kernel: usb 1-2: New USB device found, idVendor=12d1, idProduct=14fe
Feb 15 21:14:20 94beb9f kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 15 21:14:20 94beb9f kernel: usb 1-2: Product: HUAWEI Mobile
Feb 15 21:14:20 94beb9f kernel[843]: [  955.261692] usb 1-2: New USB device found, idVendor=12d1, idProduct=14fe
Feb 15 21:14:20 94beb9f kernel[843]: [  955.268477] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 15 21:14:20 94beb9f kernel[843]: [  955.275702] usb 1-2: Product: HUAWEI Mobile
Feb 15 21:14:20 94beb9f kernel: usb 1-2: Manufacturer: HUAWEI
Feb 15 21:14:20 94beb9f kernel: usb 1-2: SerialNumber: FFFFFFFFFFFFFFFF
Feb 15 21:14:20 94beb9f kernel[843]: [  955.279966] usb 1-2: Manufacturer: HUAWEI
Feb 15 21:14:20 94beb9f kernel[843]: [  955.284045] usb 1-2: SerialNumber: FFFFFFFFFFFFFFFF
Feb 15 21:14:20 94beb9f kernel: xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
Feb 15 21:14:20 94beb9f kernel[843]: [  955.290247] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
Feb 15 21:14:20 94beb9f kernel: usb-storage 1-2:1.0: USB Mass Storage device detected
Feb 15 21:14:20 94beb9f kernel: scsi host3: usb-storage 1-2:1.0
Feb 15 21:14:20 94beb9f kernel[843]: [  955.312051] usb-storage 1-2:1.0: USB Mass Storage device detected
Feb 15 21:14:20 94beb9f kernel[843]: [  955.318918] scsi host3: usb-storage 1-2:1.0
Feb 15 21:14:21 94beb9f kernel: scsi 3:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Feb 15 21:14:21 94beb9f kernel[843]: [  956.321577] scsi 3:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Feb 15 21:14:21 94beb9f usb_modeswitch[3055]: switch device 12d1:14fe on 001/003
Feb 15 21:14:21 94beb9f kernel: xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 5
Feb 15 21:14:21 94beb9f kernel: xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_DEC_SSPI_CLOCK request
Feb 15 21:14:21 94beb9f kernel[843]: [  956.555529] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 5
Feb 15 21:14:21 94beb9f kernel[843]: [  956.562869] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_DEC_SSPI_CLOCK request
Feb 15 21:14:22 94beb9f usb_modeswitch[3052]: usb_modeswitch: switched to 12d1:14fe on 1/3
Feb 15 21:14:23 94beb9f usb_modeswitch[3052]: usb_modeswitch: add device ID 12d1:14fe to driver option
Feb 15 21:14:23 94beb9f usb_modeswitch[3052]: usb_modeswitch: please report the device ID to the Linux USB developers!

I can find the 12d1:14fe ID in /usr/share/usb_modeswitch but it looks like these rules aren’t taken into consideration


#4

Hello @eblex,

Have you tested your configuration with our cellular test project? It’s available at: https://github.com/resin-io-projects/cellular-test

Could you try running it and report back what happens?


#5

Hi @abrodersen

Same thing with this project, the modem doesn’t switch.

It seems to be OS level related rather than something we can do in the container


#6

Hi,
This modem has a bit of an issue with the udev rules. I managed to make it work by manually running usb_modeswithc -v 12d1 -p 14ef -J after this the modem worked just fine. I will push a fix in the new release of the TX2 which will be out later today.
Kind regards,
Theodor


#7

I was unable to find a proper fix and due to the fact that the issue is also present on the Ubuntu distribution that Nvidia provides we will delay this bugfix for a further release.
We apologize for any inconvenience.
Kind regards,
Theodor