esteve / ros2_raspbian_tools

Tools for crosscompiling ROS2 for the Raspberry Pi
Apache License 2.0
47 stars 15 forks source link

Illegal Instruction on Raspberry 1 #6

Open Kaltzifar opened 6 years ago

Kaltzifar commented 6 years ago

Hello,

I followed the instructions provided by the readme and everything compiles fine. The problem I have is that I can't use the ros2 commands on my Raspberry 1 (OS is Raspbian Stretch).

The command ros2 results in Illegal Instruction

I also tried to change the value for -DCMAKE_TOOLCHAIN_FILE in build_ros2.bash to /polly/raspberrypi1-cxx11-pic.cmake but this doesn't help.

Any ideas how to solve this?

esteve commented 6 years ago

Unfortunately, I've only tested these scripts with the Raspberry Pi 2 and 3. @russkel did you get ROS2 running on the Zero? https://github.com/esteve/ros2_raspbian_tools/issues/5#issuecomment-358316537 I think Zero's processor is similar to the RPI1's.

russkel commented 6 years ago

@esteve I wasn't able to. Changing compiler flags didn't make any difference and I just don't know enough about compiling for ARM.

Kaltzifar commented 6 years ago

Ok I thought there could be an easy solution for this. I switched to RaspberryPi 3 and everything works fine.