| 12 Dec 2024 |
Tristan Ross | Oh, search filters out systems the search itself doesn't "recognize" it seems. The nix package has platforms.unix. | 07:04:58 |
Alex | Yes. It's built from a flake IIRC and lacked riscv64 as a target when I checked over a year ago. | 07:09:58 |
Pratham Patel (you can mention me) | I'll try building nix with qemu-binfmt on my end and get back when it's done and/or fails. | 07:37:59 |
Pratham Patel (you can mention me) | This will take some days given that it's building gcc, linux-headers, curl, cmake, rustc, curl and what not :D | 07:39:13 |
Pratham Patel (you can mention me) | I wonder if we can bootstrap a minimal nix. | 07:39:31 |
Alex | In reply to @thefossguy:matrix.org I'll try building nix with qemu-binfmt on my end and get back when it's done and/or fails. If you mean native Nix via Nixpkgs, that works. NixOS requires it. | 07:59:14 |
Pratham Patel (you can mention me) | Yeah, that's what I started | 07:59:40 |
Pratham Patel (you can mention me) | Just cancelled the build on my m4 and pulled out the 8gb vf2 | 07:59:55 |
doge.2 | Pratham Patel (you can mention me): thanks for the suggestions, i'll try switching those out and see if they help :) | 12:18:32 |
doge.2 | hmm, seems like it still wants to build derivations after changing lib.mkForce to lib.mkBefore and nixpkgs to nick cao's fork :\ | 12:31:27 |
Alex | Increase Nix's verbosity and it will print out information about substitution; this could help debug cache misconfiguration. | 12:34:03 |
doge.2 | strange, i'm seeing absolutely nothing about substitution now after making said changes | 12:38:37 |
doge.2 | tried max verbosity (-vvvv) and i saw nothing | 12:38:46 |
@snaki:kescher.at | In reply to @thefossguy:matrix.org This will take some days given that it's building gcc, linux-headers, curl, cmake, rustc, curl and what not :D i could offer some x86 build machines with binfmt if that would help | 12:39:00 |
doge.2 | that's what i've been trying to do, i have a framework laptop 13 running nixos that i've been cross compiling with risc-v, i might be doing it wrong but it doesn't seem to work right for me, idk | 12:40:33 |
doge.2 | (i spent almost all of yesterday working purely on this project with almost no success) | 12:40:51 |
Alex | In reply to @doge.2:matrix.org that's what i've been trying to do, i have a framework laptop 13 running nixos that i've been cross compiling with risc-v, i might be doing it wrong but it doesn't seem to work right for me, idk Do you have a Git repository with the latest changes? We could take another look to try to figure out why you're not getting cache hits. | 12:53:13 |
doge.2 | i do, let me upload them to my github repo real quick
(also why is that text red?) | 12:53:44 |
doge.2 | https://github.com/fyredragon69/nix-config/tree/main/nixos-starfive here you go | 13:01:14 |
| 14 Dec 2024 |
[0x4A6F] | Has been since https://github.com/NixOS/nix/pull/10228 | 08:30:13 |
| 17 Dec 2024 |
| @blitz:chat.x86.lol joined the room. | 11:05:05 |
| 20 Dec 2024 |
| @xiaoxiangmoe:matrix.org joined the room. | 13:58:58 |
| 22 Dec 2024 |
| DavHau joined the room. | 06:05:05 |
| 23 Dec 2024 |
DavHau | I got a VisionFive2 V1.3B and was not able to get nixos booting so far? I already flashed the latest bootloader via an upstream image.
Unfortunately I do not have an hdmi cable or UART adapter (ordered, in transit).
When I flash the nixos image linked in the nixos wiki, I do not see the device in my LAN and also the green LED does not flash?
Should the green LED supposed to be flashing under nixos, as it does with the official images? | 08:59:37 |
DavHau | (I'm falshing the nixos to an sd card and have the switches on the board configured correctly. Also the latest official image boots fine from sd card, so I guess everything with my board is OK) | 09:08:46 |
Alex | In reply to @hsngrmpf:matrix.org I got a VisionFive2 V1.3B and was not able to get nixos booting so far? I already flashed the latest bootloader via an upstream image. Unfortunately I do not have an hdmi cable or UART adapter (ordered, in transit). When I flash the nixos image linked in the nixos wiki, I do not see the device in my LAN and also the green LED does not flash? Should the green LED supposed to be flashing under nixos, as it does with the official images? I don't recall it flashing under most NixOS builds -- only vendor images. | 10:10:28 |
Alex | You should be able to get it onto the network. If you can't, you could try getting it to log to the disk, but you're practically debugging blind without UART. You're not booting from NVMe, are you? That doesn't work on some firmware versions (not properly configured to try NVMe). Another thing to note is the selected boot mode. The vendor image is more tolerant and can probably boot in most modes, whereas some NixOS images need you to boot from flash (no firmware partition). | 10:15:43 |
DavHau | Cheers! Now it popped up in my network. Not sure what went wrong before. I just flashed the image form the wiki again and it's online. | 10:19:00 |
DavHau | Though there is no hdmi output on any image I tried so far. Maybe the hdmi on my board is broken | 10:20:29 |
Alex | In reply to @hsngrmpf:matrix.org Though there is no hdmi output on any image I tried so far. Maybe the hdmi on my board is broken It's very likely that your kernel doesn't have a driver for the HDMI. Check the version and what patches are being applied on top.
See: https://rvspace.org/en/project/JH7110_Upstream_Plan | 10:23:55 |