!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

236 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
@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
@alex:tunstall.xyzAlex HDMI on the vendor's upstream branch is (was?) completely broken too.
The vendor images with working HDMI use some older version and have disabled most of the kernel flags.
16:40:33
@alex:tunstall.xyzAlex * HDMI on the vendor's "upstream" branch is (was?) completely broken too.
The vendor images with working HDMI use some older Linux version and have disabled most of the kernel flags.
16:41:05
@liberodark:matrix.orgliberodarkYep have see is not upstream that not really good for now.18:02:25
@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

Show newer messages


Back to Room ListRoom Version: 10