| 24 Mar 2024 |
darkwater4213 | Well, what does make things interesting | 22:01:26 |
| 25 Mar 2024 |
| root joined the room. | 13:49:18 |
sorear | I have a riscv-specific kernel patch that I want to test in a full OS environment (prior tests have been musl+busybox in an initramfs) and a nixos x86_64 host/build machine.
Is there an easy way to use nix to cross compile (from x86_64-linux to riscv64-linux) a kernel and rootfs suitable for booting NixOS in QEMU? I don't want to manually determine the correct kernel configuration options, and being able to tweak things in userspace would be useful for future tests.
I do not have an encyclopedic knowledge of nixos internals or non-QEMU hardware. | 15:52:37 |
Pratham Patel | There is one afaik but I can't point you to it since imho, it is better to not deal with this and buy a VF2 instead, since it is quite cheap and unlike a RPi, has an M.2 2280 slot for an NVMe. | 15:54:04 |
sorear | the last piece of hw I ordered from China in July still hasn't shipped, and even if I reorder it I want to do this project now, not in 2 months | 15:55:16 |
Pratham Patel | Even India (a country were getting such niche SBCs is close to impossible) has this available for purchase and shipping under 2 days, max. | 15:57:12 |
sorear | is there a technical reason to gatekeep qemu users from nixos? | 15:57:27 |
Pratham Patel | Not sure, I just find it easier to not deal with it, that's all 😅 | 15:57:54 |
sorear | is there anyone who is willing to answer? | 15:59:34 |
Pratham Patel | Redacted or Malformed Event | 16:00:33 |
Pratham Patel | sorear: you can try building the sd-image for the VF2 and override the kernel with your source + any additional patches. If I were to do something like what you described, I'd start from here.
https://nixos.wiki/wiki/NixOS_on_RISCV/VisionFive_2
| 16:05:55 |
sorear | I still cannot make heads from tails of anything flakes-related | 16:06:57 |
| * Pratham Patel will be back with a tested flake.nix that sorear can reproduce | 16:08:43 |