!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

242 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux 74 Servers

Load older messages


SenderMessageTime
29 Mar 2025
@lab.8916100448256:matrix.org12bno sorry I meant distributed by the manufacturer21:35:06
@alex:tunstall.xyzAlex

Try to find the sources for the Linux kernel and whatever bootloader they're using (they probably have custom patches).
You can customise NixOS to use those sources.
You may also need to search for documentation on how to setup the bootloader and replicate it with a bit of Nix.

Other than that, it's no different from doing a regular NixOS install.
Of course, you still can't expect to have riscv64 from the official NixOS binary cache, so expect the system build to take a while.
Some things can be disabled to save time, but most of the things that are enabled by default are somewhat "essential".

21:39:11
@lab.8916100448256:matrix.org12bthe kernel source they are using is in https://github.com/orangepi-xunlong/orangepi-build for the bootloader I don't know.21:56:26
30 Mar 2025
@98765abc:mozilla.org98765abc joined the room.02:13:47
@shorden:mozilla.orgshorden joined the room.18:46:30
31 Mar 2025
@roedimqf:ruhr-uni-bochum.deMichael
In reply to @lab.8916100448256:matrix.org
the kernel source they are using is in https://github.com/orangepi-xunlong/orangepi-build
for the bootloader I don't know.
my board should arive this week, so I've been poking around a bit. The relevant repositiories should be
https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky
https://github.com/orangepi-xunlong/u-boot-orangepi/tree/v2022.10-ky
07:05:49
@roedimqf:ruhr-uni-bochum.deMichael
In reply to @lab.8916100448256:matrix.org
the kernel source they are using is in https://github.com/orangepi-xunlong/orangepi-build
for the bootloader I don't know.
* my board should arrive this week, so I've been poking around a bit. The relevant repositiories should be
https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky
https://github.com/orangepi-xunlong/u-boot-orangepi/tree/v2022.10-ky
07:10:07
@lab.8916100448256:matrix.org12b Ah, thnaks. I saw a relevant commit in their default branch next and I did not look further 07:10:29
@lab.8916100448256:matrix.org12b * Ah, thanks. I saw a relevant commit in their default branch next and I did not look further 07:10:37
@lab.8916100448256:matrix.org12bRedacted or Malformed Event07:12:31
@roedimqf:ruhr-uni-bochum.deMichaelhttps://github.com/orangepi-xunlong/orangepi-build/blob/36a2f27f9b2d064331e4e22ccd384e0d269dbd31/external/config/sources/riscv64.conf#L30 here you can find the links, took me some time to dig this up :D07:14:33
@lab.8916100448256:matrix.org12bsorry I did not see you posted the bootoader link already07:14:37
@roedimqf:ruhr-uni-bochum.deMichaelhttps://github.com/orangepi-xunlong/orangepi-build/blob/36a2f27f9b2d064331e4e22ccd384e0d269dbd31/external/config/sources/families/ky.conf might also be interesting07:21:09
@lab.8916100448256:matrix.org12bI meant in the repo link I posted07:21:49
@lab.8916100448256:matrix.org12bSorry a little bit early for me. I'm not fully awake.07:22:40
@roedimqf:ruhr-uni-bochum.deMichael no worries 07:22:48
@lab.8916100448256:matrix.org12bAnd I'm working on something else right now. But I will come back NixOS on the RV later this week. 07:24:37
@lab.8916100448256:matrix.org12b* And I'm working on something else right now. But I will come back NixOS on the RV2 later this week. 07:24:45
@refmut:matrix.orgrefmut joined the room.08:02:36
@fgaz:matrix.orgfgaz
In reply to @alex:tunstall.xyz

I tried updating my VF2 to latest nixos-unstable (as of ~1 week ago) and now it won't boot...

Unhandled exception: Instruction access fault
EPC: ffffffa700140304 RA: 00000000cb55d034 TVAL: ffffffa700140304
EPC: ffffffa67359d304 RA: 000000003e9ba034 reloc adjusted

(Then a dump of the registers.)

It seems like there's something wrong with the bootloader on the EFI partition.
Switching back to the bootloader of the previous version worked.

Change that broke the system: https://github.com/AlexandreTunstall/nixos-riscv/commit/b50ef62175853684441a9e312aa12218f5be79d3
Good Nixpkgs revision: 2726f127c15a4cc9810843b96cad73c7eb39e443
Bad Nixpkgs revision: 4cba8b53da471aea2ab2b0c1f30a81e7c451f4b6

Has anyone else booted such a recent Nixpkgs version?

I just ran into this problem after upgrading kernel and u-boot... I'm already using generic-extlinux-compatible though :-/
12:24:59
@lab.8916100448256:matrix.org12b changed their profile picture.15:31:10
@lab.8916100448256:matrix.org12b changed their profile picture.17:17:55
@lab.8916100448256:matrix.org12b changed their profile picture.17:33:49
2 Apr 2025
@zebreus:zebre.uszebreus changed their profile picture.10:56:22
6 Apr 2025
@iova:matrix.orgiova joined the room.05:09:51
@iova:matrix.orgiova 12b did you end up getting anywhere with the rv2 05:29:14
@iova:matrix.orgiovathink im gonna give it a go at nix-ifying it tomorrow if i have time05:29:42
@lab.8916100448256:matrix.org12bNo, I was too busy with other things to focus on that.06:01:22
@roedimqf:ruhr-uni-bochum.deMichael 12b: just pushed https://github.com/sehraf/x1-riscv-arch-image-builder
Currently get's into kernel but (probably?) hangs without working console
10:10:24
@roedimqf:ruhr-uni-bochum.deMichael * 12b: just pushed https://github.com/sehraf/x1-riscv-arch-image-builder
Currently it gets into kernel but (probably?) hangs without working console
10:14:14

Show newer messages


Back to Room ListRoom Version: 10