How to connect LTE module to Xavier

Hi,

I’m trying to connect LTE module (Telit LN940A9) to Xavier using USB. I received the customized kernel patch (qmi_wwan.c, option.c) and a rule file. try to build the kernel following this step (https://developer.ridgerun.com/wiki/index.php?title=Xavier/JetPack_4.1/Compiling_Code/Kernel) and add the rule file to /etc/udev/rules.d.
After this procedure, qmi_wwan port and sirial port should be recognized but I cannot confirm them.
These ports are shown when I tried to connect this module to Linux PC (ubuntu generic).

What kind of things do you think could be the cause?

TM,

Did you verify that the kernel you built is the one that is running? An easy way to check that is to run uname -a. Normally the build date is enough to know if it’s the kernel you expect. If you need more confirmation running dmesg | less will provide details about the build time and build machine.

Regards,
Greg

Dear Greg,

Thank you for your reply.

Before checking what you said, I retried to build the kernel some times under same condition. Then I can confirm serial port (ttyUSB0~3) on Xavier. But this result is sometimes changed, for example, Xavier does not boot or there is no serial port. I do not know what causes this though these serial port appear.

BTW, I cannot use qmi_wwan port yet. I think kernel configuration should be modified. If you know about that, please let me know.

Best Regards,
TM

TM,

Here’s what I learned while playing with a Telit LM960. I believe that the way you interact with LN940 from Linux is almost identical.

The LN940 Linux Software User’s Guide mentions some patches to the kernel. I found that all those patches are in the 4.9 kernel already.

Add the following modules to your kernel (I built them as modules, adding them to the kernel should work as well):

  • cdc_wdm
  • qmi_wwan
  • option
  • usb_wwan
  • cdc_acm
  • cdc_ether
  • cdc_mbim
  • usbnet
  • cdc-ncm
    You may not need all of them, but build them all for now (you can clean up once you have the modem working).

Start with the default kernel configuration (tegra_defconfig), then added the following:

USB_XHCI_HCD=y
USB_XHCI_PLATFORM=y
USB_XHCI_TEGRA=y
USB_ACM=m
USB_WDM=m
USB_USBNET=y
USB_NET_QMI_WWAN=m
WLAN=y

Install limqmi packages and modem manager:

sudo apt install libqmi-glib5 libqmi-proxy libqmi-utils modemmanager

Create a broadband interface. Here’s how I created one using the GUI:

Hopefully, at this point you have the wwan network interface up. Check it with ifconfig or ip.

I hope this helps.

@D3_cpetrescu
Have you managed to run Telit LM960 at Xavier?
Could you extend steps for building the ilst of modules, please?
and how do you add custom values to default kernel configuration? What are the exact steps?
Thanks