I’m using a Jetson TX2 in my laboratory with a ConnectTech Orbitty career board. I flashed it with ConnectTech’s BSP L4T 28.2 kernel version 4.4.38-tegra and then installed the necessary packages with Jetpack 3.2.1.
I am trying to interface this to an Arduino based board: TREX controller. Here is the description of my problems and the steps I have taken:
- When uploading a sketch from arduino IDE (on TX2), upload fails with following error:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
Also arduino board and the TREX board are recognized as ttyS0, instead of ttyACM or ttyUSB.
- To solve this, I tried to install the CP2102N USB drivers from https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers.
When I run the make command in the folder of the driver, I get this error:
make -C /lib/modules/`uname -r`/build M=/home/nvidia/Downloads/Linux_3.x.x_4.x.x_VCP_Driver_Source modules
make: Entering directory '/usr/src/linux-headers-4.4.38-tegra'
CC [M] /home/nvidia/Downloads/Linux_3.x.x_4.x.x_VCP_Driver_Source/cp210x.o
<b>scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: "(" unexpected</b>
scripts/Makefile.build:267: recipe for target '/home/nvidia/Downloads/Linux_3.x.x_4.x.x_VCP_Driver_Source/cp210x.o' failed
make: *** [/home/nvidia/Downloads/Linux_3.x.x_4.x.x_VCP_Driver_Source/cp210x.o] Error 2
Makefile:1414: recipe for target '_module_/home/nvidia/Downloads/Linux_3.x.x_4.x.x_VCP_Driver_Source' failed
make: *** [_module_/home/nvidia/Downloads/Linux_3.x.x_4.x.x_VCP_Driver_Source] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.38-tegra'
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 2
Although this looks like a syntax error, the following sources say that its due to some errors in kernel headers.
- According to their suggestion, I tried the following command:
sudo make modules_prepare
which fails with the error:
grep: scripts/../arch/x86/entry/syscalls/syscall_32.tbl: No such file or directory
- When I searched about that error, I found from NVIDIA forums that it occurs only if I try to cross compile from an x86 system. But I’m doing all this on the TX2 board itself.
I have another TX2 in the lab which is fitted with a larger (different) development board. I have no problem communicating with arduino from that.
Therefore, all I want is to communicate with my arduino. I have spent about 10 days trying to figure this out. Kernel modification is beyond my linux experience, but I now believe this is a problem due to the customized kernel released by ConnectTech for their Orbitty career board.
I would appreciate any kind help regarding any step of this problem. Thanks