question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing turtlebot3 on Ubuntu IoT 18.04 architecture not detected properly

See original GitHub issue

ISSUE TEMPLATE ver. 0.2.0

  1. Which TurtleBot3 you have?

    • Burger
    • Waffle
    • Waffle Pi
  2. Which SBC(Single Board Computer) is working on TurtleBot3?

    • Raspberry Pi 3
    • Intel Joule 570x
    • etc (PLEASE, WRITE DOWN YOUR SBC HERE)
  3. Which OS you installed in SBC?

    • Ubuntu MATE 16.04 or later
    • Raspbian
    • Ubuntu 18.04 IoT
  4. Which OS you installed in Remote PC?

    • Ubuntu 16.04 LTS (Xenial Xerus)
    • Ubuntu 18.04 LTS (Bionic Beaver)
    • Linux Mint 18.x
    • etc (PLEASE, WRITE DOWN YOUR OS)
  5. Write down software version and firmware version

    • Software version: [x.x.x]
    • Firmware version: [x.x.x]
  6. Write down the commands you used in order

    • Going through the code provided here. I hit a snag running the following command:
~$ ./update.sh $OPENCR_PORT $OPENCR_MODEL.opencr
  1. Copy and Paste your error message on terminal

    • The above code results in this output:
aarch64
OpenCR Update Start..
./update.sh: line 27: ./opencr_ld_shell_x86: cannot execute binary file: Exec format error
  1. Please, describe detailedly what difficulty you are in

Installing on Ubuntu 18.04 IoT, the script attempts to install the x86 binaries even though we are on an arm system. Using the uname -m or uname -p returns:

aarch64

I believe a fix for this is to add this case to the update.sh:

case $(uname -m) in
    i386)   architecture="386" ;;
    i686)   architecture="386" ;;
    x86_64) architecture="amd64" ;;
    armv7l) architecture="arm" ;;
    aarch64) architecture="arm";;  # <-- my fix
    arm)    dpkg --print-architecture | grep -q "arm64" && architecture="arm64" || architecture="arm" ;;
esac

however, this runs into the following error:

-bash: ./opencr_ld_shell_arm: No such file or directory

I believe this is due to the binary file only compiled for a 32-bit arm architecture. Is it possible to get it for a 64-bit architecture?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thillRobotcommented, Nov 11, 2020

Great. That is the fix! I tried that last night, but I was not paying close enough attention. I re-ran the whole line with the wget and all after a making that edit.

Thanks for your help!

1reaction
routifulcommented, Aug 21, 2019

@zmk5

The issue seems to be solved. If you have any question about this issue, please feel free to reopen or get a new ticket 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simulate the TurtleBot3 | Ubuntu
This allows us to build the TurtleBot software on your workstation. sudo apt install python3-colcon-common-extensions. Install Gazebo. Robot ...
Read more >
Setting-up the Turtlebot3 with ros2 on Ubuntu Server IoT 18.04
Step 1: Download and Install Ubuntu Server IoT 18.04 · Step 2: Start the OS on the Turtlebot3 · Step 3: Change the...
Read more >
Turtlebot3 install (ROS2 기반) - 네이버 블로그
Install Ubuntu on Remote PC. To set ROS (Robot Operating System) on Remote PC, please install Ubuntu 18.04 on Remote PC.
Read more >
Install Turtlebot3 in Ubuntu 18.04 ROS MELODIC EASY
Easy to follow guide for installing TurtleBot3The website has updated, and the instructions are located ...
Read more >
Deploying ROS applications as Snaps with AWS IoT ...
Log in to your robot, either via SSH or by hooking up a display to the Pi, and configure it with some relevant...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found