!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 https://github.com/orgs/NixOS/teams/risc-v70 Servers

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


SenderMessageTime
27 Jan 2025
@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

Show newer messages


Back to Room ListRoom Version: 10