!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

233 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-v70 Servers

Load older messages


SenderMessageTime
27 Jan 2025
@mel:rnrd.euMelill get back to the th chips later maybe ill have some specific problems again, right now im back to the starfives lol :301:01:58
@mel:rnrd.euMel
In reply to @rosscomputerguy:matrix.org
It's done. After a month, I have NixOS built natively for RISC-V.
oh hell yea!! do u have ur configuration public somewhere ? ive been trying to do something similar recently meow!!
01:02:59
@rosscomputerguy:matrix.orgTristan Ross
In reply to @mel:rnrd.eu
oh hell yea!! do u have ur configuration public somewhere ? ive been trying to do something similar recently meow!!
https://github.com/RossComputerGuy/dotfiles
01:03:28
@rosscomputerguy:matrix.orgTristan Ross
.File descriptor 3 (/nix/store/58jvk2n6gfri2j7gkndzfqvn2xm617ms-initrd-fsinfo) leaked on lvm invocation. Parent PID 1: /nix/store/4nc7aajxlpclfb1gx0hp5d1kswdjprb3-extra-utilsh
File descriptor 8 (/dev/console) leaked on lvm invocation. Parent PID 1: /nix/store/4nc7aajxlpclfb1gx0hp5d1kswdjprb3-extra-utils/bin/ash
File descriptor 9 (/dev/console) leaked on lvm invocation. Parent PID 1: /nix/store/4nc7aajxlpclfb1gx0hp5d1kswdjprb3-extra-utils/bin/ash

Fails to boot

02:01:13
@rosscomputerguy:matrix.orgTristan Ross
Timed out waiting for device /dev/nvme0n1p2, trying to mount anyway.
mounting /dev/nvme0n1p2 on /...
[   43.288631] /dev/nvme0n1p2: Can't lookup blockdev
mount: mounting /dev/nvme0n1p2 on /mnt-root/ failed: No such file or directory

An error occurred in stage 1 of the boot process, which must mount the
root filesystem on `/mnt-root' and then start stage 2.  Press one
of the following keys:

  i) to launch an interactive shell
  f) to start an interactive shell having pid 1 (needed if you want to
     start stage 2's init manually)
  r) to reboot immediately
  *) to ignore the error and continue
f

Hmm, this is taking awhile

02:06:12
@rosscomputerguy:matrix.orgTristan Ross
loading module pcie-starfive...
[    3.350504] pcie-starfive 2b000000.pcie: error -ENODEV: failed to get valid pcie domain
[    3.358768] pcie-starfive 2c000000.pcie: error -ENODEV: failed to get valid pcie domain

This seems to be a problem

04:57:10
@liberodark:matrix.orgliberodarkHi, I want to install nixos on VisionFive 2 for make build.12:12:20
@liberodark:matrix.orgliberodark* Hi, I want to install nixos on VisionFive 2 for make builder.12:12:27
@liberodark:matrix.orgliberodarkYou have a way for that ?12:12:41
@liberodark:matrix.orgliberodarkOr i need to use debian for build inside with nix ?12:16:34
@misuzu:matrix.orgmisuzuYou can try these images https://github.com/misuzu/nixos-vf2/releases/tag/0.8 But you'll need upstream u-boot on spi I'm using https://github.com/misuzu/nixos-vf2/releases/download/0.7/u-boot-spl.bin.normal.out https://github.com/misuzu/nixos-vf2/releases/download/0.7/visionfive2_fw_payload.img14:12:27
@rosscomputerguy:matrix.orgTristan Ross
In reply to @liberodark:matrix.org
Hi, I want to install nixos on VisionFive 2 for make build.
I just used the SD card as an installer and do things like normal
14:21:51
@liberodark:matrix.orgliberodarkIm using only a NVME if you have iso for try this.14:22:33
@liberodark:matrix.orgliberodark* Im using only a NVME if you have iso for try this?14:22:38
@alex:tunstall.xyzAlex
In reply to @liberodark:matrix.org
Im using only a NVME if you have iso for try this?
For NVMe boot, you need the SPL (u-boot + OpenSBI) in flash (recommended), eMMC, or microSD.
With all that done, most VF2 images should work fine (e.g. the one misuzu linked).
14:25:27
@alex:tunstall.xyzAlex * For NVMe boot, you need the SPL (u-boot + OpenSBI) in flash (recommended), eMMC, or microSD.
With that done, most VF2 images should work fine (e.g. the one misuzu linked).
14:25:49
@liberodark:matrix.orgliberodarkIm on Debian 13 actually on VF214:26:10
@liberodark:matrix.orgliberodarkBut i want to give this onto builder for free.14:26:35
@alex:tunstall.xyzAlexCould you explain exactly what you're trying to do? Run NixOS on your VF2?14:26:58
@liberodark:matrix.orgliberodarkExactely14:27:10
@liberodark:matrix.orgliberodarkFor build app natively.14:27:38
@alex:tunstall.xyzAlexFrom Debian 13, you can follow the vendor's instructions to write the SPL into flash.14:27:40
@liberodark:matrix.orgliberodarkYou have generated iso on your side ?14:28:13
@liberodark:matrix.orgliberodarkor img ?14:28:18
@alex:tunstall.xyzAlex
In reply to @misuzu:matrix.org
You can try these images https://github.com/misuzu/nixos-vf2/releases/tag/0.8
But you'll need upstream u-boot on spi
I'm using https://github.com/misuzu/nixos-vf2/releases/download/0.7/u-boot-spl.bin.normal.out https://github.com/misuzu/nixos-vf2/releases/download/0.7/visionfive2_fw_payload.img
See this message
14:28:27
@alex:tunstall.xyzAlex The nixos-native-*.img.zstd needs to be inflated and can then be flashed onto the disk (not onto a partition). 14:30:19
@liberodark:matrix.orgliberodarknative is native build & cross is cross-build ?14:50:21
@misuzu:matrix.orgmisuzuYep, both should work 14:53:30
@liberodark:matrix.orgliberodarkOk im go to test tonight.14:55:38
@misuzu:matrix.orgmisuzuThey use mainline kernel and mainline kernel doesn't have hdmi support so you'll have to use uart or ssh 14:58:39

Show newer messages


Back to Room ListRoom Version: 10