NixOS RISC-V | 241 Members | |
| NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux | 74 Servers |
| Sender | Message | Time |
|---|---|---|
| 23 Dec 2024 | ||
| 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 | |
| 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 | |
| Though there is no hdmi output on any image I tried so far. Maybe the hdmi on my board is broken | 10:20:29 | |
In reply to @hsngrmpf:matrix.org 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. | 10:23:55 | |
| Alaright, I was now able to boot my own cross compiled image and login via ssh 🚀 | 10:24:35 | |
| The vendor's graphical image should have working HDMI (with some glitchiness, unless they've fixed it). | 10:25:00 | |
| 14:09:36 | ||
| 25 Dec 2024 | ||
| Fixed a bunch of cross build issue with python packages and got home-assistant almost running, but there is one I'm having trouble with wrapping my head around. The python
| 07:34:49 | |
| The binary is a result from a rust build. The derivation in nixpks looks fine. Other python packages containing rust cross compile correctly | 07:36:48 | |
| The Python package's install script might not be cross-friendly; you should look at the package's source. If it's doing the build itself, it probably found the buildPackages compiler instead of the cross compiler. | 07:40:29 | |
| OK, for rust the compiler is target platform specific like with gcc? | 11:10:44 | |
| Oh I just noticed it has the riscv64 target triple in the file name, very weird. No, rustc is multi-targeting because it's based on LLVM. It's probably being given the wrong build flags. Have you looked through the build logs for anything suspicious? | 11:45:27 | |
| Could not spot anything. I guess I'll inspect the source once I find the time. | 16:40:25 | |
| 26 Dec 2024 | ||
| 14:26:42 | ||
| 27 Dec 2024 | ||
| 06:51:45 | ||
| 07:31:40 | ||
| 15:23:12 | ||
| 30 Dec 2024 | ||
| 16:27:14 | ||
| 1 Jan 2025 | ||
| 14:26:06 | ||
| 18:20:16 | ||
| 23:29:29 | ||
| 23:53:47 | ||
| 4 Jan 2025 | ||
| Why does nixos-hardware use the upstream u-boot instead of the Starfive fork for the VisionFive 2? I'm looking to boot from an NVME and it looks like using the fork would be better. | 15:59:03 | |
In reply to @rosscomputerguy:matrix.org Upstream is usually a better choice when the hardware support you need has been merged. For extra hardware, applying patches onto upstream is a decent option because it helps test the patches before they get merged. | 18:09:33 | |
| Yeah, I made this PR https://github.com/NixOS/nixos-hardware/pull/1296 to make overriding those things easier | 18:10:18 | |
| After running into a few things which don't like RISC-V or cross compiling (lsd, nix output monitor, Prism Launcher, and lua-language-server), I seem to be making good progress. | 19:04:27 | |
In reply to @rosscomputerguy:matrix.orgnix-output-monitor can be compiled if you can provide Nixpkgs a boot GHC | 21:00:11 | |
| lol, I'm too lazy to go through that effort | 21:00:33 | |
| I'm just trying to get my config to build for the first time via cross from aarch64 to riscv64 | 21:00:54 | |
| Also, the VisionFive 2 isn't that powerful so not like I'm going to be doing much on it | 21:01:25 | |