Novatel GPS USB Driver on PX2

Hi,

We try to use Novatel GPS USB to set config and get more data on Drive PX2 (5050b), but we can not get any device from /dev after we insert Novatel GPS USB port, so we try to setup Novatel GPS USB Linux deiver from this link:
https://www.novatel.com/support/info/documents/809

We try sudo ./ngpsusb-install first, but we got following message:

Creating symlink /var/lib/dkms/ngpsusb/1.1.0/source ->
/usr/src/ngpsusb-1.1.0

DKMS: add completed.
Error! Your kernel headers for kernel 4.9.38-rt25-tegra cannot be found.
Please install the linux-headers-4.9.38-rt25-tegra package,
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 4.9.38-rt25-tegra cannot be found.
Please install the linux-headers-4.9.38-rt25-tegra package,
or use the --kernelsourcedir option to tell DKMS where it's located
dpkg: error processing package ngpsusbpackage (--install):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
ngpsusbpackage

So we try another way like TX1’s method on PX2 by https://devtalk.nvidia.com/default/topic/997737/using-novatel-gps-usb-driver-on-jetson-tx1-developer-kit/

1) extract file ngpsusb.deb/data.tar.gz
2) tar -xvzf data.tar.gz
3) cd /usr/share/ngpsusb-1.0.0
4) sudo make

After sudo make, we got following message.

nvidia@nvidia:~/Downloads/ngpsusbpackage/usr/share/ngpsusb-1.1.0$ sudo make
make -C /lib/modules/4.9.38-rt25-tegra/build M= modules
make[1]: *** /lib/modules/4.9.38-rt25-tegra/build: No such file or directory.  Stop.
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 2

we open the Makefile, it need make -C /lib/modules/$(KVERSION)/build,
we can replace $(KVERSION) to 4.9.38-rt25-tegra

obj-m = ngpsusb.o
KVERSION = $(shell uname -r)
all:
        make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules


clean:
        make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean

We go to /lib/modules/4.9.38-rt25-tegra and found build is a empty symbolic link…

<b>build -> /dvs/git/dirty/git-master_modular/out/embedded_aarch64-arm64-tegra_t186ref_gnu_linux_defconfig-4.9-rt_patches/kernel</b>

Nothing in there…

We also check host PC with Drive Px2 5050b environment, same empty symbolic link…

So… we have no idea how to setup Novatel GPS Linux USB Driver.

Could anyone please provide any suggestion?

[url]Autonomous Vehicle Development Platforms | NVIDIA Docs

Dear Arlen0615,

Regarding “We try to use Novatel GPS USB to set config and get more data on Drive PX2 (5050b)”, Can I know which data you need more? Thanks.