intrepidcs / intrepid-socketcan-kernel-module

Kernel-mode SocketCAN module for Intrepid devices
17 stars 6 forks source link

Build Fails on Jetson Tx2 #3

Closed rukie closed 4 years ago

rukie commented 5 years ago

The system I'm running: Linux tegra-ubuntu 4.4.38-tegra #1 SMP PREEMPT Thu Mar 1 20:49:20 PST 2018 aarch64 aarch64 aarch64 GNU/Linux

nvidia@tegra-ubuntu:~/intrepid-socketcan-kernel-module$ make

make -C /lib/modules/4.4.38-tegra/build M=/home/nvidia/intrepid-socketcan-kernel-module modules make[1]: Entering directory '/usr/src/linux-headers-4.4.38-tegra' CC [M] /home/nvidia/intrepid-socketcan-kernel-module/intrepid.o scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: "(" unexpected scripts/Makefile.build:267: recipe for target '/home/nvidia/intrepid-socketcan-kernel-module/intrepid.o' failed make[2]: [/home/nvidia/intrepid-socketcan-kernel-module/intrepid.o] Error 2 Makefile:1414: recipe for target 'module/home/nvidia/intrepid-socketcan-kernel-module' failed make[1]: [module/home/nvidia/intrepid-socketcan-kernel-module] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.4.38-tegra' Makefile:4: recipe for target 'all' failed make: *** [all] Error 2

hollinsky-intrepid commented 4 years ago

As of v2.0.2 we now support older kernels, including the one running on the Jetson TX2. I happened to also have a TX2 so I was able to confirm the new release works correctly on it now.

Specific to the TX2, I needed to switch to the headers directory (/usr/src/linux-headers-4.4.38-tegra) and run sudo make modules_prepare. This fixed the scripts/basic/fixdep: Syntax error: "(" unexpected error as seen in https://github.com/thoughtpolice/enable_arm_pmu/issues/4.