| 16 Jun 2023 |
misuzu | In reply to @alex:tunstall.xyz
misuzu I've been trying to boot your NixOS VF2 configuration (https://github.com/misuzu/nixos-vf2) on my rev1.3b board, but it doesn't seem to be working (continuous red LED, no green LED). I've also tried the pre-built native image you've published, but that didn't help.
I don't have any way of connecting serial to debug it, so I thought I'd ask you a few questions that'll help me figure out what's going wrong:
- I flashed the latest firmware using the manufacturer's pre-compiled Debian image, could that be the cause? (The Debian image still boots.)
- Should I expect ethernet or HDMI out to work with your image? (I'm hoping to get the Linux console on HDMI.)
- Do the on-board LEDs blink when the system successfully boots, similarly to the Debian image?
- The GPIO switches on the board are currently set to boot from SD, since that worked for the Debian image; should they be set to something else?
1 vendor firmware should work 2 ethernet should work, didn't test hdmi 3 red led should be on 4 there's no firmware in the image, boot switch should be set to boot from spi | 11:14:49 |
j-k | has anyone recently tried m.2 ssd boot on VF2? | 11:19:55 |
misuzu | In reply to @j-k:matrix.org has anyone recently tried m.2 ssd boot on VF2? root on nvme works | 11:21:57 |
Alex | In reply to @misuzu:matrix.org 1 vendor firmware should work 2 ethernet should work, didn't test hdmi 3 red led should be on 4 there's no firmware in the image, boot switch should be set to boot from spi Thanks, after setting the switch to 00 ("Flash" according to the printing on the board), it boots and I now have a working SSH session.
FYI, my monitor is saying that there's no HDMI output. | 11:22:02 |
j-k | In reply to @misuzu:matrix.org root on nvme works thanks. I'll need to take some time to set this up!
I think I saw you mention the cache has some native bits cached right? So if I'm using the matching nixpkgs in the flake & helpers etc I shouldn't be rebuilding absolutely everything right?
| 11:26:36 |
misuzu | In reply to @j-k:matrix.org
thanks. I'll need to take some time to set this up!
I think I saw you mention the cache has some native bits cached right? So if I'm using the matching nixpkgs in the flake & helpers etc I shouldn't be rebuilding absolutely everything right?
https://github.com/misuzu/nixos-vf2/blob/master/flake.nix#L3 | 11:27:16 |
misuzu | Vendor u-boot doesn't support booting from nvme out of box, you'll have too type stuff to the console via uart :D | 11:28:29 |
misuzu | * Vendor u-boot doesn't support booting from nvme out of box, you'll have to type stuff to the console via uart :D | 11:30:01 |
misuzu | I've my efi partition on an sd card and root on an nvme | 11:30:44 |
j-k | In reply to @misuzu:matrix.org I've my efi partition on an sd card and root on an nvme would this still be required after using the bootloader flashing step at the top of the repo? | 11:31:34 |
misuzu | In reply to @j-k:matrix.org would this still be required after using the bootloader flashing step at the top of the repo? Yes, it will flash vendor u-boot | 11:31:59 |
misuzu | There's flash-visionfive2-upstream, but it's not working properly | 11:33:00 |
j-k | ah I see. for VF1 as far as I remember we were flashing a non-vendor u-boot because they had a weird setup and couldn't boot anything other than their silly ISOs | 11:33:06 |
raitobezarius | In reply to @misuzu:matrix.org There's flash-visionfive2-upstream, but it's not working properly hm why? | 11:33:24 |
raitobezarius | I tried it and it worked | 11:33:26 |
j-k | In reply to @misuzu:matrix.org Yes, it will flash vendor u-boot ok right, yeah it does say recovery 🤦 | 11:33:29 |
misuzu | In reply to @raitobezarius:matrix.org hm why? *for nvme boot | 11:33:42 |
Alex | Newer versions of the vendor's bootloader might support NVMe boot.
https://github.com/starfive-tech/VisionFive2/blob/8b7a21b808e02d996dc166d70f2675a059c2e1ed/conf/vf2_nvme_uEnv.txt | 11:33:49 |
raitobezarius | In reply to @misuzu:matrix.org *for nvme boot ah yes yes correct | 11:34:13 |
misuzu | In reply to @alex:tunstall.xyz Newer versions of the vendor's bootloader might support NVMe boot.
https://github.com/starfive-tech/VisionFive2/blob/8b7a21b808e02d996dc166d70f2675a059c2e1ed/conf/vf2_nvme_uEnv.txt Their distroboot config doesn't support nvme | 11:36:00 |
| 17 Jun 2023 |
Lotte (it/its)/Cinny (she/her) θΔ& | I ended up moving the install to iscsi | 15:44:44 |
Lotte (it/its)/Cinny (she/her) θΔ& | but it works now 🦀 | 15:44:50 |
Lotte (it/its)/Cinny (she/her) θΔ& | semi related thing i just noticed, the vf2 apparently supports the Zbb extension | 15:45:35 |
Lotte (it/its)/Cinny (she/her) θΔ& | and then i noticed that gcc was outputting suboptimal assembly for a test case but it’s fixed already | 15:46:08 |
Lotte (it/its)/Cinny (she/her) θΔ& | https://godbolt.org/z/eEvcbqGYn | 15:46:08 |
Alex | In reply to @lotte:chir.rs semi related thing i just noticed, the vf2 apparently supports the Zbb extension Yes, it also has Zba despite neither being mentioned in the vendor's documentation. | 15:52:38 |
Lotte (it/its)/Cinny (she/her) θΔ& | iirc the core ip they licensed does advertise support for the “B extension” | 15:53:18 |
Lotte (it/its)/Cinny (she/her) θΔ& | and so does the IPL/firmware | 15:53:28 |
Alex | For the SiFive U74, Zba and Zbb appear to be optional, so I'm not sure every CPU variant have them. | 15:54:39 |
Lotte (it/its)/Cinny (she/her) θΔ& | yeah | 15:57:38 |