void-packages icon indicating copy to clipboard operation
void-packages copied to clipboard

[WIP] riscv64-musl port

Open leahneukirchen opened this issue 6 years ago • 38 comments

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).

leahneukirchen avatar Jul 18 '19 11:07 leahneukirchen

Know of any cheap RV64 hardware capable of running Linux? The HiFive Unleashed is rather expensive :/

maciozo avatar Jul 26 '19 21:07 maciozo

Nope, I don't have any either. But qemu is reasonably fast actually.

leahneukirchen avatar Jul 27 '19 12:07 leahneukirchen

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?

Anachron avatar Jul 27 '19 14:07 Anachron

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.

maciozo avatar Jul 27 '19 15:07 maciozo

HiFive Rev B is 60$. https://www.crowdsupply.com/sifive/hifive1-rev-b#products-top

Mostly-BSD avatar Aug 09 '19 12:08 Mostly-BSD

HiFive Rev B is 60$. https://www.crowdsupply.com/sifive/hifive1-rev-b#products-top

But it only has 16KiB of memory.

maciozo avatar Aug 11 '19 11:08 maciozo

FTR I will pick up this project again in March when I get a SiFive Unmatched board.

leahneukirchen avatar Dec 30 '20 18:12 leahneukirchen

You'll probably benefit from the new cross build-helper.

Fingers crossed the Unmatched will be shipped on time.

Anachron avatar Dec 31 '20 09:12 Anachron

I might be interested to test on Qemu

advancedwebdeveloper avatar Jan 03 '21 13:01 advancedwebdeveloper

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.

HadetTheUndying avatar Jan 15 '21 02:01 HadetTheUndying

Thought this might be interesing https://arstechnica.com/gadgets/2021/06/sifives-brand-new-p550-is-one-of-the-worlds-fastest-risc-v-cpus/

dkwo avatar Jun 23 '21 07:06 dkwo

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?

jcgruenhage avatar Jan 14 '22 07:01 jcgruenhage

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

leahneukirchen avatar Jan 14 '22 16:01 leahneukirchen

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.

jailbird777 avatar Mar 03 '22 06:03 jailbird777

The libatomic thing is still a blocker I think.

leahneukirchen avatar Mar 04 '22 19:03 leahneukirchen

And upstream isn't liking that hack?

jailbird777 avatar Mar 04 '22 22:03 jailbird777

No, it's just a packaging decision we need to make.

leahneukirchen avatar Mar 04 '22 22:03 leahneukirchen

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.

github-actions[bot] avatar Jun 03 '22 02:06 github-actions[bot]

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.

github-actions[bot] avatar Sep 02 '22 02:09 github-actions[bot]

@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 ^^

JamiKettunen avatar Jan 08 '23 19:01 JamiKettunen

Long term, yes. Waiting for faster hardware though.

leahneukirchen avatar Jan 14 '23 18:01 leahneukirchen

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

Johnnynator avatar Jan 15 '23 00:01 Johnnynator

^ that's ... pretty awesome!

Have you run any performance benchmarks on how well it's "optimized"?

Anachron avatar Jan 15 '23 13:01 Anachron

^ 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.

Johnnynator avatar Jan 15 '23 15:01 Johnnynator

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.

blacklightpy avatar May 27 '23 16:05 blacklightpy

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?

Anachron avatar Aug 25 '23 19:08 Anachron

Yes, I got a VisionFive 2.

leahneukirchen avatar Aug 26 '23 12:08 leahneukirchen

Anybody heard of the https://sipeed.com/licheepi4a?

I am thinking about either getting one or even the cluster..

Anachron avatar Aug 29 '23 20:08 Anachron

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...).

leahneukirchen avatar Aug 29 '23 20:08 leahneukirchen

it's also possible to apply for developer boards: https://riscv.org/risc-v-developer-boards/details/

sug0 avatar Aug 30 '23 07:08 sug0