!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

330 Members
105 Servers

Load older messages


SenderMessageTime
15 Jun 2023
@lotte:chir.rs@lotte:chir.rsi am building the same kernel as here: https://github.com/misuzu/nixos-vf218:36:41
@lotte:chir.rs@lotte:chir.rsand i know that the natively compiled build works18:36:57
@lotte:chir.rs@lotte:chir.rs * and i know that the natively compiled build on that repo18:37:11
@lotte:chir.rs@lotte:chir.rs * i am building the same kernel code and config as here: https://github.com/misuzu/nixos-vf218:44:54
@aciceri:nixos.devaciceri joined the room.18:49:03
@misuzu:matrix.orgmisuzu
In reply to @lotte:chir.rs
Gstarting device mapper and LVM...
mounting 192.168.2.1:/export/vf2 on /...
mount: mounting 192.168.2.1:/export/vf2 on /mnt-root failed: Invalid argument
[   38.487202] starfive-dwmac 16030000.ethernet end0: Link is Down
boot.initrd.network.flushBeforeStage2 = false;?
19:28:02
@lotte:chir.rs@lotte:chir.rsi can try that19:29:17
@lotte:chir.rs@lotte:chir.rsohhhh19:29:39
@lotte:chir.rs@lotte:chir.rsthat makes sense19:29:41
@lotte:chir.rs@lotte:chir.rsyup that was it!19:55:02
@lotte:chir.rs@lotte:chir.rsthank you very much19:55:06
16 Jun 2023
@alex:tunstall.xyzAlex

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?
11:10:18
@misuzu:matrix.orgmisuzu
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:matrix.orgj-khas anyone recently tried m.2 ssd boot on VF2?11:19:55
@misuzu:matrix.orgmisuzu
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:tunstall.xyzAlex
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:matrix.orgj-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:matrix.orgmisuzu
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:matrix.orgmisuzuVendor u-boot doesn't support booting from nvme out of box, you'll have too type stuff to the console via uart :D11:28:29
@misuzu:matrix.orgmisuzu * Vendor u-boot doesn't support booting from nvme out of box, you'll have to type stuff to the console via uart :D11:30:01
@misuzu:matrix.orgmisuzuI've my efi partition on an sd card and root on an nvme11:30:44
@j-k:matrix.orgj-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:matrix.orgmisuzu
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:matrix.orgmisuzuThere's flash-visionfive2-upstream, but it's not working properly11:33:00
@j-k:matrix.orgj-kah 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 ISOs11:33:06
@raitobezarius:matrix.orgraitobezarius
In reply to @misuzu:matrix.org
There's flash-visionfive2-upstream, but it's not working properly
hm why?
11:33:24
@raitobezarius:matrix.orgraitobezariusI tried it and it worked11:33:26
@j-k:matrix.orgj-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:matrix.orgmisuzu
In reply to @raitobezarius:matrix.org
hm why?
*for nvme boot
11:33:42
@alex:tunstall.xyzAlex 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

Show newer messages


Back to Room ListRoom Version: 6