| 27 Jan 2025 |
liberodark | Probably better to use specific kernel for that | 18:02:44 |
liberodark | On my side im use this : https://github.com/MichaIng/linux | 18:06:40 |
liberodark | Also you can use 6.13 & HDMI patch directly. | 18:08:32 |
liberodark | Just to be sure that is correct way : | 19:24:08 |
liberodark | 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 | Just dd is fine | 19:25:46 |
liberodark | Or have missing something ? | 19:25:57 |
misuzu | You need u-boot on spi for booting from nvme | 19:26:22 |
liberodark | I can boot on debian so that confirm u-boot is ok for nixos or not . | 19:27:02 |
liberodark | * I can boot on debian so that confirm u-boot is ok for nixos or not ? | 19:27:03 |
liberodark | nixos need specific u-boot version ? | 19:27:17 |
misuzu | I've only tested upstream u-boot | 19:28:03 |
liberodark | Is not booting for me ☹️ | 19:30:26 |
liberodark | And firmware is updated | 19:30:42 |
misuzu | Write u-boot to spi and just dd the image to an sdcard | 19:31:41 |
misuzu | env default -a
saveenv
use these commands in u-boot to reset configuration
| 19:32:27 |
misuzu | Are you sure you're using the upstream u-boot and not the vendor one? | 19:39:03 |
| 30 Jan 2025 |
| tau changed their profile picture. | 01:29:56 |
Alex |
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 | https://github.com/NixOS/nixpkgs/pull/376097 | 12:26:23 |
misuzu | https://hydra.ztier.in/build/3272 | 12:27:50 |
misuzu | Build fine on vf2 https://hydra.ztier.in/build/2041 | 12:29:22 |
misuzu | * Builds fine on vf2 https://hydra.ztier.in/build/2041 | 12:58:16 |
Alex | Is that fix needed for native builds too? I'm building full native. | 14:18:52 |
Alex | I'll try building it again in a few days time I guess. | 14:23:02 |
Alex |  Download 2025-01-30-142220_1200x784_scrot.png | 14:23:04 |
Alex | nix-output-monitor <3 telling me that now's not a good time to restart the build. | 14:24:13 |
misuzu | In reply to@alex:tunstall.xyz Is that fix needed for native builds too? I'm building full native. Only cross | 16:54:47 |
Steven Keuchel | Builds fine natively on my side too. | 17:01:57 |
| 31 Jan 2025 |
| Jonas Chevalier changed their display name from Jonas Chevalier to Jonas Chevalier (FOSDEM). | 19:12:17 |