!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

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

You have reached the beginning of time (for this room).


SenderMessageTime
1 Aug 2023
@0x4a6f:matrix.org[0x4A6F] changed the history visibility to "world_readable" from "shared".19:07:15
@misuzu:matrix.orgmisuzu
In reply to @alex:tunstall.xyz
Could this be because DMA isn't working properly?

Who knows, dmesg says it's working

[    4.115788] starfive-dwmac 16040000.ethernet: DMA HW capability register supported
[    4.115960] starfive-dwmac 16040000.ethernet: Using 40/40 bits DMA host/device width
[   38.844070] starfive-dwmac 16040000.ethernet: Failed to reset the dma
[   38.850621] starfive-dwmac 16040000.ethernet end1: stmmac_hw_setup: DMA engine initialization failed
19:15:01
@misuzu:matrix.orgmisuzuI'm only using end019:15:25
@alex:tunstall.xyzAlex
starfive-dwmac 16040000.ethernet: Failed to reset the dma
starfive-dwmac 16040000.ethernet end1: stmmac_hw_setup: DMA engine initialization failed
starfive-dwmac 16040000.ethernet end1: __stmmac_open: Hw setup failed

Mine appears to be broken and I get poor network performance despite end1 also being 1Gb/s.

19:20:22
@alex:tunstall.xyzAlexNevermind, I got confused: I'm also only using end0.19:21:56
@raitobezarius:matrix.orgraitobezarius misuzu: 22:36:49
@raitobezarius:matrix.orgraitobezariusimage.png
Download image.png
22:36:50
@raitobezarius:matrix.orgraitobezariuson vendor firmware22:36:52
@raitobezarius:matrix.orgraitobezariuswith the nixos-cross-image-efi22:36:59
@raitobezarius:matrix.orgraitobezariussame SD card that works with upstream firmware22:37:21
@raitobezarius:matrix.orgraitobezarius I can ext2ls 22:38:43
@raitobezarius:matrix.orgraitobezariusok testing on another VF2 with a eMMC instead of a SD card, this boots…23:11:13
@raitobezarius:matrix.orgraitobezariusstrange strange23:11:18
@raitobezarius:matrix.orgraitobezariusbut it has no NVMe23:11:23
@raitobezarius:matrix.orgraitobezariusand on the other VF2, it seems like ethernet works23:11:52
2 Aug 2023
@raitobezarius:matrix.orgraitobezarius misuzu: would you be open to a PR to add auto-growfs for the efi-image? 00:42:18
@raitobezarius:matrix.orgraitobezariusit seems like no pre-existing channel is created00:42:26
@raitobezarius:matrix.orgraitobezariusmaking it hard to use it as a install media for nixos00:42:30
@raitobezarius:matrix.orgraitobezariusand nix-channel --update will fail because it doesn't have enough place00:42:41
@raitobezarius:matrix.orgraitobezariuspinged adoptium folks on the openjdk stuff that's probably a big blocker in nixos: https://github.com/adoptium/temurin-build/issues/2726#issuecomment-166138091702:10:46
@raitobezarius:matrix.orgraitobezariusso we can get minecraft for free in riscv02:10:58
@alex:tunstall.xyzAlexIn the meantime, it isn't too hard to cross-compile OpenJDK and use it to bootstrap a native OpenJDK.05:11:03
@misuzu:matrix.orgmisuzu
In reply to @raitobezarius:matrix.org
misuzu: would you be open to a PR to add auto-growfs for the efi-image?
https://github.com/misuzu/nixos-vf2/blob/master/efi-image.nix#L5
You have to resize the partition though. I usually just building on my laptop and nix copy'ing it to vf2
06:02:32
@raitobezarius:matrix.orgraitobezariusgot my hand on a 64C RISC-V access temporarily11:46:47
@raitobezarius:matrix.orgraitobezarius
masterancpp@riscv-02:~$ lscpu
Architecture:          riscv64
  Byte Order:          Little Endian
CPU(s):                64
  On-line CPU(s) list: 0-63
NUMA:                  
  NUMA node(s):        4
  NUMA node0 CPU(s):   0-7,16-23
  NUMA node1 CPU(s):   8-15,24-31
  NUMA node2 CPU(s):   32-39,48-55
  NUMA node3 CPU(s):   40-47,56-63
11:46:50
@raitobezarius:matrix.orgraitobezariusrunning Ubuntu 22.1011:47:00
@raitobezarius:matrix.orgraitobezarius32GB of RAM though11:47:37

Show newer messages


Back to Room ListRoom Version: 10