Exotic Nix Targets | 330 Members | |
| 105 Servers |
| Sender | Message | Time |
|---|---|---|
| 28 Jun 2023 | ||
| bootstrap file issue? https://github.com/NixOS/nixpkgs/issues/211120 https://discourse.nixos.org/t/nix-on-armv7l-fails-to-build-any-packge/16819 | 23:21:56 | |
/nix/store/yx05p52ik9j1ws4x035pyfi4w8ns9zy8-bootstrap-stage1-stdenv-linux/setup: ./configure: /bin/sh: bad interpreter: No such file or directory | 23:22:25 | |
| 29 Jun 2023 | ||
| 00:33:16 | ||
| 00:33:28 | ||
| chuang: I'm booting your image for the MQ Pro D1 board, but it seems to not be doing anything on HDMI, any ideas? | 09:41:51 | |
| https://github.com/chuangzhu/nixos-sun20iw1p1/releases | 09:41:56 | |
| I'm referring to the latest release here | 09:42:00 | |
| Using revision 1.2 of the board | 09:45:22 | |
| 1 Jul 2023 | ||
| 09:50:03 | ||
| 13:54:38 | ||
| Hello everyone, I am the "maintainer" of the unmaintained minimal Arch Linux image for the VisionFive 2. Recently I tried out NixOS and am using it on my Raspberry Pi as the "main computer" (my current x86 pc died so this is a temporary measure; but it works even with 'llvmpipe' because I'm using UEFI). I came to know about the RISC-V effort and got curious. I was checking this issue on NixOS/nixpkgs and a thread mentioned about this IRC channel. So here I am. Are there any "Here's how to get started on the VF2" guides? | 14:04:28 | |
| Me being new to NixOS doesn't help me understand how to test the waters with RISC-V on NixOS, haha | 14:05:49 | |
In reply to @thefossguy:matrix.org There's the official documentation from the vendor and a few enthusiasts, but they're mostly for Debian. For NixOS, there are a few repositories here and there that contain a bootable configuration. I've based my system configuration off of https://github.com/misuzu/nixos-vf2 (note that this was written for rev 1.3B; it has DTBs for other revisions, but might not work as well). | 14:11:18 | |
Given that you've (presumably) managed to boot Arch on the system, it should mostly be a matter of figuring out how to translate what you already know into NixOS configuration. The boot.* options should be of interest. | 14:12:22 | |
| Pratham Patel: I probably won't be able to help much since I know ~nothing about VF2, but here's some generic explanation that may or may not be a missing piece of understanding: Nix is at its core a build tool, and while most of its usage is for building packages for a system, there's no reason it has to be limited to that, and so it is also used as a build tool for the install image itself. essentially, the various ISOs that you can have for NixOS are "just" attributes of nixpkgs that you can evaluate and build like they are any other package. the architecture is an argument when initializing nixpkgs, though in this case I'm guessing you'd be cross-compiling so additional machinery (that I am not familiar with) may be necessary | 14:12:51 | |
| so I would expect that getting a bootable image is a matter of building the right nixpkgs attribute with the right options/machinery | 14:13:25 | |
In reply to @alex:tunstall.xyz
That's exactly the starting point I was looking for! Thank you!
Good reminder about the split DTBs. From what I know, upstream u-boot will patch it on the fly but yes, for the moment, we need to explicitly set it. | 14:33:24 | |
In reply to @alex:tunstall.xyz Yep, and I also have a working system (on a Pi with UEFI and tons of hacks). My confusion stems from the following wandering... "If RISC-V isn't officially supported (yet), there should be a different repository I should point at, so I can get the RISC-V binaries from there." That's why I asked here :) | 14:34:50 | |
In reply to @joepie91:pixie.townOh, makes sense. Still new to the nix expression language so it will take me some time to figure it out. Thanks for the explanation! | 14:35:43 | |
In reply to @thefossguy:matrix.org NixOS is a source-based distribution: the Nixpkgs repository only specifies how to build packages (and provides an extensive x86_64 and aarch64 cache). Not only that, but Nixpkgs has tools to change how packages are built, so if you find something that doesn't build, you can override it to fix it. You'll find that on the latest version of nixos-unstable, a great deal of things already both cross-compile and natively compile to riscv64. It'll likely take several hours of compilation to build a complete system (esp. natively if your kernel doesn't support cpufreq scaling, since the default clock speed is 1GHz and not the full 1.5GHz), but as long as you're not hoping to use any Java packages or Haskell packages, most things will Just Work™. | 14:44:09 | |
In reply to @alex:tunstall.xyzGreat to know, thanks! :) | 14:45:15 | |
In reply to @alex:tunstall.xyzby the way, I asked about risc-v ghc bindists here https://gitlab.haskell.org/ghc/ghc/-/issues/23519 | 15:38:39 | |
In reply to @fgaz:matrix.org Guess I'll have to keep trying to cross-compile then :( (My last attempt at cross-compiling allocates 4GB of memory and then segfaults on startup.) | 16:21:33 | |
| the milkv pioneer crowfunding is out :O | 19:00:18 | |
| it would be a nice hydra builder... | 19:05:12 | |
| not sure :p | 19:11:34 | |
| 2 Jul 2023 | ||
In reply to @thefossguy:matrix.orghttps://github.com/MatthewCroughan/visionfive-nix | 13:50:17 | |
| Related aybe | 13:50:20 | |
| * Related maybe | 13:50:24 | |
| I initially thought this was just for the HiFive Unmatched. Then I saw your youtube video and got some hope. Then I saw your repo and gave up all hope (because idk nix well enough; _yet_).
Since you are here, please accept my thank you :) | 14:21:53 | |