!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

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

Load older messages


SenderMessageTime
5 Jan 2025
@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
@alex:tunstall.xyzAlex
In reply to @rosscomputerguy:matrix.org
https://github.com/RossComputerGuy/dotfiles/blob/master/flake.nix#L213-L215
Using nix flake metadata, I count 5 versions of Nixpkgs amongst your inputs (2 of which are coincidentally the same).
00:26:37
@rosscomputerguy:matrix.orgTristan Ross Does that matter when you use overlays only and don't use packages or legacyPackages of the inputs? 00:29:27
@alex:tunstall.xyzAlex

I don't think so.

Unfortunately I have no idea how to profile Nix evaluations... I've always been able to just throw more RAM at the problem (since it's only been a problem in VMs for me so far).

00:30:35
@rosscomputerguy:matrix.orgTristan RossYeah, I'm not sure how to profile evals too00:31:06
@rosscomputerguy:matrix.orgTristan RossIt would really help if I knew how to for some of my other projects lol00:31:27
@alex:tunstall.xyzAlex I guess the old binary search trick could work...
Remove half of the code and see how it affects memory usage.
Then focus your search onto the more memory-consuming half and repeat.
00:35:54
@rosscomputerguy:matrix.orgTristan Rosshttps://github.com/RossComputerGuy/dotfiles/runs/35174538512 huh the x86_64-linux cross is able to evail within Garnix's 5GB limit but the full system cannot00:37:51
@rosscomputerguy:matrix.orgTristan Ross * https://github.com/RossComputerGuy/dotfiles/runs/35174538512 huh the x86_64-linux cross is able to eval within Garnix's 5GB limit but the full system cannot 00:37:57
@blitz:chat.x86.lol@blitz:chat.x86.lol
In reply to @alex:tunstall.xyz
I guess the old binary search trick could work...
Remove half of the code and see how it affects memory usage.
Then focus your search onto the more memory-consuming half and repeat.
Memory usage is one of the major pain points of Nix. 😞
01:03:36
@rosscomputerguy:matrix.orgTristan Ross
error:
       … while calling the 'head' builtin
         at /nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/lib/attrsets.nix:1574:11:
         1573|         || pred here (elemAt values 1) (head values) then
         1574|           head values
             |           ^
         1575|         else

       … while evaluating the attribute 'value'
         at /nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `system.systemBuilderArgs':

       … while evaluating definitions from `/nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/nixos/modules/system/activation/activatable-system.nix':

       … while evaluating the option `system.activationScripts.etc.text':

       … while evaluating definitions from `/nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/nixos/modules/system/etc/etc-activation.nix':

       … while evaluating definitions from `/nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/nixos/modules/system/etc/etc.nix':

       … while evaluating the option `environment.etc."NetworkManager/VPN/nm-openconnect-service.name".source':

       … while evaluating definitions from `/nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/nixos/modules/services/networking/networkmanager.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: cannot bootstrap GHC on this platform ('riscv64-linux' with libc 'defaultLibc')

I cannot find where this etc file is defined lol

02:02:49
@rosscomputerguy:matrix.orgTristan RossOh, it's inside the derivation02:04:15
@rosscomputerguy:matrix.orgTristan RossWebkit requires GHC somewhere and it throws that error, I know there's a way to get around that but just trying to get the system to build purely02:05:09
@rosscomputerguy:matrix.orgTristan RossOh, shellcheck is required which uses GHC02:08:01
@rosscomputerguy:matrix.orgTristan Ross* Oh, shellcheck is required which uses GHC deep in the chain02:08:13

Show newer messages


Back to Room ListRoom Version: 10