!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

559 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org149 Servers

Load older messages


SenderMessageTime
22 Aug 2024
@elvishjerricco:matrix.orgElvishJerricco s/hours/days or weeks/ 09:08:00
@elvishjerricco:matrix.orgElvishJerriccoI looked at one of their documents and it just says it supports booting SPI, SD card, and it supports a form of secure boot. Didn't provide any details on any of that09:08:43
@elvishjerricco:matrix.orgElvishJerricco * I looked at one of their documents and it just says it supports booting SPI or SD card, and it supports a form of secure boot. Didn't provide any details on any of that09:10:07
@magic_rb:matrix.redalder.orgmagic_rbAh yeah i see it, great datasheet, so informative lmao09:10:44
@magic_rb:matrix.redalder.orgmagic_rb @theelevated if it looks like were being needlessly pessimistic, were not being needlessly pessimistic, only pessimistic based on prior experience. It can be done, anything can be ported to anything, but the question whether you have the time and expertise to figure it out. I myself am doubtful i could figure it out in a reasonable amount of time. And sadly reverse engineering their prebuilt images might be easier than looking for nonexistent documentation 09:12:25
@theelevated:matrix.orgtheelevated magic_rb: ElvishJerricco as a former gentoo crackhead who have squished kernel boot times to their absolute limits in the name of de-bloating. It could work if you strip all of the blaot from the kernel and the boot is either uefi or legacy. uefi it's reverse engineer time if legacy we are golden. I just need a system to boot the milkv duo and ship software to it with custom compilled software with only necessary use flags etc. nixos could be a perfect substitute for gentoo since its bloated on python 09:31:29
@elvishjerricco:matrix.orgElvishJerriccolol09:31:56
@elvishjerricco:matrix.orgElvishJerriccoimagine if we were so lucky that it would do legacy PC boot or uefi09:32:05
@elvishjerricco:matrix.orgElvishJerriccoalmost certainly it's something completely different and specific to the vendor09:32:16
@elvishjerricco:matrix.orgElvishJerriccoe.g. the rpi ships a firmware partition, and the board knows to boot a start4.elf file from there, and that file knows how to look at config files on the firmware partition to find a raw binary image to load and execute09:33:15
@theelevated:matrix.orgtheelevatedjust download the image and load nix to it. if the vendor is nice the config file is in the kernel and the firmware and device drivers are on github (thank god)09:34:14
@theelevated:matrix.orgtheelevatedsaves the reverse engineering efforts09:35:05
@k900:0upti.meK900There is no "UEFI" or "legacy" on those boards09:35:05
@k900:0upti.meK900It's very bespoke09:35:07
@k900:0upti.meK900And very likely going to make no sense09:35:13
@k900:0upti.meK900And NixOS requires Perl at runtime unless you want to dip into extremely experimental options09:35:35
@k900:0upti.meK900And probably also Python09:35:41
@k900:0upti.meK900So if you really want a system you can rice to be as "bloat free" as possible, you're probably not looking at the right thing09:36:01
@theelevated:matrix.orgtheelevated
In reply to @k900:0upti.me
And NixOS requires Perl at runtime unless you want to dip into extremely experimental options
os or package manager?
09:36:55
@k900:0upti.meK900OS09:37:02
@elvishjerricco:matrix.orgElvishJerriccoyou're not going to get nix to work as a package manager at all on 256M of ram09:37:16
@elvishjerricco:matrix.orgElvishJerriccothe best you'll do is use nix on another machine to build an image file you can boot09:37:26
@elvishjerricco:matrix.orgElvishJerriccobut nixpkgs causes nix evaluation to take quite large amounts of ram for even basic things09:37:45
@theelevated:matrix.orgtheelevated
In reply to @elvishjerricco:matrix.org
you're not going to get nix to work as a package manager at all on 256M of ram
i have the 64 mb version :>
09:38:21
@elvishjerricco:matrix.orgElvishJerriccoand even if you avoid eval'ing with copying NAR closures around, even importing NARs is pretty memory-intensive with Nix (though this has gotten better than it used to be)09:38:42
@elvishjerricco:matrix.orgElvishJerricco * and even if you avoid eval'ing withbycopying NAR closures around, even importing NARs is pretty memory-intensive with Nix (though this has gotten better than it used to be)09:38:48
@elvishjerricco:matrix.orgElvishJerricco * and even if you avoid eval'ing by copying NAR closures around, even importing NARs is pretty memory-intensive with Nix (though this has gotten better than it used to be)09:38:52
@theelevated:matrix.orgtheelevated
In reply to @k900:0upti.me
OS
if we only patch the image and load the nix package manager
09:39:10
@theelevated:matrix.orgtheelevatedcould work??09:39:14
@elvishjerricco:matrix.orgElvishJerriccoagain, there is no way to use it as a package manager on so little ram09:39:30

Show newer messages


Back to Room ListRoom Version: 10