siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
5.89k stars 469 forks source link

riscv64 architecture images #8655

Open kallisti5 opened 2 months ago

kallisti5 commented 2 months ago

Feature Request

riscv64 is becoming a larger player in the sbc space. Talos offering riscv64 architecture bases would open several new low-power devices to the Talos ecosystem.

A good example board is the StarFive VisionFive 2 which can have up to 8GiB of ram.

Description

riscv64gc would be the most "generic" extensions to target that would work on the most devices such as the SiFive Unleashed, SiFive Unmatched, and StarFive VisionFive 2

"If Haiku can offer riscv64 images, why can't Talos?" :-)

smira commented 2 months ago

As the first pre-requisite, we would need riscv64 builders which should be capable of building Talos pkgs in reasonable time (~ 1h). If someone is willing to provide the builder, we can start the discussion about it.

Next will be a test environment to run Talos and verify that it works.

pl4nty commented 2 months ago

I recently implemented riscv64 support on a fork, but I don't have hardware to test the image. @kallisti5 would you like to try it? Fair warning, I'm expecting a lot of bugs.

I'll do a writeup on blockers later this week. Toolchain/pkg support was pretty good, but the builds alone took several days on the only public provider I could find (Scaleway). I'm waiting for Sipeed's LM5A to release before doing further testing

kallisti5 commented 2 months ago

Nice! I have several rv64 boards. I'm out of town this week, but will be able to test next.

Brocklobsta commented 1 month ago

@kallisti5 Any updates with your testing? I will be getting some HiFive Premier P550 boards when they are available in August this year. I can help with this ticket when I have the boards.

pl4nty commented 1 month ago

Here's that writeup, let me know how your testing goes. I'll rebase when 1.8 releases

pl4nty commented 1 month ago

Scaleway added serial support to their Lichee Pi 4As, but it needs kernel drivers so I'll hold off on recompiling until 1.8. I also learnt it doesn't have mainline U-Boot support, let alone UEFI, so the overlay could get tricky.