Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

bacalhau: add arm support. closes #286 - #288

Closed
juliangruber wants to merge 1 commit into
mainfrom
add/bacalhau-arm
Closed

juliangruber wants to merge 1 commit into
mainfrom
add/bacalhau-arm

Conversation

@juliangruber

Copy link
Copy Markdown
Member

Closes #286

@juliangruber
juliangruber requested a review from bajtos December 5, 2023 13:35

@bajtos bajtos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This solves the installation of Bacalhau on arm6, but how about Zinnia?

Zinnia doesn't provide binaries for arm6. Building such binaries will be very expensive because AFAIK rusty_v8 does not provide pre-built binaries for that platform, and therefore, we would have to build v8 from sources.

Comment thread lib/bacalhau.js
Comment on lines +24 to +25
{ platform: 'win32', arch: 'x64', asset: `bacalhau_${DIST_TAG}_windows_amd64.tar.gz` },
{ platform: 'linux', arch: 'arm', asset: `bacalhau_${DIST_TAG}_linux_arm6.tar.gz` }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would you mind keeping this list sorted by platform? (Add the new line before the win32 entry, not after.)

Suggested change
{ platform: 'win32', arch: 'x64', asset: `bacalhau_${DIST_TAG}_windows_amd64.tar.gz` },
{ platform: 'linux', arch: 'arm', asset: `bacalhau_${DIST_TAG}_linux_arm6.tar.gz` }
{ platform: 'linux', arch: 'arm', asset: `bacalhau_${DIST_TAG}_linux_arm6.tar.gz` },
{ platform: 'win32', arch: 'x64', asset: `bacalhau_${DIST_TAG}_windows_amd64.tar.gz` }

Comment thread lib/bacalhau.js
Comment on lines +24 to +25
{ platform: 'win32', arch: 'x64', asset: `bacalhau_${DIST_TAG}_windows_amd64.tar.gz` },
{ platform: 'linux', arch: 'arm', asset: `bacalhau_${DIST_TAG}_linux_arm6.tar.gz` }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see that Bacalhau supports both Arm6 and Arm7. Should we support both?

FWIW, in this discussion from 2017, they say

On the Raspberry 2 although it’s architecture is arm7 raspbian only supports arm6 by now so be sure to download that version as is explained in the getting started guide. If you want to use arm7 binaries with the raspberry PI 2 you can try other distributions like archlinux or ubuntu core and the arm7 download of OF but this is still not very well tested so some changes might be required to the original install scripts.

I also found this official blog post from 2022 which provides detailed explanations about different ARM versions in different Raspberry Pi versions:
https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/

My understanding is that rPi users have two options:

  • Run an older version of the OS in arm6 mode (32bit)
  • Run a newer version of the OS in arm64 mode (64bit)

rPi models starting from rPi3 and rPi Zero 2 support arm64.

In that light:

  • I am questioning whether we need to support 32bit ARM at all.
  • If we want to support 32bit ARM, then arm6 is the option that gives us the best compatibility.

@juliangruber

Copy link
Copy Markdown
Member Author

Ah, I wasn't aware that Zinnia doesn't support arm. Then this is here doesn't add any value

@juliangruber

Copy link
Copy Markdown
Member Author

#286 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to install core in Raspberry Pi 3

2 participants