Exotic Nix Targets | 343 Members | |
| 107 Servers |
| Sender | Message | Time |
|---|---|---|
| 27 May 2023 | ||
| Also, that version of u-boot wont have internet because the ethernet nodes are missing from the device tree, I think. Also also, its missing the code that is required to fix up the memory node on models that have 8 GB memory | 00:11:53 | |
| starting to think that my bell router DHCP server is cursed somehwo | 02:07:49 | |
| oh wait what | 02:08:12 | |
| the other network port works | 02:08:16 | |
| let's gooooo | 02:08:18 | |
Download image.png | 02:10:11 | |
| Hi, I have something I don't understand -- I can cross-compile [a derivation] from a (x86_64 builder) for aarch64, but when I try to build for riscv64-linux, I get a dependency chain that includes bootstrap-tools. Which I don't have available for riscv64-linux... Question - is our riscv64 support "behind"? Can I not cross-compile the bootstrap tools and use those somehow? | 05:23:08 | |
I've looked for docs several times but haven't really made any head way. Between ghc being not natively supported, and this 'bootstrap-tools' issue, I'm having a hard time getting from a pretty minimal build to my more full nixos profile on the VF2. | 05:23:52 | |
| (aside: it strikes me as funny that I can cross-compile sway and mpv, but not bash or zellij :P) | 05:24:20 | |
| also unrelated: I have a nixos module that boots a qemu vm that can then act as a "native" riscv64 builder. A hack of a hack of floweringash's original work, but I think it might build as fast or faster than my VF2, on a huge Packet VM... | 05:26:17 | |
| also also unrelated, I have a module (again, hacked on from someone's else initial effort) that builds a very small netboot-able initrd that then 'curl's a big squashfs with stage-2. I used this to "fix" my VF2 remotely via u-boot serial access. :D It's likely to come in handy in the future. | 05:27:50 | |
Locally you should be able to build bootstrapTools with pkgs/stdenv/linux/make-bootstrap-tools-cross.nix. | 07:31:45 | |
Adding riscv64-linux to bingmt on x86_64-linux seems to work as well if I try to build bash "natively": $ nix build -f '<nixpkgs>' bash --argstr system riscv64-linux (built a few packages so far, did not get to final bash yet). | 07:38:24 | |
| colemickens: you shouldn't need the bootstrap tools to cross compile | 08:21:40 | |
| how are you trying to do the cross compile? | 08:21:46 | |
| I am currently looking at helix's flake.nix and zellij's in this repo: https://github.com/a-kenji/zellij-nix | 08:27:56 | |
| afaict, zellij has only openssl and pkg-config as nativeBuildInputs, yet, helix cross-compiles to riscv64-linux, while zellij does not | 08:28:19 | |
| they both seem to use rust-overlay, though helix uses nci->rust-overlay | 08:28:39 | |
In reply to @colemickens:matrix.orgI'll reply in the issue soon, trying to get the cross compilation building atm. | 08:56:11 | |
In reply to @snektron:matrix.orgYou need to run pci probe or something first | 10:12:42 | |
In reply to @snektron:matrix.orgWhat do you mean by "fix up"? I have the 8 GB version | 10:14:15 | |
In reply to @misuzu:matrix.orgThe device tree node, at least on the version that I have its hardcoded to 4GB even if i have the 8GB version | 10:18:33 | |
| So free -h reports 4GB | 10:19:00 | |
| 10:20:14 | |
| Maybe you have different kernel, I'm using this one https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_upstream | 10:21:20 | |
| Looks like upstream u-boot already has the necessary logic for 2/4/8G versions https://patchwork.ozlabs.org/project/uboot/patch/20230329034224.26545-10-yanhong.wang@starfivetech.com/ | 10:41:51 | |
| And I'm using close-to-upstream u-boot https://github.com/misuzu/u-boot/commits/visionfive2 | 10:42:24 | |
In reply to @misuzu:matrix.org
| 10:43:46 | |
In reply to @misuzu:matrix.org*
VF2 16G confirmed? | 10:43:52 | |
In reply to @misuzu:matrix.orgYea i built this onr but it didnt work there. Maybe it requires a newer kernel ill do that next, but using your fork i still wasnt able to see my nvme | 11:15:27 | |