5 Oct 2025 |
dramforever | of 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-boot | 18:00:49 |
dramforever | * 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-boot | 18:00:58 |
dramforever | 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-version | 18:10:02 |
dramforever | * 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-version | 18:10:05 |
rosssmyth | I've not looked, I just assumed that if it worked it would pull and IP address and I could connect via ssh | 18:47:29 |
rosssmyth | I'll check | 18:47:32 |
rosssmyth | * I've not looked, I just assumed that if it worked it would pull an IP address and I could connect via ssh | 18:48:09 |
rosssmyth | Oh yeah, I just needed to set the dip switches | 18:56:44 |
rosssmyth | Thanks! | 18:57:40 |
6 Oct 2025 |
rosssmyth | 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 |  Download image.png | 22:17:17 |
rosssmyth | * 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 | 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 | Is 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 | But building the initial image for the SD card went fine | 22:20:07 |
Alex | 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 | If the cause is OoM, try building with -j1 | 23:04:18 |
Tristan Ross | That is 100% an OOM kill | 23:08:47 |
7 Oct 2025 |
rosssmyth | okie dokie | 01:01:02 |
rosssmyth | Retrying with -j 1 | 01:15:28 |
rosssmyth | Do most people cross-compile or build on host? | 01:15:44 |
Alex | In reply to @rosssmyth:matrix.org Do most people cross-compile or build on host? Both are viable. | 01:16:53 |
rosssmyth | I'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 |
Tristan Ross | I built on my VF2 | 01:20:36 |
Tristan Ross | Took about a month | 01:20:40 |
fgaz | since you have a nvme drive you could use it as swap | 09:51:34 |
fgaz | and as build directory | 09:52:20 |
Alex | As a side note, you should definitely not be using tmpfs on /tmp when building NixOS. | 10:25:48 |
14 Oct 2025 |
| pinpox changed their display name from pinpox to reaktor. | 21:13:33 |
| pinpox changed their display name from reaktor to pinpox. | 21:15:19 |