These scripts compile, copy, bake, unpack and flash a ready to use RISC-V Archlinux.
With "ready to use" i mean that it boots, you still need to configure everything!
Special thanks to smaeul for all their work!
- Boot0 based on https://github.com/smaeul/sun20i_d1_spl
- OpenSBI based on https://github.com/smaeul/opensbi
- U-Boot based on https://github.com/smaeul/u-boot.git
- Kernel based on https://github.com/smaeul/linux
- WiFi driver (rtl8723ds) based on https://github.com/lwfinger/rtl8723ds
- RootFS based on https://archriscv.felixc.at (root password is
sifive
)
- Install requirements:
pacman -Sy riscv64-linux-gnu-gcc swig cpio python3 python-setuptools base-devel bc
- Run
1_compile.sh
which compiles everything into theoutput
folder. - Run
2_create_sd.sh /dev/<device>
to flash everything on the SD card. - Configure your Archlinux 🚀
Simply loop it using sudo losetup -f -P <file>
and then use /dev/loopX
as the target device.
The second script requires arch-install-scripts
, qemu-user-static-bin
(AUR) and binfmt-qemu-static
(AUR) for an architectural chroot.
If you don't want to use/do this, change USE_CHROOT
to 0
in consts.sh
.
Keep in mind, that this is just a extracted rootfs with no configuration. You probably want to update the system, install an editor and take care of network access/ssh
Some commits are pinned, this means that in the future this script might stop working since often a git HEAD is checked out. This is intentional.
The second script uses sudo
for root access. Like any random script from a random stranger from the internet, have a look at the code first and use at own risk!
Things are rebuild whenever the corresponding output/<file>
is missing. For example, the kernel is rebuilt when there is no Image
file.
- kernel updated to 5.19-rc1
- added initramfs support (untested)
- added extlinux support
- kernel includes modules for USB LAN adapter
- swap is enabled
- HDMI, tested with LXDE/LXDM
- WiFi \o/
- Kernel is based on 5.18-rc1
- WiFi driver fails to build (linking error :feelsbadman:)
- Both kernel and U-Boot are using
nezha_defconfig
since i found them more reliable- With the licheerv_linux_defconfig from here the kernel fails to find the sd card (or its partitions? not sure what exactly goes wrong)
- HDMI is not working (at least on the one screen i've tested it)
no WiFi!No HDMI (though, i'm unsure about the state of HDMI support in general)