filecoin-station / core

Station is a visionary network that connects your computer's idle resources to the Filecoin network and rewards you with FIL
https://filstation.app
Other
27 stars 8 forks source link

Android Termux / Userland #310

Open kenfink opened 6 months ago

kenfink commented 6 months ago

Installation breaks with os.platform = "android" instead of Linux. Hoping to get this running on ARM Android devices.

Once install works (tested by replacing os.platform), next issue is os.arch = anything other than "arm64" for example "aarch64", "arm" breaks the post-install script. Should be compatible, just differently named.

Bacalhau has a 32-bit armv7 version in releases, so "armv7l" and "armv8l" would be great os.arch options as well.
Can Zinnia run on 32 bit? If so, would need a version in releases for this.
If not, then maybe put an "arch" test in the script to warn that 32-bit shouldn't continue.

bajtos commented 6 months ago

Related:

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.

The same comment applies to arm7vl and armv8l.

Here is the list of rusty_v8 binaries available: https://github.com/denoland/rusty_v8/releases/tag/v0.83.1

kenfink commented 6 months ago

Sounds like 64 bit Android kernel should be able to run it, and and 32-bit is out.

Related:

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.

The same comment applies to arm7vl and armv8l.

Here is the list of rusty_v8 binaries available: https://github.com/denoland/rusty_v8/releases/tag/v0.83.1