!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

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

Load older messages


SenderMessageTime
4 Oct 2025
@qyliss:fairydust.spaceAlyssa RossHas anyone looked into why nodejs tests fail, or why git tests hang?15:40:27
5 Oct 2025
@rosssmyth:matrix.orgrosssmyth joined the room.01:48:01
@rosssmyth:matrix.orgrosssmythIs there any easy way to get this program on my linux laptop get get my board running? https://github.com/NixOS/nixos-hardware/blob/3441b5242af7577230a78ffb03542add264179ab/starfive/visionfive/v2/firmware.nix#L56-L63 I guess I can just pull the older nixos-hardware before this was added part of a module 17:51:50
@dramforever:matrix.orgdramforeverdo you have a config17:52:50
@dramforever:matrix.orgdramforeverlike, already built image or something17:53:00
@rosssmyth:matrix.orgrosssmythYeah I built the image and used dd to put it on my sd card, but it's not booting so I assume I need to update the fimware over spi or something17:53:45
@rosssmyth:matrix.orgrosssmythAt least that is what the readme and wiki seem to imply17:53:58
@dramforever:matrix.orgdramforeverwhat does the serial port say when it's "not booting"17:54:35
@dramforever:matrix.orgdramforever get firmware: nix build .#nixosConfigurations.your-thing.config.system.build.uboot 17:58:52
@dramforever:matrix.orgdramforeverdo you have anything that boots on the visionfive 217:58:58
@dramforever:matrix.orgdramforeverlike, to u-boot, or to linux17:59:05
@dramforever:matrix.orgdramforever sd card boot is finicky on jh7110 sadly but your thing should have shipped with some u-boot in spi flash 17:59:44
@dramforever:matrix.orgdramforeverbut you'll need to flip the switches to spi boot for that18:00:07
@dramforever:matrix.orgdramforeverof course nobody ever understand what the switches mean so i've sort of always just removed the sd card and flipped it around until i get u-boot18:00:49
@dramforever:matrix.orgdramforever* of course nobody ever remembers what the switches mean so i've sort of always just removed the sd card and flipped it around until i get u-boot18:00:58
@dramforever:matrix.orgdramforeverhow to update spi flash inside u-boot from files on sd card https://docs.u-boot.org/en/latest/board/starfive/visionfive2.html#flashing-a-new-u-boot-version18:10:02
@dramforever:matrix.orgdramforever* how to update spi flash inside u-boot from files on sd card: https://docs.u-boot.org/en/latest/board/starfive/visionfive2.html#flashing-a-new-u-boot-version18:10:05
@rosssmyth:matrix.orgrosssmythI've not looked, I just assumed that if it worked it would pull and IP address and I could connect via ssh18:47:29
@rosssmyth:matrix.orgrosssmythI'll check18:47:32
@rosssmyth:matrix.orgrosssmyth* I've not looked, I just assumed that if it worked it would pull an IP address and I could connect via ssh18:48:09
@rosssmyth:matrix.orgrosssmythOh yeah, I just needed to set the dip switches18:56:44
@rosssmyth:matrix.orgrosssmythThanks!18:57:40
6 Oct 2025
@rosssmyth:matrix.orgrosssmyth Trying to run nixos-install to get an image onto my VisionFive's NVME drive. It's a pretty minimal image but I did add ripgrep, fd, and helix to it. But it seems to fail the build at "bootstrap-stage4-gcc-wrapper" 22:17:10
@rosssmyth:matrix.orgrosssmythimage.png
Download image.png
22:17:17
@rosssmyth:matrix.orgrosssmyth * Trying to run nixos-install to get an image onto my VisionFive's NVME drive from the SD card. It's a pretty minimal image but I did add ripgrep, fd, and helix to it. But it seems to fail the build at "bootstrap-stage4-gcc-wrapper" 22:18:01
@rosssmyth:matrix.orgrosssmyth

Whole thing is

{
  inputs.nixpkgs.url = "nixpkgs/nixos-25.05";
  inputs.nixos-hardware.url = "github:nixos/nixos-hardware";

  outputs = { self, nixpkgs, nixos-hardware, flake-utils, ... }:
    {
       	nixosConfigurations.riscy = nixpkgs.lib.nixosSystem {
            modules = [
            ({ config, pkgs, ... }: {
              imports = [
                nixos-hardware.nixosModules.starfive-visionfive-2
                ./hardware-configuration.nix
];
	
              services.sshd.enable = true;
              # If you want to use ssh set a password
              users.users.rsmyth = {
                isNormalUser = true;
                extraGroups = [ "wheel" "input" ];
              };
              users.users.rsmyth.hashedPassword = "$y$j9T$pANX.P1IbyQB2xriv3ncp/$AnA0t/0WrMitJYBivHKlcdp0d8lqbCuR0yN1zvOnDFA";
              networking.interfaces.end0.useDHCP = true;
              networking.interfaces.end1.useDHCP = true;

              environment.systemPackages = [ pkgs.ripgrep pkgs.helix pkgs.fd pkgs.git pkgs.jujutsu ];

              system.stateVersion = "24.05";
            })
];
          system = "riscv64-linux";
        };
      };
}
22:18:50
@rosssmyth:matrix.orgrosssmythIs it generally a better idea to cross-compile the image from my x86 machines then upload them to my risc box? I've tried two runs so far and both failed. 22:19:57
@rosssmyth:matrix.orgrosssmythBut building the initial image for the SD card went fine22:20:07
@alex:tunstall.xyzAlex
In reply to @rosssmyth:matrix.org
image.png
Sounds to me like an OoM kill. What do the kernel logs say?
23:03:32
@alex:tunstall.xyzAlex If the cause is OoM, try building with -j1 23:04:18

Show newer messages


Back to Room ListRoom Version: 10