Arduino-cli on Raspberry Pi: Error downloading tool DxCore:avr-gcc@7.3.0-atmel3.6.1-azduino7b1 #1063
Replies: 1 comment
-
The cause of this is architectural incompatibility. An older version of Raspbian Bullseye (from 2022) has an architecture armv71 and everything is fine on that. It appears that arduino/ctags, used by arduino-cli, hasn't had any new releases since 2017 so it doesn't have anything for aarch64. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
MegaTinyCore works fine in the Arduino IDE on a Raspberry Pi, but I am trying to set it up with arduino-cli because it will be on a remote machine and cli is easier.
When trying to install it, I get this error
Because this works in the IDE, I figured it had to be some naming issue. I looked in package_drazzy.com_index.json and there is a tools entry for 7.3.0-atmel3.6.1-azduino7b1. In the system section, it has an entry that specifies host aarch64-pc-linux-gnu and the url it refers has a downloadable file. On the pi
In the arduino-cli documentation, I noticed it used aarch64-linux-gnu instead of aarch64-pc-linux-gnu, so in package_drazzy.com_index.json I changed line 3885 to be
"host": "aarch64-linux-gnu"
and the installation completed with no errors. If I look in ~/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino7b1/ after the installation, there is a directory aarch64-unknown-linux-gnu. On the Raspberry Pi, both uname -p and uname -i return "unknown", so might have had something to do with why it couldn't match aarch64-pc-linux-gnu.
However, now I have run into the problem
Used platform Version Path
megaTinyCore:megaavr 2.6.10 /home//.arduino15/packages/megaTinyCore/hardware/megaavr/2.6.10
Error during build: fork/exec /home//.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino7b1/bin/avr-g++: no such file or directory
which is strange because ls -l shows that the file is there and executable.
Beta Was this translation helpful? Give feedback.
All reactions