Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 10 of 10

Thread: Install Teensyduino 1.41 in Nvidia Jetson TX2

  1. #1
    Junior Member
    Join Date
    Feb 2018
    Posts
    2

    Install Teensyduino 1.41 in Nvidia Jetson TX2

    Hello everyone,right now I'm working on a project that uses the Nvidia Jetson TX2 development board.
    We have acquired the Teensy 3.2 with the objective of controlling an ESC for a racecar and we are having some problems when running the Teensyduino installer, we have downloaded the arduino 1.8.5 version and installed the arduino IDE but when we run the Teensyduino 1.41 installer nothing happens.
    We would appreciate a solution since otherwise we will not be able to continue working with the teensy.
    Thank you!!

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,298
    Quote Originally Posted by Alvaro View Post
    but when we run the Teensyduino 1.41 installer nothing happens.
    How are you running it? Clicking an icon in a GUI? Running the command in a terminal? Remember, nobody can see your screen unless you post a screenshot, or know what you're typing or actually doing, unless you show us.

    The installer takes a moment to uncompress its image into memory when you run it. On desktops and most laptops, this is typically under 1 second. On slow embedded processors like Raspberry Pi, patience is required! Likewise when running Arduino, everything tends to run very slowly on embedded processors with SD card storage. Sometimes "nothing happens" is merely the incredible speed difference between these systems and ordinary desktop machines.

    Officially, PJRC tests the Linux ARM on Raspberry Pi and Linux x86 64 bit on Ubuntu. The practical reality of Linux is an incredible number of slightly different distributions. Usually others can be made to work, but only Ubuntu & Raspbian are officially tested & supported. Usually Linux systems are pretty good about giving you info (the "nothing happens" situation is very rare if you run stuff in a terminal where you can see stdout & stderr messages). Often there's good info in a log files, like /var/log/syslog (on Ubuntu & Raspbian).

  3. #3
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    6,087
    As Paul mentioned, probably can not help much without additional information.

    Like are you trying to run the Arduino installer and teensysduino on the NVidia? Or are you trying to run it on a PC/Mac/ Other linux box? If on NVidia what OS? 32/64 bit? ... Did the Arduino IDE actually run on it?

    With ARM linux, as Paul mentioned it is only setup to work for 32 bit setups like RPI. It also worked on Odroids like C1 and XU4 which run with 32 bit Linux. However it did and probably still has issues with the 64 bit setups like the ODroid C2. There were first issues with running the Arduino IDE at all, but was able to resolve by installing certain 32 bit modules. Likewise was able to get Teensyduino to work again finding out which 32 modules that were needed...
    There is a thread up on Odroid forum on this: https://forum.odroid.com/viewtopic.php?f=136&t=21249

    Looks like someone else asked on this forum earlier as well: https://forum.pjrc.com/threads/46884...ghlight=odroid

  4. #4
    Junior Member
    Join Date
    Feb 2018
    Posts
    2
    Thanks for the quick response, we tried to run the Teensyduino installer by clicking on the icon, with a GUI and executing the command through the terminal, in the case of the terminal it remains frozen for 2s and we do not get any response.
    The objective is to get the Arduino IDE and the Teensyduino installer to work on the Nvidia board but we wonder if the problems we are experiencing are due to the system architecture of ARM linux (neither the Arduino IDE nor the Teensyduino installer can run on Nvidia and we have downloaded the versions that can be executed in a 64-bit architecture).
    Here is the architecture of our system:
    > uname -a
    > Linux tegra-ubuntu 4.4.38-JetsonV2 # 4 SMP PREEMPT Fri Feb 16 12:23:28 CET 2018 aarch64 aarch64 aarch64 GNU / Linux
    We will try to find the 32-bit modules that we need to get the installer running,
    thanks again

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,298
    Teensyduino only supports the Arduino IDE files published by Arduino.cc. Copies modified & packaged by distros are *not* supported. If you have a copy of Arduino that can from Ubuntu (which is likely an ancient version, not to mention Ubuntu's changes), the installer will not recognize it. Only the copies published by Arduino.cc work.

    Currently Arduino.cc publishes 3 versions for Linux, 32 bit X64, 64 bit X86 and 32 bit ARM. They don't publish a 64 bit ARM version. If they ever do, I will publish a 64 bit ARM version of Teensyduino to support it. But until that day, there simply isn't any support for 64 bit ARM.

    If you *really* want to try to create one, it may be possible. But if you can't get 32 bit libs installed on your machine, it's probably not worthwhile to try. If you can run native 32 bit programs, you might be able to cobble together a working Arduino 1.8.5 IDE by just replacing its JRE with a 64 bit version. Or maybe you can delete its JDE and using classpath or editing the arduino start script coax it to use your system's JRE. But beware, things are almost certain to not work if you have a non-Oracle JRE, or a version that's too old. Arduino 1.8.5 uses Java version 8u144, so make sure you get that version if you use Oracle's website.

    Once you get a working Arduino IDE, then you'll need to do all the stuff the installer does. The hard part is pde.jar and arduino-core.jar. You're going to need to build these with the Java JDK and ant (hopefully Ubuntu provides a working "ant"). The source code is here:

    https://github.com/PaulStoffregen/Ar....5-Teensyduino

    To get the rest, you should be able to just run the 32 bit ARM installer on Raspberry Pi. Then copy the contents of hardware/teensy and hardware/tools into your custom built copy of Arduino. A bunch of the stuff in hardware/tools will be 32 bit ARM, so again you may need to mess with installing 32 bit versions of libraries they use.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,298
    I see someone from nVidia just requested 64 bit ARM Linux support on Arduino's github issue tracker.

    https://github.com/arduino/Arduino/issues/7302

  7. #7
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    6,087
    At one point I was going to try to build a 64 bit version to run on Odroid C2, but never got very far. There was some issue that I was running into like, parts of the compiler or the like were prebuilt archive files that you extracted from some downloaded archives that were part of the install... Was not sure where to find or make those as there were only the specific ones for the setups mentioned...

    If you do get one to work at 64 bits, would be interesting to try with Odroid.

  8. #8
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,298
    I compiled the embedded ARM toolchain currently used by Arduino on Linux ARM 32 bit. I'll probably do the same for Linux ARM 64 bit, and of course set up a 4th Linux build of Teensyduino, if they start moving towards actually supporting Linux ARM 64 bit. But until they at least do the parts written in Google Go, I'm going to take a "wait and see" approach.

  9. #9
    it might be because he has only one architecture , the 64 bit one and needs to add the 32 bit architecture to his system. i have the tx1 and it was a dual but i think with tx2 it comes as only 64 bit. 32 bit is armhf. nvidia is not good on error notifications, they leave you hanging they expect you to know since you bought a developer board kit.

  10. #10
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,298
    Just a quick followup... there's been more activity on Arduino issue 7302. Linux ARM 64 bit is starting to look more likely.

    As always, PJRC's position is to wait for Arduino.cc to publish some sort of ARM64 package, even if it's "alpha" or "experimental".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •