Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] riscv64-musl port #13207

Open
wants to merge 189 commits into
base: master
Choose a base branch
from

Conversation

leahneukirchen
Copy link
Member

@leahneukirchen leahneukirchen commented Jul 18, 2019

This is the beginning of a port of Void to riscv64-musl.
musl supports RISC-V as of 1.1.23.

  • base-devel
  • base-system
  • 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 leahneukirchen added help wanted Extra attention is needed WIP Work in progress labels Jul 18, 2019
@maciozo
Copy link
Contributor

maciozo commented Jul 26, 2019

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

@leahneukirchen
Copy link
Member Author

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

@Anachron
Copy link
Contributor

@maciozo
Copy link
Contributor

maciozo commented Jul 27, 2019

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.

@Mostly-BSD
Copy link
Contributor

@maciozo
Copy link
Contributor

maciozo commented Aug 11, 2019

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

But it only has 16KiB of memory.

@leahneukirchen
Copy link
Member Author

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

@Anachron
Copy link
Contributor

Anachron commented Dec 31, 2020

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

Fingers crossed the Unmatched will be shipped on time.

@advancedwebdeveloper
Copy link

I might be interested to test on Qemu

@HadetTheUndying
Copy link
Contributor

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.

@dkwo
Copy link
Contributor

dkwo commented Jun 23, 2021

@jcgruenhage
Copy link
Contributor

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?

@leahneukirchen
Copy link
Member Author

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 leahneukirchen@178cead

@Anachron Anachron mentioned this pull request Jan 16, 2022
@jailbird777
Copy link
Contributor

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.

@leahneukirchen
Copy link
Member Author

The libatomic thing is still a blocker I think.

@jailbird777
Copy link
Contributor

And upstream isn't liking that hack?

@leahneukirchen
Copy link
Member Author

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

@github-actions
Copy link

github-actions bot commented Jun 3, 2022

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
Copy link

github-actions bot commented Sep 2, 2022

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 github-actions bot added the Stale label Sep 2, 2022
@github-actions github-actions bot closed this Sep 17, 2022
@JamiKettunen
Copy link
Contributor

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

@leahneukirchen
Copy link
Member Author

Long term, yes. Waiting for faster hardware though.

@Anachron
Copy link
Contributor

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?

@github-actions github-actions bot removed the Stale label Aug 26, 2023
@leahneukirchen
Copy link
Member Author

Yes, I got a VisionFive 2.

@Anachron
Copy link
Contributor

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

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

@leahneukirchen
Copy link
Member Author

leahneukirchen commented Aug 29, 2023

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

@sug0
Copy link
Contributor

sug0 commented Aug 30, 2023

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

@blacklightpy
Copy link

blacklightpy commented Sep 3, 2023

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

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

I was waiting for the Milk-V Meles as it's based on the same SoC but is cheaper #99/$139 for 8/16GB, as opposed to $119/$179 for Lichee Pi. Meles does not have eMMC included so otherwise they seem pretty equivalent. Now that I rechecked it thanks to you and found that Meles is cheaper because it doesn't have eMMC, I'll probably go with Lichee Pi. But not now because today I'm buying a 2TB external HDD.

Plus I'll also have time for stocks to arrive in my country because the shipping costs are about $100 on AliExpress.

Edit: There's also the Beagle-V Ahead based on the TH1520.

@blacklightpy
Copy link

blacklightpy commented Sep 3, 2023

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

VisionFive V2 is based on JH7110 which is a bit slower than the TH1520 which also comes with an NPU and faster clocked C910 cores.

Edit: But thanks @sug0 I'll apply for it since I'm also interested in trying out software support and usability with Void.

Copy link

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 github-actions bot added the Stale label Jan 17, 2024
@fvalasiad
Copy link
Contributor

@maciozo I have a mango pi, took it for around 30 euros, it's a raspberry pi zero equivalent in performance, you might wanna check it out.

@github-actions github-actions bot removed the Stale label Jan 18, 2024
@dataCobra
Copy link
Contributor

Today my VisionFive 2 Rev. 1.3B arrived and would like to participate. 🎉

Does anybody has some documentation on how to setup a basic void setup on this board with microSD?

@blacklightpy
Copy link

blacklightpy commented Feb 21, 2024

Today my VisionFive 2 Rev. 1.3B arrived and would like to participate. 🎉

Does anybody has some documentation on how to setup a basic void setup on this board with microSD?

@dataCobra I found this: https://old.reddit.com/r/voidlinux/comments/zl6odc/void_on_riscv/j05fnic/

Instructions for Debian from https://wiki.debian.org/InstallingDebianOn/StarFive/VisionFiveV2:

  • Most of VisionFive V2 hardware support is merged to upstream Linux kernel;
  • A Linux kernel fork with the patches applied is available at github.com/yuzibo/vf2-linux.
  • Current support state could be followed at RVSpace JH7110 Upstream Status page.
  • If you want to boot Debian sid image on vf2, you can refer to vf2-debian-image, which from mmdebstrap and upstream kernel with several upstream patches. (by 2023/12/27)
  • An alternative option is to boot from microSD and update u-boot and firmware using flashcp command as described at RVSpace Quick Start Guide.
  • You can mostly follow the instructions given for InstallingDebianOn/StarFive/VisionFiveV1.
  • However, at least some u-boot versions expect uEnv.txt to be named vf2_uEnv.txt instead.

So you'll be cross-compiling the kernel and base system with the RV64 toolchain and there maybe a bunch of patches here and there. Check out yuzibo's kernel and debian images to see if you can find anything. The image seems to be built with Docker Compose.. I haven't checked much into it, but hope this helps.

@dataCobra
Copy link
Contributor

Hey @blacklightpy,

thank you for all the links.

Currently trying out the yuzibo version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet