An Introduction to the Arch Linux RISC-V Port and Related Works
Ruizhe Pan
Chair Intern
Programming Language and Compiler Technology Lab, Institute of Software at the Chinese Academy of Sciences (China)

Motivations & Goals• In order to promote the use of RISC-V devices among endusers, we look forward to have a feature-rich distribution tomeet their daily needs.

Workflow• Here, we‘d like to introduce the Arch Linux RISC-V port which
is currently one of the most integrated ports among allarchitecture ports of Arch Linux, include but not limited toaarch64 / armv7h / loong64.
• With LibreOffice, Chromium, Firefox and other necessary
software ported and packaged, users can have nearlyconsistent experiences in comparison with x86_64.
• We also actively contribute to the open source community tohelp developers and maintainers get their project ready forriscv64, as well as providing easier access to riscv64
development environments, including but not limited tocontainers spawned with QEMU, and SSH access to real
physical boards.
• Our ultimate goal is to merge the RISC-V port into upstream
Arch Linux, so that riscv64gc becomes an officially supported
architecture of Arch Linux.

PKGBUILD* Scripts

x86_64

CI/CD Cluster
qemu-user
qemu-system

riscv64

VF

VF2Packages!
ChromiumFirefox

LibreOfficeNode.jsLinux

GCC

Rust

Unmatched

riscv64.patch

FTBFS** Report

PKGBUILD Diff

Identify

Fix

sub-word atomic

PR/MR to Upstream

SSE/AVX

Arch Linux Bug Tracker

human

ARM Neon

Outdated Build Script

Self-maintained Patch*: PKGBUILD is the build script of every package in the Arch Linux world.
**: Failed to Build From Source, an abbr. taken from the Arch Linux Upstream.

Porting ProgressShowcasesArch• Watching videos on Bilibili with Firefox using VisionFive:[core][extra]Up-to-date
Outdated Missing Up-to-date
Outdated Missing(Ratio%)(Ratio%)x86_64264001322200i486163 (61.74%) 93
84813 (36.4%) 4688
3721
i686
162 (61.36%) 97
55805 (43.9%) 6067
1350
pentium4 166 (62.88%) 93
55857 (44.3%) 5958
1407
aarch64241 (91.29%) 10
1310927 (82.64%) 161
2134
armv7h240 (90.91%) 10
1410650 (80.55%) 275
2297
riscv64243 (92.05%) 13
810072 (76.18%) 2092
1058
loong64 165 (62.5%) 91
85051 (38.2%) 4529
3642

• Watching local videos with mpv and using Telegram onUnmatched:• Among all Arch Linux ports, riscv64 already has the highest upto-date ratio for [core] repo packages. For the [extra] repo, theriscv64 port also has the fewest missing packages. We are
actively working on reducing the count of outdated packages.
• The comparison info can be grabbed from the following url:
https://archriscv.felixc.at/.status/compare.html• Arch Linux RISC-V also provide routine builds of images androotfs, as well as build scripts for crafting an Arch Linux RISC-V
image from scratch. The image can be booted using qemusystem. It also can work well out-of-the-box with most of theRISC-V development boards that are available now, such as
Unmatched, All Winner D1 and Vision Five 2.
• Official images and rootfs can be found in the following url:
https://archriscv.felixc.at/images/• Monitoring ATC with gnuradio, and trying WebGL
prototypes on VisionFive 2:• LibreOffice and Box64 are also usable, but we currently
have no screenshots for them.