!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

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

Load older messages


SenderMessageTime
1 Jan 2025
@jopejoe1:matrix.orgjopejoe1 changed their display name from jopejoe1 [4094] to jopejoe1.23:29:29
@scm:sven.ccscm left the room.23:53:47
4 Jan 2025
@rosscomputerguy:matrix.orgTristan RossWhy does nixos-hardware use the upstream u-boot instead of the Starfive fork for the VisionFive 2? I'm looking to boot from an NVME and it looks like using the fork would be better.15:59:03
@alex:tunstall.xyzAlex
In reply to @rosscomputerguy:matrix.org
Why does nixos-hardware use the upstream u-boot instead of the Starfive fork for the VisionFive 2? I'm looking to boot from an NVME and it looks like using the fork would be better.

Upstream is usually a better choice when the hardware support you need has been merged.

For extra hardware, applying patches onto upstream is a decent option because it helps test the patches before they get merged.

18:09:33
@rosscomputerguy:matrix.orgTristan RossYeah, I made this PR https://github.com/NixOS/nixos-hardware/pull/1296 to make overriding those things easier18:10:18
@rosscomputerguy:matrix.orgTristan RossAfter running into a few things which don't like RISC-V or cross compiling (lsd, nix output monitor, Prism Launcher, and lua-language-server), I seem to be making good progress.19:04:27
@alex:tunstall.xyzAlex
In reply to @rosscomputerguy:matrix.org
After running into a few things which don't like RISC-V or cross compiling (lsd, nix output monitor, Prism Launcher, and lua-language-server), I seem to be making good progress.
nix-output-monitor can be compiled if you can provide Nixpkgs a boot GHC
21:00:11
@rosscomputerguy:matrix.orgTristan Rosslol, I'm too lazy to go through that effort21:00:33
@rosscomputerguy:matrix.orgTristan RossI'm just trying to get my config to build for the first time via cross from aarch64 to riscv6421:00:54
@rosscomputerguy:matrix.orgTristan RossAlso, the VisionFive 2 isn't that powerful so not like I'm going to be doing much on it21:01:25
5 Jan 2025
@rosscomputerguy:matrix.orgTristan RossSuccessful build of my config for the VF2, time to try and get it building with COSMIC.02:33:37
@rosscomputerguy:matrix.orgTristan Ross330 builds02:35:29
@rosscomputerguy:matrix.orgTristan RossI couldn't get COSMIC but I did get my system to build and boot05:52:25
@rosscomputerguy:matrix.orgTristan Ross
jegan% lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
mtdblock0    31:0    0   960K  0 disk
mtdblock1    31:1    0    64K  0 disk
mtdblock2    31:2    0    15M  0 disk
mmcblk1     179:0    0 238.3G  0 disk
Ãmmcblk1p1 179:1    0     2M  0 part
├─mmcblk1p2 179:2    0     4M  0 part
└─mmcblk1p3 179:3    0 238.3G  0 part /nix/store
                                      /
nvme0n1     259:0    0 931.5G  0 disk

Looks like the NVME is present

05:52:39
@alex:tunstall.xyzAlex
In reply to @rosscomputerguy:matrix.org
jegan% lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
mtdblock0    31:0    0   960K  0 disk
mtdblock1    31:1    0    64K  0 disk
mtdblock2    31:2    0    15M  0 disk
mmcblk1     179:0    0 238.3G  0 disk
Ãmmcblk1p1 179:1    0     2M  0 part
├─mmcblk1p2 179:2    0     4M  0 part
└─mmcblk1p3 179:3    0 238.3G  0 part /nix/store
                                      /
nvme0n1     259:0    0 931.5G  0 disk

Looks like the NVME is present

NB: this doesn't mean it's bootable.
07:53:46
@rosscomputerguy:matrix.orgTristan Ross
In reply to @alex:tunstall.xyz
NB: this doesn't mean it's bootable.
I know, I'll need to pull in the Starfive OpenSBI and u-boot according to the forums.
14:42:25
@rosscomputerguy:matrix.orgTristan RossIt's at least progress, when I tried this in the past it wasn't even showing up in lsblk.14:43:00
@alex:tunstall.xyzAlexProbably because the kernel you'd built at the time didn't have the patches needed for PCIe.16:15:32
@rosscomputerguy:matrix.orgTristan RossYeah, I'm currently trying to update to the VisionFive2 v5.13.1 software16:42:17
@rosscomputerguy:matrix.orgTristan Rosshttps://github.com/starfive-tech/VisionFive2/releases/tag/JH7110_VF2_515_v5.13.116:42:22
@rosscomputerguy:matrix.orgTristan RossIt seems the v3.x.x set fixed a few of the issues for NVMEs16:43:35
@rosscomputerguy:matrix.orgTristan RossBut it'll probably be better to work with the latest stuff16:43:52
@rosscomputerguy:matrix.orgTristan Ross
/nix/store/bq0afwrmhgy6hxx7amh7sv59gzclzmxi-riscv64-unknown-linux-gnu-binutils-2.43.1/bin/riscv64-unknown-linux-gnu-ld.bfd: warning: u-boot-spl has a LOAD segment with RWX permissions
  OBJCOPY spl/u-boot-spl-nodtb.bin
  SYM     spl/u-boot-spl.sym
  COPY    spl/u-boot-spl.bin
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
cp: cannot stat 'spl/u-boot-spl.bin.normal.out': No such file or directory
cp: cannot stat 'u-boot.itb': No such file or directory

Huh, the files u-boot is trying to install don't exist

16:53:13
@rosscomputerguy:matrix.orgTristan RossOh, the nvme doesn't show up if your USB C power supply isn't capable enough lol.19:23:43
@blitz:chat.x86.lol@blitz:chat.x86.lol I would love to have time to work on RISC-V stuff again, but that probably only happens if someone needs professional help :( 22:39:20
@rosscomputerguy:matrix.orgTristan RossDamn my config is too big to eval on the VF2, I had to make a 32GB swap file and it's starting to make more progress.23:50:25
@alex:tunstall.xyzAlex

Are you evaluating multiple versions of Nixpkgs?

Needing more than 4 GiB for NixOS evaluation is very unusual...

23:51:28
6 Jan 2025
@rosscomputerguy:matrix.orgTristan RossI don't think so00:04:10
@rosscomputerguy:matrix.orgTristan Rosshttps://github.com/RossComputerGuy/dotfiles/blob/master/flake.nix#L213-L21500:04:43
@rosscomputerguy:matrix.orgTristan RossDang, 30 - 40 minutes to eval until I got a GHC error00:21:47

Show newer messages


Back to Room ListRoom Version: 10