!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

354 Members
111 Servers

Load older messages


SenderMessageTime
14 Mar 2022
@ma27:nicht-so.sexyma27 joined the room.08:17:25
15 Mar 2022
@colemickens:matrix.orgcolemickensI 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
@colemickens:matrix.orgcolemickens * 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
@linus.heckemann:matrix.mayflower.deLinux Hackerman is moving: @linus:schreibt.jetzt
In reply to @colemickens:matrix.org
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.
Have you seen thefloweringash's module for more or less that?
13:24:56
@thefloweringash:matrix.orgthefloweringashif 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
@thefloweringash:matrix.orgthefloweringashif 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
@linus.heckemann:matrix.mayflower.deLinux Hackerman is moving: @linus:schreibt.jetzt *

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!
Linus

16:37:34
@linus.heckemann:matrix.mayflower.deLinux Hackerman is moving: @linus:schreibt.jetzt
In reply to @linus.heckemann:matrix.mayflower.de

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!
Linus

I've had a talk with Matt and some others, and amended this message to add what's happened since. :)
16:38:41
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how joined the room.18:06:30
@ius:nltrix.netius
In reply to @colemickens:matrix.org
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.
Consider 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
@ius:nltrix.netius 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
@colemickens:matrix.orgcolemickensWhat is that? Is that the same as the binfmt trick?22:30:34
@colemickens:matrix.orgcolemickensAnd yes, this builds on top of floweringash's module. Adds support for riscv, and then I'm adding in some more niceties tonight.22:30:59
@colemickens:matrix.orgcolemickensAnd I'm sad to see the notes about overlayfs but really appreciate you sharing them since I was going to head in that direction. I might have a few ideas beyond wanting to try myself and see if things have improved.22:33:00
@colemickens:matrix.orgcolemickensAnd of course thank you for this module. I've hacked on it a fair bit by now but I wouldn't have had the ... gumption to do this all from scratch22:33:39
@ius:nltrix.netius
In reply to @colemickens:matrix.org
What is that? Is that the same as the binfmt trick?
Yep
23:34:16
16 Mar 2022
@ius:nltrix.netius

Re: qemu, looks like the jemalloc bump triggers a new qemu edge case:

test_zero:test/integration/xallocx.c:352: Failed assertion: (validate_fill(p, 0x00, sz, nsz-sz)) == (false) --> true != false: Memory not filled: sz=24576, nsz-sz=4096
  p=0x400292b240, c=0x0, len=32768: 0x7a[0..28672) 0x0[28672..32192) 0x7a[32192..32768)

Let me know if anyone figures it out before I do, chasing qemu bugs is fairly time consuming.

07:55:09
@linus.heckemann:matrix.mayflower.deLinux Hackerman is moving: @linus:schreibt.jetzt
In reply to @colemickens:matrix.org
What is that? Is that the same as the binfmt trick?
qemu-user is what's actually doing the work. binfmt_misc is just the mechanism that tells the kernel to run qemu-user on files that match certain patterns.
08:02:02
@colemickens:matrix.orgcolemickensI had been told that was unreliable in the past, but maybe that was just the binfmt bit?18:30:55
@colemickens:matrix.orgcolemickensAlso qemu 7 looks interesting though I'm unsure if it's super useful beyond allowing more cores on the riscv virt board which... If nothing else should be nice.18:31:32
@ius:nltrix.netius
In reply to @colemickens:matrix.org
I had been told that was unreliable in the past, but maybe that was just the binfmt bit?
No, that would be qemu-user itself. The binfmt glue just tells the kernel to load RISC-V executables using qemu when attempting to execute a RISC-V binary.
22:18:51
@colemickens:matrix.orgcolemickensIs it worth it to run qemu-user, build as much as possible, then run qemu-system to build the rest? I think I'd generally prefer trustable/reliable over "faster" for this sort of thing.22:19:38
@ius:nltrix.netiusIt breaks at times (mostly when running tests), but it's a handful of patches in total. Most things can also be fixed (although I haven't dared looking at qemu's user emulation code yet)22:20:05
@ius:nltrix.netiusIn that case, system would be the best choice yeah22:20:14
@ius:nltrix.netiusI am (or was) trying to keep up with nixos-master, which is slow enough as-is with qemu-user22:20:41
@colemickens:matrix.orgcolemickenshuh, I have to look into qemu-user and figure out what magic it's supposedly doing. I don't have any idea how it works22:20:58
@ius:nltrix.netiusIt's fairly simple in theory. It dynamically translates all RISC-V instructions to x86 and intercepts all syscalls to call their native counterpart.22:22:12
@colemickens:matrix.orgcolemickensone more question to put this together in my head -- is there an advantage to using qemu-user versus using binfmt and trying ot use nix directly?22:23:29
@colemickens:matrix.orgcolemickens * one more question to put this together in my head -- is there an advantage to using qemu-user (standalone) versus using binfmt and trying ot use nix directly?22:23:41
@colemickens:matrix.orgcolemickens * one more question to put this together in my head -- is there an advantage to using qemu-user (standalone) versus using binfmt and trying ot use nix directly? ( I guess I'm assuming qemu-user is used similarly to qemu-system, but maybe not)22:23:53

Show newer messages


Back to Room ListRoom Version: 6