!kyXJonZuBXCGzVwuSn:nixos.org

Systems Programming

286 Members
Kernel, stdenv, low-level hacking, patchelf, … 72 Servers

Load older messages


SenderMessageTime
2 May 2024
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org set a profile picture.21:19:14
6 May 2024
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org changed their display name from nick_kadutskyi to nickkadutskyi.17:33:24
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org left the room.17:35:39
8 May 2024
@checooh:matrix.orgchecooh joined the room.11:58:14
@vzxplnhqr:matrix.orgvzxplnhqr joined the room.22:54:18
@vzxplnhqr:matrix.orgvzxplnhqrI am new to low level linux/nixos things (like kernel patching and whatnot). I want to disable all network-related things at the kernel level (ethernet, wifi, bluetooth, ...).22:56:45
@vzxplnhqr:matrix.orgvzxplnhqrI found the "custom configuration" section on the wiki (https://nixos.wiki/wiki/Linux_kernel), is that probably the best strategy?22:57:55
9 May 2024
@tammi:greyseal.euTammi (ey/em) i was trying to run crash on a nixos system where i enabled kdump support in the kernel, but i don't think it is even packaged? or did i miss it?
i am talking about https://crash-utility.github.io/ which gives you the crash command which you can use to read kdumps or even attach to a live running kernel.
i might be out of touch here but to me it is a common old utility that i use frequently on other systems.
08:59:16
@lunarequest:greyseal.eulunarequest ⚡️ joined the room.13:45:27
@lunarequest:greyseal.eulunarequest ⚡️ hi I am trying to compile a kernel with thin lto and KCFI. I managed to override the stdenv and use clang however I'm running into some issues with building with think lto. using boot.kernelPatches i wanted to set LTO_NONE to no and LTO_CLANG, LTO_CLANG_THIN to y. However LTO_NONE is not set. Instead i get an error error: option not set correctly: LTO_NONE (wanted 'n' got 'y') any ideas how i can fix this? 13:50:26
@thefossguy:matrix.orgPratham PatelCan you share the part of your config about how you're doing this?13:52:09
@lunarequest:greyseal.eulunarequest ⚡️https://github.com/Lunarequest/nixos-luna-config/blob/mistress/hosts/lifrith/modules/kernel.nix#L11-#L1713:52:24
@thefossguy:matrix.orgPratham Patel Have you tried using extraConfig instead? That's the recommended method to override the kernel config IIRC. 13:58:51
* @thefossguy:matrix.orgPratham Patel is afk13:59:00
@lunarequest:greyseal.eulunarequest ⚡️can someone link how to use extraConfig with the kernel?14:04:21
@lunarequest:greyseal.eulunarequest ⚡️ so i figured out extraConfig should be option n/y/m I'm still getting the same error 14:12:34
@thefossguy:matrix.orgPratham Patel Does it pass the kconfig configuration section if you disable just the clang-sexy "patch"? If yes, then you have a kconfig dependency problem. 14:17:07
@lunarequest:greyseal.eulunarequest ⚡️yeah but i specifically want to resolve this problem14:18:03
@k900:0upti.meK900 extraStructuredConfig is correct 14:18:27
@lunarequest:greyseal.eulunarequest ⚡️is there a way to "unset" a option in extraStructedConfig?14:18:51
@k900:0upti.meK900no14:18:54
@thefossguy:matrix.orgPratham Patel Well in that case, take the config file from the successful build and run make menuconfig on it and see the diff to know what is interfering. 14:19:07
@k900:0upti.meK900But that's not the point anyway14:18:57
@k900:0upti.meK900I'm pretty sure your problem is that you're just never giving it clang14:19:05
@k900:0upti.meK900So you can't have thinLTO14:19:09
@k900:0upti.meK900Because you don't have clang14:19:13
@lunarequest:greyseal.eulunarequest ⚡️
In reply to@k900:0upti.me
I'm pretty sure your problem is that you're just never giving it clang
nope i am giving it clang
14:19:17
@k900:0upti.meK900Where?14:19:22
@lunarequest:greyseal.eulunarequest ⚡️https://github.com/Lunarequest/nixos-luna-config/blob/da084d44740ea6d482bfbb914fc47cc3692ea5bd/hosts/lifrith/configuration.nix#L2614:19:48
@k900:0upti.meK900Oh OK14:20:19

Show newer messages


Back to Room ListRoom Version: 6