Skip to content
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

Only support ARMv6 on ARM platforms #4542

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

MichaelEischer
Copy link
Member

What does this PR change? What problem does it solve?

Go 1.21 has switched the default from GOARM=5 to GOARM=7. So far there have been complaints from Raspberry Pi 1 users, as the first raspberry pi version only supports ARMv6. Exclude older ARM versions as these are likely not relevant (rest-server also only supports ARMv6/7) and enforce the use of software floating point emulation.

This also fixes the mislabeling of our docker containers as linux/arm/v7 when the contained binary actually only required linux/arm/v5

Was the change previously discussed in an issue or on the forum?

Fixes #4540

Checklist

  • I have read the contribution guidelines.
  • I have enabled maintainer edits.
  • [ ] I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I have run gofmt on the code in all commits.
  • All commit messages are formatted in the same style as the other commits in the repo.
  • I'm done! This pull request is ready for review.

@JsBergbau
Copy link
Contributor

JsBergbau commented Oct 26, 2023

So far there have been complaints from Raspberry Pi 1 users, as the first raspberry pi version only supports ARMv6.

I think the Raspberry Pi 1 is not the main cause. Raspberry Pi 1 is probably not used widely anymore. However the popular Raspberry PI Zero W is also based on ARMv6. I am using 3 Raspberry PI Zero W and therefore need the ARMv6 support.
I think as far as Go supports building for ARMv6 we should keep it for the Raspberry PI Zero W users.

@MichaelEischer
Copy link
Member Author

However the popular Raspberry PI Zero W is also based on ARMv6.

That information is missing from #4540. There only the "Raspberry Pi" was mentioned. I only intend to deprecate ARMv5, not later versions of the instruction set.

Go 1.21 has switched the default from GOARM=5 to GOARM=7. So far there
have been complaints from Raspberry Pi 1 users, as the first raspberry
pi version only supports ARMv6. Exclude older ARM versions as these are
likely not relevant (rest-server also only supports ARMv6/7) and enforce
the use of software floating point emulation.
Copy link
Member Author

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@MichaelEischer MichaelEischer merged commit 50ef011 into restic:master Oct 27, 2023
12 checks passed
@MichaelEischer MichaelEischer deleted the support-armv6 branch October 27, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Illegal instruction on Raspberry Pi with arm version
2 participants