!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

195 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v61 Servers

Load older messages


SenderMessageTime
5 Oct 2025
@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
@rosscomputerguy:matrix.orgTristan RossThat is 100% an OOM kill23:08:47
7 Oct 2025
@rosssmyth:matrix.orgrosssmythokie dokie01:01:02
@rosssmyth:matrix.orgrosssmythRetrying with -j 101:15:28
@rosssmyth:matrix.orgrosssmythDo most people cross-compile or build on host?01:15:44
@alex:tunstall.xyzAlex
In reply to @rosssmyth:matrix.org
Do most people cross-compile or build on host?
Both are viable.
01:16:53
@rosssmyth:matrix.orgrosssmythI'm building on host because it means I can use my desktop at the same time. But on host take a very long time 01:19:51
@rosscomputerguy:matrix.orgTristan RossI built on my VF201:20:36
@rosscomputerguy:matrix.orgTristan RossTook about a month01:20:40
@fgaz:matrix.orgfgazsince you have a nvme drive you could use it as swap09:51:34
@fgaz:matrix.orgfgazand as build directory09:52:20
@alex:tunstall.xyzAlex As a side note, you should definitely not be using tmpfs on /tmp when building NixOS. 10:25:48
14 Oct 2025
@pinpox:matrix.orgpinpox changed their display name from pinpox to reaktor.21:13:33
@pinpox:matrix.orgpinpox changed their display name from reaktor to pinpox.21:15:19

There are no newer messages yet.


Back to Room ListRoom Version: 10