!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

255 Members
86 Servers

Load older messages


SenderMessageTime
27 Jun 2024
@bl0v3:matrix.orgbl0v3and wrote/fixed countless drvs / modules but that was just fox riscv22:27:15
@bl0v3:matrix.orgbl0v3i have no clue how these mainframes work though, what bootloaders are available and or if there are some special reqiurements for the kernel. D'de22:28:59
@bl0v3:matrix.orgbl0v3if anyone has some thoughts or suggestions to share on how to go on about this most ideally please let me know, note however i do not plan to turn this into anything serious or think there'd be much use for it. Id essentially just see if it can be done, write a small blogpost about it. run the infamous neofetch on it once and thats about it22:32:29
@bl0v3:matrix.orgbl0v3so i don't exactly need it to be lets say in the state risc-v is currently at, but it would be nice to actually generate a proper bootable image and have an install target (bootloader directive) or sth. Like im looking to close the gap between making a tarball or whatever and actually installing it22:35:14
@bl0v3:matrix.orgbl0v3ideally id like to get this to a point where i could build an iso (or whatever this thing can boot from) and setup the drives ideally declarative via disko or sth 22:36:43
@bl0v3:matrix.orgbl0v3its ok if some packages wont' build right away or ever im already used to that from riscv but like it would still be nice to at least get the minimal profile or sth to work so that i don't have to use crossPackages and can select generations from the bootloader somehow 22:38:17
@bl0v3:matrix.orgbl0v3image.png
Download image.png
22:39:07
@bl0v3:matrix.orgbl0v3its sorta old but this is how it looks, like that model I got here to play with22:39:27
@bl0v3:matrix.orgbl0v3as i recall what id need to do is get the bootstrap packages to compile and write a module to provide whatever is used as a bootloader on these22:40:16
28 Jun 2024
@trofi:matrix.orgtrofiyeah, getting bootstrap tools to cross-compile is a good first step. could start at https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/linux/make-bootstrap-tools-cross.nix05:20:38
@trofi:matrix.orgtrofihttps://github.com/NixOS/nixpkgs/pull/314823 might also be useful05:23:54
@bl0v3:matrix.orgbl0v3nice thanks12:52:47
@bl0v3:matrix.orgbl0v3this should have it somewhat covered12:52:56
@bl0v3:matrix.orgbl0v3say, do you happen to know how i could build the absolute smallest nixos system possible. I may look at the stuff microvm.nix uses as they also shrink their system output.toplevel by a fair bit in terms of deps/size12:54:51
@bl0v3:matrix.orgbl0v3its not like this mainframe would have any issues running a bigger system its just like the less deps i need to cross compile the better for now12:55:49
@bl0v3:matrix.orgbl0v3because once in a while some package or its dependency fails and then some shitty make/ninja/cake/m4/autotools/built.sh whatever build helpers fail to compile it12:57:01
@bl0v3:matrix.orgbl0v3so i then need to fix these and its a big waste of time id much rather focus on getting nixos/nix up and then compile the rest natively as best as possible12:57:56
@bl0v3:matrix.orgbl0v3currently i put this in excluded modules ${nixpkgs}/nixos/modules/profiles/base.nix"12:59:58
@bl0v3:matrix.orgbl0v3and included the headless thing13:00:16
@alex:tunstall.xyzAlex
In reply to @bl0v3:matrix.org
say, do you happen to know how i could build the absolute smallest nixos system possible. I may look at the stuff microvm.nix uses as they also shrink their system output.toplevel by a fair bit in terms of deps/size
It is possible to go well under 1 GiB by removing systemd (and Nix itself, if you don't need it), but doing so involves a lot of blacklisting and deep hacking. For the absolute smallest, you also need to give up compatibility (e.g. by disabling unused kernel modules).
13:48:50
@bl0v3:matrix.orgbl0v3i went with libressl initially but that didn't work out13:57:34
@bl0v3:matrix.orgbl0v3libressl removed support for s390x13:58:52
@bl0v3:matrix.orgbl0v3as in their build system dosn't even detect it 13:59:03
@bl0v3:matrix.orgbl0v3i tried to patch it by copying some headers of the mips platform 13:59:31
@bl0v3:matrix.orgbl0v3(as these aren't platform specific)13:59:45
@bl0v3:matrix.orgbl0v3but as it seems that doesn't really help , even alpine linux gave up on libressl on s390x these days13:59:59
@bl0v3:matrix.orgbl0v3ok16:34:17
@bl0v3:matrix.orgbl0v3so16:34:18
@bl0v3:matrix.orgbl0v3.#nixosConfigurations.z10.config.system.build.toplevel 's drv finished building now16:34:31
@bl0v3:matrix.orgbl0v3for s390x16:34:41

Show newer messages


Back to Room ListRoom Version: 6