Exotic Nix Targets | 323 Members | |
| 101 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Mar 2022 | ||
| What's your command line? Which OpenSBI build are you using? | 01:45:45 | |
| Zhaofeng Li: https://github.com/colemickens/nixcfg/blob/main/modules/other-arch-vm.nix#L13-L15 | 01:46:55 | |
| I'm using your riscv-cached brach, override-ing opensbi to set a payload, and then the bottom has the qemu invocation, but it looks like this | 01:47:26 | |
| 01:47:54 | |
| going off of : https://github.com/riscv-software-src/opensbi/blob/master/docs/platform/qemu_virt.md | 01:48:40 | |
| oh, maybe I'm doing it wrong | 01:49:15 | |
| the example there doesn't have a kernel line... so it is embedding it into the opensbi, which I guess is what I was originally looking for | 01:49:38 | |
| Usually you can just skip the -bios flag and use qemu's built-in opensbi | 01:52:43 | |
| If you don't care which version is being used | 01:52:55 | |
| which I guess implies the fw_jump.elf, which I think should be pretty close to what I have here... :/ hm | 01:54:16 | |
| (since I see now that it seems that I could either fw_jump+kernel or embed into opensbi and use fw_payload (though not sure why, that seems like extra steps and builds) | 01:55:01 | |
| Oh, s/fw_jump.elf/fw_jump.bin/g and removing a arm kernel conf tweak and let's see how it goes | 02:01:10 | |
| there we go, a kernel panic at least | 02:01:52 | |
ah maybe initrd doesn't work this way though: Initramfs unpacking failed: write error | 02:02:29 | |
| and sure enough the default bios gets me to the same place, thanks for saying ;) | 02:04:11 | |
| there we go, some more memory and it seems to be going | 02:08:10 | |
| alright, looks like I'm bumping into some stuff since riscv-cached is "old", I might try to rebase it | 03:10:26 | |
| wow this is basically all upstream in nixos-unstable already, fantastic Zhaofeng Li. it's so cool to get this board and have so much ready to go | 03:43:21 | |
| 08:17:25 | ||
| 15 Mar 2022 | ||
| I don't have it all polished up yet, I'm going to make it more efficient and use virtiofsd, but I have a nixos module that will build a cross-compiled qemu with an ssh port forwarded for use as a native builder. | 01:39:37 | |
| * I don't have it all polished up yet, I'm going to make it more efficient and use virtiofsd, but I have a nixos module that will build a cross-compiled vm and systemd service to run qemu with an ssh port forwarded for use as a native builder. | 01:40:04 | |
In reply to @colemickens:matrix.orgHave you seen thefloweringash's module for more or less that? | 13:24:56 | |
| if you do pick up my module, a couple of points: it assumes that overlayfs doesn't work due to a O_LARGEFILE test failure I ran into with go, so on boot it does a one-off file copy of the initial store from the host store over virtio which takes a number of minutes (virtiofs is apparently slooooow). and the other thing is the ssh host key seems unreliable. it's stored on the host for persistence over reboots, and also served over virtio, but every so often sshd just reports that it can't read it. I never got to the bottom of it, but maybe just copy that to /etc/ssh on startup too. | 13:37:31 | |
| if you dig around in the history you'll see me trying a bunch of different approaches (squashfs, tarball, overlayfs) before arriving at the slow but boringly standard "files on ext4" | 13:38:28 | |
| * EDIT: I did not send nor intend to send such an email, and the question was a rhetorical device. We have had a talk and cleared the air, and Matt clarified to the vendor that he does not represent the Nix community as previously discussed in here. I am confident that we've come to an understanding and that this won't happen in the same way again and look forward to working together productively :) Leaving the original message as context: matthewcroughan - nix.zone: how would you feel about me sending this email to the VisionFive people along with a transcript of this chat? Hi, It's come to my attention that you're corresponding with Matthew Croughan about getting some VisionFive development boards into the hands of NixOS developers who would work on getting NixOS working on them. I'd love to see this initiative succeed! However, I'm somewhat concerned that Matt might have unintentionally misled you concerning the level of organisation and commitment of the initiative. For the sake of transparency, I thought I'd let you know about this. Please find attached a transcript of the discussion we had in the public "Exotic Nix Targets" Matrix channel (#exotic:nixos.org) concerning the matter, I'll leave forming an opinion on the matter up to you. Hoping we'll still get those boards! | 16:37:34 | |
In reply to @linus.heckemann:matrix.mayflower.deI've had a talk with Matt and some others, and amended this message to add what's happened since. :) | 16:38:41 | |
| 18:06:30 | ||
In reply to @colemickens:matrix.orgConsider building with qemu-user as well, at least the speed figures posted here earlier suggest it really is a much faster. There are a few things you need to patch, but you can at least build the sdImage closure with it. | 18:42:00 | |
One out of 2 qemu-user bugs I submitted upstream had its status updated to 'in progress' today, so perhaps someone is looking at fixing those issues as well. | 18:43:29 | |
| What is that? Is that the same as the binfmt trick? | 22:30:34 | |