!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

208 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-v64 Servers

Load older messages


SenderMessageTime
27 Jan 2025
@liberodark:matrix.orgliberodarkProbably better to use specific kernel for that18:02:44
@liberodark:matrix.orgliberodarkOn my side im use this : https://github.com/MichaIng/linux18:06:40
@liberodark:matrix.orgliberodarkAlso you can use 6.13 & HDMI patch directly.18:08:32
@liberodark:matrix.orgliberodarkJust to be sure that is correct way : 19:24:08
@liberodark:matrix.orgliberodark

Download image :
wget https://github.com/misuzu/nixos-vf2/releases/download/0.8/nixos-native-jh7110-starfive-visionfive-2-v1.3b.img.zstd

Extract image :
zstd -d nixos-native-jh7110-starfive-visionfive-2-v1.3b.img.zstd

Prepare Disk

nix-shell -p gptfdisk
sgdisk -g --clear --set-alignment=1 \
    --new=1:4096:8191 --change-name=1:'spl' \
    --typecode=1:2e54b353-1271-4842-806f-e436d6af6985 \
    --new=2:8192:40959 --change-name=2:'opensbi-uboot' \
    --typecode=2:5b193300-fc78-40cd-8002-e86c45580b47 \
    --new=3:40960:+256M --change-name=3:'efi' \
    --typecode=3:C12A7328-F81F-11D2-BA4B-00A0C93EC93B \
    --largest-new=4 --change-name=4:'root' \
    /dev/sdb

Download files :

wget https://github.com/starfive-tech/VisionFive2/releases/download/JH7110_VF2_515_v5.13.1/u-boot-spl.bin.normal.out
wget https://github.com/starfive-tech/VisionFive2/releases/download/JH7110_VF2_515_v5.13.1/visionfive2_fw_payload.img

Copy files :

dd if=u-boot-spl.bin.normal.out of=/dev/sdb1 bs=4096 status=progress
dd if=visionfive2_fw_payload.img of=/dev/sdb2 bs=4096 status=progress

Install NixOS

losetup -P /dev/loop0 nixos-native-jh7110-starfive-visionfive-2-v1.3b.img
dd if=/dev/loop0p1 of=/dev/sdb3 bs=1M status=progress
dd if=/dev/loop0p2 of=/dev/sdb4 bs=1M status=progress
losetup -d /dev/loop0
19:25:16
@misuzu:matrix.orgmisuzuJust dd is fine19:25:46
@liberodark:matrix.orgliberodarkOr have missing something ?19:25:57
@misuzu:matrix.orgmisuzuYou need u-boot on spi for booting from nvme19:26:22
@liberodark:matrix.orgliberodarkI can boot on debian so that confirm u-boot is ok for nixos or not .19:27:02
@liberodark:matrix.orgliberodark* I can boot on debian so that confirm u-boot is ok for nixos or not ?19:27:03
@liberodark:matrix.orgliberodarknixos need specific u-boot version ?19:27:17
@misuzu:matrix.orgmisuzuI've only tested upstream u-boot19:28:03
@liberodark:matrix.orgliberodarkIs not booting for me ☹️19:30:26
@liberodark:matrix.orgliberodarkAnd firmware is updated19:30:42
@misuzu:matrix.orgmisuzuWrite u-boot to spi and just dd the image to an sdcard19:31:41
@misuzu:matrix.orgmisuzu
env default -a
saveenv

use these commands in u-boot to reset configuration

19:32:27
@misuzu:matrix.orgmisuzuAre you sure you're using the upstream u-boot and not the vendor one?19:39:03
30 Jan 2025
@hive:the-apothecary.clubtau changed their profile picture.01:29:56
@alex:tunstall.xyzAlex

builder for '/nix/store/bfi6adh09pxf70nn8gpsvpj948nplg1k-swtpm-0.10.0.drv' failed with exit code 2

(Indirectly needed by systemd and possibly other essentials.)

From a very recent NixOS unstable (see https://github.com/AlexandreTunstall/nixos-riscv/commit/1359bceb815362df48acae824ffb1c6d6ca862c3).
It's failing in checkPhase, so it could just be an unreliable test suite.

Has anyone else tried building this derivation yet?

11:01:58
@misuzu:matrix.orgmisuzuhttps://github.com/NixOS/nixpkgs/pull/37609712:26:23
@misuzu:matrix.orgmisuzuhttps://hydra.ztier.in/build/327212:27:50
@misuzu:matrix.orgmisuzuBuild fine on vf2 https://hydra.ztier.in/build/204112:29:22
@misuzu:matrix.orgmisuzu* Builds fine on vf2 https://hydra.ztier.in/build/204112:58:16
@alex:tunstall.xyzAlexIs that fix needed for native builds too? I'm building full native.14:18:52
@alex:tunstall.xyzAlexI'll try building it again in a few days time I guess.14:23:02
@alex:tunstall.xyzAlex2025-01-30-142220_1200x784_scrot.png
Download 2025-01-30-142220_1200x784_scrot.png
14:23:04
@alex:tunstall.xyzAlexnix-output-monitor <3 telling me that now's not a good time to restart the build.14:24:13
@misuzu:matrix.orgmisuzu
In reply to@alex:tunstall.xyz
Is that fix needed for native builds too? I'm building full native.
Only cross
16:54:47
@skeuchel:matrix.orgSteven KeuchelBuilds fine natively on my side too.17:01:57
31 Jan 2025
@zimbatm:numtide.comJonas Chevalier changed their display name from Jonas Chevalier to Jonas Chevalier (FOSDEM).19:12:17

Show newer messages


Back to Room ListRoom Version: 10