Hacker News new | past | comments | ask | show | jobs | submit login
Arch Linux RISC-V (archriscv.felixc.at)
166 points by hggh 8 months ago | hide | past | favorite | 29 comments



I use this on VisionFive 2.

Works well (seems no worse than archlinuxarm), and has most Arch packages.

I am hopeful as the arch ports RFC[0] passes, RISC-V and other ports will be taken more seriously, and hopefully eventually become fully supported.

0. https://gitlab.archlinux.org/archlinux/rfcs/-/merge_requests...


I switched to archlinuxarm on my rpi4 cause I got sick of having to jump through hoops to do mundane things like needing a ppa to install ripgrep or downloading debs for less popular packages.

Apart from a little confusion about how to configure the bootloader(since rpi uses uboot as opposed to the usual suspects), my experience has been amazing. In typical arch fashion, I've had zero issues apart from on install day.


>I switched to archlinuxarm on my rpi4 cause I got sick of having to jump through hoops to do mundane things like needing a ppa to install ripgrep or downloading debs for less popular packages.

Been running it on the rpis for years for similar reasons. Besides having most stuff packaged, it follows Arch principles and thus doesn't make unnecessary/unreasonable changes to software, my main complaint with most software targeting raspberry pi.


I have tried twice to install it on my rpi4, but I never got it to boot properly :(


Did you run into a boot loop because of some SDMMC controller problem? If yes: this is caused by hardware changes in newer rpi4 and old rootfs images from ALARM which don't support this yet but it's fixed if you update it. To do that, you have to play around with chroot + qemu-user to run a standard "pacman -Syu" on the rpi rootfs before the first boot on the real rpi4. Afterwards it should boot properly on the rpi4.

That being said, if you want to use e.g. the official RPi 7" touch display via DSI, you should also switch from the default upstream kernel to the rpi kernel unless you like to mess around with DTB and debug strange problems.


Using the serial port (I recommend a cp2104 or cp2102N usb-ttl adapter) is extremely helpful.

You'll need to become familiar with u-boot. Then you'll be able to boot this board and any other board with ease.


u-boot is so useful. Recently I used it to ping between 2 devices to prove a hardware issue, and not waste time troubleshooting linux things.


> needing a ppa to install ripgrep

Might be easier to just install cargo and use cargo to install rust tools. I've found it's much less hassle than using a generic package manager.


Is there a write up or something I can use to make this work on my VF2?


There's a few threads about it at rvspace forum[0].

The main point is to understand the boot process, and build or download a kernel with the VF2 patches, as while most of it is upstreamed already[1], it's still not 100%.

0. https://forum.rvspace.org/c/visionfive-2/19

1. https://rvspace.org/en/project/JH7110_Upstream_Plan


How do you run installation on bare-bone hardware? I would look for an ISO or a bootp image, but it seems there is none in the linked website.


Felix is an Arch Linux Developer: https://archlinux.org/people/developers/ so this has a decent chance of fulfilling the “merge back to Arch” plan.

I wish this was a thing for ARM as well (ArchLinux ARM is a great effort, but underfunded). I was using Asahi and had to shift from ALARM to the Fedora remix.


Cool work. Hope we see more decent powered hobbyist stuff soon.

> so that riscv64 (riscv64gc) could be added to Arch Linux itself as an alternative architecture.

Seems unlikely since they only support one architecture. There's bound to be way more 32 bit x86 out there than riscv for the foreseeable future, and they purposely dropped support for that long ago.


The difference is that 32bit x86 is old tech becoming obsolete, whereas risc-v is on the rise.


ARM is way more popular, and ALARM is still a separate project


This might change (soon) since the Arch Linux Ports RFC [1] has been accepted

[1] https://gitlab.archlinux.org/archlinux/rfcs/-/merge_requests...


How do people use this? Is there a laptop or desktop you can buy with RISC-V hardware?


There's a range of boards, including some laptops and tablets, based on TH1520 and JH7110 SoCs. These are RVA20 chips.

As of recently, there's also spacemiT K1, which is RVA22+V.

In the second half of this year. Milk-V Oasis is meant to show up, providing a serious jump in performance. This is 16x SiFive P670, similar to Cortex A77, faster than any ARM SBCs available.


The decent performance is on its way, all that with enough modern hardware features to be a "big implementation" (à la x86_64).

Then RISC-V assembly will be the new C.

It is going to be a long road and a difficult one: the market is already saturated with mature micro-architectures with ISAs completely locked down with Intellectual Property and that by very few vendors. This is really hard, can still fail


It's not reasonable to expect people who like programming in C or other high level languages to suddenly switch to RISC-V assembly.

But I do expect some programs written in assembly to show up, because it doesn't happen very often than a new, modern open ISA like RVA20/RV64GC shows up with a promise of very long term compatibility.

And because assembly is still fun, and will forever be.


> Then RISC-V assembly will be the new C.

What is meant by this?


RISC-V is pleasant to write and simple enough to write an reasonably performing interpreter for I guess.

Note I am not OP and I do not endorse this message.


Yep, and since C was mostly used as an ISA abstraction, then with a real, good enough, worldwide royalty free ISA and not vendor locked, we can expect much more assembly written libraries and programs.

A side effect is to kiss bye bye significantly to the planned obsolescence of much system software and some computer language syntaxes.


"I don't know what C is used for but I want to make a Big Statement."


> Then RISC-V assembly will be the new C.

Yeah, I don't think so


You also need some kind of distro if you are running a single-board computer.


computing doesn't happen only on desktops and laptops


The same way people use rpi. I have one pretending to be a landaline phone,


I have an LicheePi 4A but it looks like it didn't make the list.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: