NixOS RISC-V | 234 Members | |
| NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v | 69 Servers |
| Sender | Message | Time |
|---|---|---|
| 23 Jan 2025 | ||
| https://github.com/misuzu/nixos-vf2/releases/tag/0.8 | 10:43:33 | |
| 25 Jan 2025 | ||
| 19:58:37 | ||
| Hi! Is there a "standard" way to get a complete cross-compilation toolchain for riscv64-unknown-linux-gnu? Some pkgs.* that I can put into environment.systemPackages and get the basic tools I'll probably need? (From Gentoo I'm used to sys-devel/crossdev that would install these tools for me. But maybe the approach would be different on NixOS?) | 20:51:27 | |
In reply to @devurandom:matrix.org pkgsCross.riscv64.buildPlatform.stdenv sounds like what you're looking for. | 20:52:29 | |
* pkgsCross.riscv64.buildPackages.stdenv sounds like what you're looking for. | 20:52:42 | |
(FYI: I mistyped buildPlatform instead of buildPackages) | 20:53:38 | |
Can I get a list of these pkgsCross? I saw that mentioned elsewhere (for a specific binary), but could find it on https://search.nixos.org/packages, and I am still regularly struggling to find anything in https://github.com/NixOS/nixpkgs/. | 20:56:27 | |
| The easiest way of exploring them is probably to use the Nix REPL. Run nix repl '<nixpkgs>' then type pkgsCross and press tab. | 20:57:53 | |
Btw you probably shouldn't be installing dev tools in environment.systemPackages.It's generally preferred to write a project-specific shell.nix file (or use nix-shell without one, e.g. nix-shell -p pkgsCross.riscv64.buildPackages.stdenv). | 21:00:11 | |
| Thanks! I'll try that. I am still very new to using Nix/NixOS for anything other than managing my physical system... | 21:47:40 | |
| 26 Jan 2025 | ||
| 17 derivations to go until NixOS native RISC-V. | 04:30:29 | |
| It's done. After a month, I have NixOS built natively for RISC-V. | 20:40:10 | |
| 27 Jan 2025 | ||
In reply to @alex:tunstall.xyzoh sry i didnt see anyone replied ^^; i was just looking for resources if someone had actually done it, maybe i missed something meow .. | 01:01:20 | |
| ill get back to the th chips later maybe ill have some specific problems again, right now im back to the starfives lol :3 | 01:01:58 | |
In reply to @rosscomputerguy:matrix.orgoh hell yea!! do u have ur configuration public somewhere ? ive been trying to do something similar recently meow!! | 01:02:59 | |
In reply to @mel:rnrd.euhttps://github.com/RossComputerGuy/dotfiles | 01:03:28 | |
Fails to boot | 02:01:13 | |
Hmm, this is taking awhile | 02:06:12 | |
This seems to be a problem | 04:57:10 | |
| Hi, I want to install nixos on VisionFive 2 for make build. | 12:12:20 | |
| * Hi, I want to install nixos on VisionFive 2 for make builder. | 12:12:27 | |
| You have a way for that ? | 12:12:41 | |
| Or i need to use debian for build inside with nix ? | 12:16:34 | |
| You can try these images https://github.com/misuzu/nixos-vf2/releases/tag/0.8 But you'll need upstream u-boot on spi I'm using https://github.com/misuzu/nixos-vf2/releases/download/0.7/u-boot-spl.bin.normal.out https://github.com/misuzu/nixos-vf2/releases/download/0.7/visionfive2_fw_payload.img | 14:12:27 | |
In reply to @liberodark:matrix.orgI just used the SD card as an installer and do things like normal | 14:21:51 | |
| Im using only a NVME if you have iso for try this. | 14:22:33 | |
| * Im using only a NVME if you have iso for try this? | 14:22:38 | |
In reply to @liberodark:matrix.orgFor NVMe boot, you need the SPL (u-boot + OpenSBI) in flash (recommended), eMMC, or microSD. With all that done, most VF2 images should work fine (e.g. the one misuzu linked). | 14:25:27 | |
| * For NVMe boot, you need the SPL (u-boot + OpenSBI) in flash (recommended), eMMC, or microSD. With that done, most VF2 images should work fine (e.g. the one misuzu linked). | 14:25:49 | |
| Im on Debian 13 actually on VF2 | 14:26:10 | |