datlife / jetson-car

Autonomous Racing Car using NVIDIA Jetson TX2 using end-to-end driving approach. Paper: https://arxiv.org/abs/1604.07316
180 stars 51 forks source link

Cannot Detect Teensy on Ubuntu 16.01 #7

Closed datlife closed 7 years ago

datlife commented 7 years ago

For some reasons, the original package from apt-get install arduino does not help to detect Teensy 3.2.

Trying to compile latest Arduino IDE if it could help.

Download Arduino for ARM: https://www.arduino.cc/en/Main/Software

datlife commented 7 years ago

Need to build FTDI Module

Update: NO, you don't need to. NVIDIA Jetson TX2's kernel already enabled FTDI

datlife commented 7 years ago

Finally, it worked!

The issue is because someone disabled CONFIG_USB_ACM kernel module on the NVIDIA Jetson( I actually used NVIDA Jetson TX2, Ubuntu 16.04, kernel-4-4.15)

Steps to resolve the issue:

  1. Follow this tutorial: http://www.jetsonhacks.com/2017/03/25/build-kernel-and-modules-nvidia-jetson-tx2/

  2. Before install kernel. Run this command

    sudo sed -i 's/.*CONFIG_USB_ACM.*/CONFIG_USB_ACM=y/' /usr/src/kernel/kernel-4.4/.config
  3. Follow the rest of the tutorial

  4. Install Arduino:

    sudo apt-get install arduino arduino-core
  5. Open Arduino and select correct port.

At the end dmesg should show this when plugging in the Teensy

[  125.602321] usb 1-2.4: USB disconnect, device number 5
[  166.518422] usb 1-2.2: new full-speed USB device number 6 using xhci-tegra
[  166.627754] usb 1-2.2: New USB device found, idVendor=16c0, idProduct=0483
[  166.634715] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  166.642213] usb 1-2.2: Product: USB Serial
[  166.646492] usb 1-2.2: Manufacturer: Teensyduino
[  166.651192] usb 1-2.2: SerialNumber: 2481500
[  166.657388] cdc_acm 1-2.2:1.0: ttyACM0: USB ACM device