docker icon indicating copy to clipboard operation
docker copied to clipboard

Docker Image works in a Desktop but not in a RPI

Open pfs-db opened this issue 5 years ago • 3 comments

Hello, I'm trying to face the tutorial from this repository (https://github.com/micro-ROS/micro-ROS-bridge_RPI), i was thinking if i could use some images that are already good to use, i have used the docker-base in my desktop amd64 and works fine, but when i try to compile in RPI

I run the docker image ros-base as a conteiner and the output is: standard_init_linux.go:211: exec user process caused "exec format error"

What can i do to improve the understanding of my question? Great work!!

pfs-db avatar Oct 08 '19 02:10 pfs-db

Hi Pablo,

You can't use the docker base inside of the RPI for two reasons:

  • This docker compiles for X86/64 and you need to compile for arm64.
  • I will take hours to compile it on the RPI.

So, to use the agent inside of the RPI, you need to cross-compile on your host PC and then copy to the RPI. On the readme file of the bridge you can see the instructions of how to set-up it.

I hope this answer your question.

jfm92 avatar Oct 08 '19 07:10 jfm92

Hello again, The problem is that in was trying to use this repository as a solution for not to use the cross-compiling RPI repository (https://github.com/micro-ROS/micro-ROS-bridge_RPI), because i find some trouble there, I saw that you worked there too, so can you cleared for me that this repository cannot be used as a second option for the cross-compiling? Not even if i export the container from my desktop to the RPI?

I'm trying to perform a hello world exemple between the RPI and the dektop. Thanks for the answer.

pfs-db avatar Oct 10 '19 14:10 pfs-db

@PabloFreitasUfsc Hi! Thank you for your interest in micro-ROS. Notice that we’ll discuss the recent contributions and developments in the next Embedded WG meeting. You’re invited to bring your micro-ROS related issue to this platform. We’ll be very happy to have you join us and discuss your questions with the community.

FranFin avatar Jul 20 '20 05:07 FranFin