Skip to content

Requesting ARM6 build for Raspberry Pi Zero #340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tatwi opened this issue Aug 9, 2019 · 8 comments · Fixed by #341
Closed

Requesting ARM6 build for Raspberry Pi Zero #340

Tatwi opened this issue Aug 9, 2019 · 8 comments · Fixed by #341
Assignees
Labels
type: enhancement Proposed improvement

Comments

@Tatwi
Copy link

Tatwi commented Aug 9, 2019

Your install.sh script indicated the following:

"Sorry, we dont have a dist for your system: Linux armv6
You can request one here: https://github.com/Arduino/arduino-cli/issues"

As such, I would like to request a build for ARM6 that is compatible with the Raspberry Pi Zero (and Zero W).

Thanks! :)

@per1234
Copy link
Contributor

per1234 commented Aug 9, 2019

Thanks for reporting this!

To tide you over until the installation script is fixed, there is a Raspberry Pi compatible version of arduino-cli available at the "arduino-cli_0.4.0_Linux_32bit.tar.gz" link here:
https://github.com/arduino/arduino-cli/releases/tag/0.4.0

@masci masci added component/packaging type: enhancement Proposed improvement and removed kind/bug labels Aug 10, 2019
@masci
Copy link
Contributor

masci commented Aug 10, 2019

Hi @Tatwi, at this stage we only distribute binaries for ARMv7 and later, this is something that might change if users ask for it but I'm not sure about implications right now. As a workaround, have you tried building the CLI yourself? The contributing page provides some guidance but feel free to reach out should you have any issue with the build.

Let's use this issue to collect feature requests, if anybody else needs an ARMv6 distribution please leave your feedback or upvote OP.

@Tatwi
Copy link
Author

Tatwi commented Aug 10, 2019

Thanks masci. I'll build it myself when I have time to put together the toolchain (I don't use the software that you use, so I don't have it setup).

My thoughts on why having an ARM6 build would be beneficial are thus:

  1. The Raspberry Pi Zero / Zero W will be manufactured and available until at least 2026.

  2. Of all the Raspberry Pi products, the Pi Zero best synergies with Arduino products, being that it is often used in embedded systems, robotics, etc. It's less than half the size of an Arduino UNO and it integrates nicely with Arduino Nano devices.

  3. Of all the Raspberry Pi products, the ARM6 based Pi Zero is the one that benefits the most from using the command line version of the Arduino compiler, because often the Pi Zero will be used either headless or command line only.

Personally I am just slapping my UNO together with my Zero for the sake of doing so, but I'm sure there are others out there who are enjoying the combination of computing power, small size, low power requirements, and ability to program multiple Arduinos on the fly ("Smart" robots for instance). I think it's worth doing, at least until the Pi Zero is no longer being sold as an ARM6 device.

@facchinm
Copy link
Member

@masci there should be no implications in moving the default ARM 32 bit build to ARMv6 (in fact, go build defaults to ARMv5 if I'm not wrong).
All the relevant tools (compilers, avrdude, ...) are already built for ARMv6 too so I'd switch the default target to make everyone happy 🙂

@masci
Copy link
Contributor

masci commented Aug 12, 2019

@Tatwi I don't have a Pi Zero at hand, can you see if https://github.com/arduino/arduino-cli/releases/download/0.4.0-armv6/arduino-cli_0.4.0-armv6_Linux_ARMv6.tar.gz works? If it works I'll merge #341 and ARMv6 builds will be effective starting with the next nightly

@masci masci self-assigned this Aug 12, 2019
@Tatwi
Copy link
Author

Tatwi commented Aug 12, 2019 via email

@gvarisco
Copy link
Contributor

I gave it a try on armv6 (Linux raspberrypi 4.14.79 #1 Sun Jan 27 22:47:58 UTC 2019 armv6l, raspbian_lite). Works like a charm. No errors detected.

@Tatwi
Copy link
Author

Tatwi commented Aug 14, 2019

I just finished testing https://github.com/arduino/arduino-cli/releases/download/0.4.0-armv6/arduino-cli_0.4.0-armv6_Linux_ARMv6.tar.gz on my Raspberry Pi Zero W (running Debian Buster) and it worked perfectly with my Arduino UNO. Thanks!

FYI for anyone interested: The test sketch took between 5-10 seconds to compile and update the UNO, using a class 10 SD card. Might be faster using a RAM Drive for /tmp and anywhere else object code gets splatted during compilation.

mik13ST added a commit to mik13ST/arduino-cli that referenced this issue Oct 21, 2022
As a newcomer, this made me assume ARMv6 is not supported so I searched the issues, found arduino#340, which suggested building from source so I did, only to discover an ARMv6 binary in the release files.

As for the table layout, it's not ideal. It would also make sense to have this in another column.
cmaglie pushed a commit that referenced this issue Oct 21, 2022
As a newcomer, this made me assume ARMv6 is not supported so I searched the issues, found #340, which suggested building from source so I did, only to discover an ARMv6 binary in the release files.

As for the table layout, it's not ideal. It would also make sense to have this in another column.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants