!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

330 Members
105 Servers

Load older messages


SenderMessageTime
8 Jul 2022
@samueldr:matrix.orgsamueldras it creates a burden to maintain, and fosters bad habits18:23:02
@samueldr:matrix.orgsamueldr and here's the main underlying reason NixOS shouldn't manage platform firmware images: it's outside the lifecycle of a generation 18:23:50
@samueldr:matrix.orgsamueldr and here's the main underlying reason all distros shouldn't manage platform firmware: it makes things awfully impossible to reason about 18:24:17
@samueldr:matrix.orgsamueldrthe onus of providing platform firmware in a sensible manner should be placed on the vendor, and failing that, a trusted third party that is common and shared between all distros18:25:03
@samueldr:matrix.orgsamueldrit's needless churn to have all distros micromanage board specific details18:25:32
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how
In reply to @samueldr:matrix.org
the onus of providing platform firmware in a sensible manner should be placed on the vendor, and failing that, a trusted third party that is common and shared between all distros
Is there an example of anything doing it correctly right now?
18:25:55
@samueldr:matrix.orgsamueldryes, the iso image18:26:12
@samueldr:matrix.orgsamueldrif you were to remove the FAT32 partition from the SD image, the SD image would be more correct18:26:31
@samueldr:matrix.orgsamueldrbut arguably it doesn't use an actually standard interface for boot18:26:45
@samueldr:matrix.orgsamueldryes, RISC-V can boot UEFI18:26:54
@samueldr:matrix.orgsamueldrI don't know about your particular board18:27:00
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howIn the case of the visionfive board, OpenSBI/Uboot does mention that 18:27:16
@samueldr:matrix.orgsamueldrit probably can through U-Boot, but the vendor might have messed with the defaults enough to make things awkward18:27:23
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howSo what do we do about the fact that right now, everything kind of "Just works" even if it's ugly behind the scenes in Nixpkgs, regarding vendor kernels? 18:27:52
@samueldr:matrix.orgsamueldr since it's the visionfive, I figure you've seen https://github.com/NixOS/nixpkgs/pull/168826 18:27:57
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howdo we move sd image generation to nixos-hardware? Do we just say "Broken is better than working, express it yourself in Nix?" 18:28:12
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how
In reply to @samueldr:matrix.org
since it's the visionfive, I figure you've seen https://github.com/NixOS/nixpkgs/pull/168826
yeah I've been playing a lot with it.
18:28:28
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howhttps://github.com/MatthewCroughan/visionfive-nix/blob/master/flake.nix18:28:52
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howsee this for the work I've been doig 18:28:58
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how * see this for the work I've been doin18:28:59
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how * see this for the work I've been doing18:29:00
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how nix build .#images.visionfive and anyone can just add their config to ./configuration.nix and it'll produce something they can flash to an sd and boot 18:29:25
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how and nix run .#flashBootloader /dev/ttyUSB0 for flashing the board's OpenSBI/Uboot via the mask rom 18:29:46
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how So, let's imagine your perfect utopia existed. What would become of my nix build .#images.visionfive ? 18:30:12
@samueldr:matrix.orgsamueldr so, the way you need to think about is is to completely dissociate handling the platform firmware from the distro 18:31:16
@samueldr:matrix.orgsamueldrso in a way your flake already kinda does this; you have a thing to flash the firmware, and once it's flashed, it's flashed and respects standard (enough) interfaces for booting18:31:51
@samueldr:matrix.orgsamueldrso that's one component down, and you have to think about it like it's its own separate thing, because it is18:32:28
@samueldr:matrix.orgsamueldrit's the bios18:32:31
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howYes, the flake approach I'm using is beginning to feel good 18:32:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howBut how do we put it all into a more centralized location? Is nixos-hardware the answer? Or would you avoid that?18:33:14

There are no newer messages yet.


Back to Room ListRoom Version: 6