Unable to compile peak-linux-driver on NVIDIA JTX2(64-bit ke

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
mkuttig
Posts: 2
Joined: Tue 17. Oct 2017, 11:53

Unable to compile peak-linux-driver on NVIDIA JTX2(64-bit ke

Post by mkuttig » Tue 17. Oct 2017, 13:21

Hello @all,

I would like to use a PCAN-USB device to communicate with my motor control. Actually I use a NVIDIA Jetson TX2 with Ubuntu 16.04.

After the download, I tried to compile the driver:

Code: Select all

$ sudo apt-get install --reinstall linux-headers-`uname -r`
$ sudo apt-get install build-essential checkinstall
$ sudo apt-get install module-assistant
$ make -C driver
The compilation process ends as follows:

Code: Select all

make: Entering directory '/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver'
***
*** Host machine kernel version=4.4.38-tegra
*** Driver kernel version=4.4.38-tegra (4.4.38)
*** Path to kernel sources=/usr/src/linux-headers-4.4.38-tegra
*** use KBUILD=yes
*** cc version=5.4.0
***
make -C /usr/src/linux-headers-4.4.38-tegra  SUBDIRS=/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver        EXTRA_CFLAGS="-I/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver        -DNO_DEBUG -DMODVERSIONS -DPARPORT_SUBSYSTEM -DUSB_SUPPORT -DPCI_SUPPORT -DPCIEC_SUPPORT -DISA_SUPPORT -DDONGLE_SUPPORT -DPCCARD_SUPPORT -DNO_NETDEV_SUPPORT	 -DNO_RT  -Wno-date-time" V=0 modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.38-tegra'
  CC [M]  /home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver/src/pcan_main.o
scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: "(" unexpected
scripts/Makefile.build:261: recipe for target '/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver/src/pcan_main.o' failed
make[2]: *** [/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver/src/pcan_main.o] Error 2
Makefile:1414: recipe for target '_module_/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver' failed
make[1]: *** [_module_/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.38-tegra'
Makefile:418: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver'
I have unfortunately no idea what it can be and hope for your help.

Best regards
Mathias

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: Unable to compile peak-linux-driver on NVIDIA JTX2(64-bi

Post by S.Grosjean » Tue 17. Oct 2017, 14:44

Hi,

The error is produced by the fixdep script of your Kernel header package. It is not an error of our pcan driver. It looks like NVIDIA is used to this...

Try this, please:

Code: Select all

$ cd /usr/src/linux-headers-`uname -r`
$ sudo make modules_prepare
Then retry to build the pcan driver.

Regards,

Stéphane
— Stéphane

mkuttig
Posts: 2
Joined: Tue 17. Oct 2017, 11:53

Re: Unable to compile peak-linux-driver on NVIDIA JTX2(64-bi

Post by mkuttig » Thu 19. Oct 2017, 22:45

Hi,
thanks a lot and it works now!

Post Reply