| 4 Oct 2025 |
Alyssa Ross | Has anyone looked into why nodejs tests fail, or why git tests hang? | 15:40:27 |
| 5 Oct 2025 |
| rosssmyth joined the room. | 01:48:01 |
rosssmyth | Is 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 | do you have a config | 17:52:50 |
dramforever | like, already built image or something | 17:53:00 |
rosssmyth | Yeah 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 something | 17:53:45 |
rosssmyth | At least that is what the readme and wiki seem to imply | 17:53:58 |
dramforever | what does the serial port say when it's "not booting" | 17:54:35 |
dramforever | get firmware: nix build .#nixosConfigurations.your-thing.config.system.build.uboot | 17:58:52 |
dramforever | do you have anything that boots on the visionfive 2 | 17:58:58 |
dramforever | like, to u-boot, or to linux | 17:59:05 |
dramforever | 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 | but you'll need to flip the switches to spi boot for that | 18:00:07 |
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 |