RISC-V Architecture Support

Hi there! Just got a new device (Clockwork Pi uConsole) and I was hoping to install zerotier-one on it in order to connect to my existing zerotier network. Unfortunately, it’s a riscv64 device and the install failed!

cpi@demoncore:~$ curl -s https://install.zerotier.com | sudo bash

*** ZeroTier Service Quick Install for Unix-like Systems

*** Tested OSes / distributions:

***   MacOS (10.13+) (just installs ZeroTier One.pkg)
***   Debian Linux (7+)
***   RedHat/CentOS Linux (6+)
***   Fedora Linux (16+)
***   SuSE Linux (12+)
***   Mint Linux (18+)

*** Supported architectures vary by OS / distribution. We try to support
*** every system architecture supported by the target.

*** Please report problems to contact@zerotier.com and we will try to fix.

*** Detecting Linux Distribution

*** Found Ubuntu, creating /etc/apt/sources.list.d/zerotier.list
Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease                         
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [119 kB]        
Get:3 https://raw.githubusercontent.com/clockworkpi/apt/main/debian stable InRelease [5408 B]
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [109 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [110 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe riscv64 Packages [686 kB]                        
Fetched 1029 kB in 15s (70.5 kB/s)                                                                                 
Reading package lists... Done
W: https://raw.githubusercontent.com/clockworkpi/apt/main/debian/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gpg is already the newest version (2.2.27-3ubuntu2.1).
gpg set to manually installed.
The following packages were automatically installed and are no longer required:
  crda fonts-noto-cjk libpython3.9-minimal libpython3.9-stdlib libssl1.1 python3-debconf python3-debian python3.9
  python3.9-minimal socat
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 315 not upgraded.

*** Installing zerotier-one package...
Get:1 http://download.zerotier.com/debian/jammy jammy InRelease [20.5 kB]
Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy InRelease                                                         
Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease                                             
Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease               
Hit:5 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease                
Get:6 https://raw.githubusercontent.com/clockworkpi/apt/main/debian stable InRelease [5408 B]
Fetched 25.9 kB in 14s (1822 B/s)                                                                                  
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-riscv64/Packages' as repository 'http://download.zerotier.com/debian/jammy jammy InRelease' doesn't support architecture 'riscv64'
W: https://raw.githubusercontent.com/clockworkpi/apt/main/debian/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package zerotier-one

*** Package installation failed! Unfortunately there may not be a package
*** for your architecture or distribution. For the source go to:
*** https://github.com/zerotier/ZeroTierOne

cpi@demoncore:~$ 

Would love to see riscv64 supported in the future. Thanks!

Are you in a position to try to build it from the source code? There is a chance it will compile and work on RISC V without changes and the only thing that’s missing is a precompiled package because there is no build pipeline for RISC V (yet?).

Oh! I didn’t realize Zerotier was open source. Yes, I’ll try compiling and then report back.