[WIP] riscv64-musl port
This is the beginning of a port of Void to riscv64-musl. musl supports RISC-V as of 1.1.23.
- [x] base-devel
- [x] base-system
- [x] chroot tested on Fedora in QEMU
- [ ] linux5.2
- [ ] running directly on QEMU
- [ ] running on hardware (I don't have any...)
Feel free to contribute! Having access to a bulk build would be very helpful (Debian has ~10% fallout).
Know of any cheap RV64 hardware capable of running Linux? The HiFive Unleashed is rather expensive :/
Nope, I don't have any either. But qemu is reasonably fast actually.
https://hackaday.com/2019/05/24/new-part-day-a-64-bit-risc-v-cpu-in-raspberry-pi-hat-form/
Maybe this is an alternative?
https://hackaday.com/2019/05/24/new-part-day-a-64-bit-risc-v-cpu-in-raspberry-pi-hat-form/
Maybe this is an alternative?
Only issue with that is that the K210 only has 6MiB of general purpose memory - Linux would probably struggle.
HiFive Rev B is 60$. https://www.crowdsupply.com/sifive/hifive1-rev-b#products-top
HiFive Rev B is 60$. https://www.crowdsupply.com/sifive/hifive1-rev-b#products-top
But it only has 16KiB of memory.
FTR I will pick up this project again in March when I get a SiFive Unmatched board.
You'll probably benefit from the new cross build-helper.
Fingers crossed the Unmatched will be shipped on time.
I might be interested to test on Qemu
I'm interested helping contribute to this as soon as I get my hands on some hardware as well. I've applied for the BeagleV and intend to pick up the HiFive Unmatched. I already the components for my Unmatched build ready other than the board on hand.
Thought this might be interesing https://arstechnica.com/gadgets/2021/06/sifives-brand-new-p550-is-one-of-the-worlds-fastest-risc-v-cpus/
FTR I will pick up this project again in March when I get a SiFive Unmatched board.
@leahneukirchen ooi, how did that go, is there an update here?
WIP branch is https://github.com/leahneukirchen/void-packages/tree/riscv-glibc but the machine is really slow which killed my motivation to do large builds.
Main blocker for upstreaming is https://github.com/leahneukirchen/void-packages/commit/178cead3c03b8eddb20a86622324bb17b59844d1
I'm interesting in helping out with this. I have a Sipeed Lichee RV to play with. It's currently running Debian and I'd love to "fix" that :).
Looking to cross-compile, of course.
The libatomic thing is still a blocker I think.
And upstream isn't liking that hack?
No, it's just a packaging decision we need to make.
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
@leahneukirchen Are you planning to work on this still? I might get a VisionFive 2, so I'd indeed be rather interested in keeping this PR up-to-date and alive ^^
Long term, yes. Waiting for faster hardware though.
Preparing some things myself, right now having fun with getting rust working.
index: added `colord-1.4.6_2' (riscv64-musl).
index: added `colord-devel-1.4.6_2' (riscv64-musl).
index: added `libcolord-1.4.6_2' (riscv64-musl).
index: 6133 packages registered.
https://github.com/Johnnynator/void-packages/tree/riscv64-musl
^ that's ... pretty awesome!
Have you run any performance benchmarks on how well it's "optimized"?
^ that's ... pretty awesome!
Have you run any performance benchmarks on how well it's "optimized"?
I do not have any hardware yet. Just fixing some templates and compiling stuff.
Pine64 Ox64 is an RV64 board for $8. I ordered one myself, but haven't tried it yet.
Still only has 64 MB RAM, which is lower than Void's minimum.
Then there's Star64, which is like a Pi 4, and the 4GB variant costs $70.
Maybe someone has a PineTab2 V and can get Void Linux running?
I would be buying the tablet if it runs Void.
@leahneukirchen I am guessing you reopened this as you continue to work on this?
Yes, I got a VisionFive 2.
Anybody heard of the https://sipeed.com/licheepi4a?
I am thinking about either getting one or even the cluster..
I decided against getting one, but I have a $20 voucher I could pass on if you wanna get one (not sure I can transfer it...).
it's also possible to apply for developer boards: https://riscv.org/risc-v-developer-boards/details/