I am trying to install Huawei USB dongle on my Jetson TX2 module.
I have succesfully switch the USB dongle from mass storage to Modem/network card.
Here, the result from lsusb
Bus 001 Device 006: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
However, I cannot make a broadband connection.
It seems that the network manager still does not detect the modem.
Then, I tried to inspect my system and I found that the modemmanager is not working properly in my Jetson TX2.
I run : sudo systemctl status ModemManager.service and the result is
But, do you have any clue why the modem manager service does not run on TX2 by default?
The modem manager service should be part of network manager.
Since the network manager works properly,
I do not have any clue why the modem manager is inactive and it cannot be activated.
You might also show the verbose lsusb of the modem. Perhaps it simply lacks the driver (USB can be more than one device on a single cable…the presence of a bulk storage device does not mean there is just that device).
If you run “lsusb” you will see an ID. An example might be something like “0955:7c18” (not really your case, but just for illustration). To get a verbose listing:
sudo lsusb -d 0955:7c18 -vvv
The most interesting part from this will be any “class” entry. If anything is “miscellaneous” (or perhaps “isochronous” in some locations), then you need a custom driver for that part of the hardware.
FYI, this is a “vendor specific class”, and so it must have a driver specific to the device…no generic driver will work. You will need to have that installed…and basically knowing which driver will be the hard part.
…the above does not necessarily show it needs additional firmware, but I suspect this is the case.
The driver runs in the kernel, the firmware is uploaded into the device. The two in combination will probably be required. Have you researched to see what driver is needed, and if firmware is available?
Sometimes firmware and drivers are available directly from the Ubuntu package system, sometimes part or all of the software is needed from the vendor.
At first, I also suspected the problem was with the driver or firmware.
But, since the device works well on Ubuntu 16.04 x86_64 without installing new driver or firmware, I think that the driver should be included in Ubuntu package system.
However, in my Jetson TX2 I cannot make it work.
I have also build new kernel to include related driver from Huawei which is available from the source, but it still does not work.
After further investigation I found that modem manager did not run on my Jetson TX2, thus I think that this was the root of the problem as I described in the beginning of my post.
Although, fixing the modem manager may not solve the problem if it is the driver problem.
But, if the modem manager does not work, I cannot confirm whether the problem is with the driver or not.
If you know what driver it is, then you can confirm by examining “/proc/config.gz”. Also, firmware is usually a separate install, and embedded systems do not install all of the drivers a PC will install. So for example, do you want to install all of the AMD PCIe graphics card drivers? All of the 10 gigabit NIC drivers? The Ubuntu install on the Jetson is minimal in comparison to what gets loaded onto a PC.
By running dmesg command, after changing the device from USB masss storage to modem, I found the following log:
huawei_cdc_ncm 1-2.3:1.2: MAC-Address: 0c:5b:8f:27:9a:64
[ 93.524195] huawei_cdc_ncm 1-2.3:1.2: setting rx_max = 16384
[ 93.530417] huawei_cdc_ncm 1-2.3:1.2: setting tx_max = 16384
[ 93.536274] huawei_cdc_ncm 1-2.3:1.2: NDP will be placed at end of frame for this device.
[ 93.544764] huawei_cdc_ncm 1-2.3:1.2: cdc-wdm0: USB WDM device
[ 93.550991] huawei_cdc_ncm 1-2.3:1.2 wwan0: register ‘huawei_cdc_ncm’ at usb-3530000.xhci-2.3, Huawei CDC NCM device, 0c:5b:8f:27:9
I can also bring the device up by executing the command sudo ifconfig wwan0 up.
wwan0 Link encap:Ethernet HWaddr 0c:5b:8f:27:9a:64
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
So it implies that the device uses huawei_cdc_ncm driver which is already available on the system.
Thus, I suspected the problem is not with the driver.
I think the ModemManager may not work because of the kernel.
I have not tested the ModemManager right after flashing the module with Jetpack.
But, according to your previous reply, the ModemManager works well on your system.
I cannot understand why the modem manager just dead on my system.
As I know the source code of the kernel which I installed is downloaded from official nvidia site.
Nov 19 10:01:58 tegra-ubuntu systemd[1]: Starting Modem Manager...
Nov 19 10:01:58 tegra-ubuntu ModemManager[28510]: <info> ModemManager (version 1.4.12) starting in system bus...
Nov 19 10:01:58 tegra-ubuntu systemd[1]: Started Modem Manager.
How about kernel log? Is there any error log after systemctl command?
Maybe driver triggers some error.