Detcom

joined 1 week ago
[–] Detcom@lemmy.world 1 points 1 week ago

Gentoo users would just use the build script (which is there). The binary releases are for people who want the benefits without the 20-minute compile time (and I've spent much more than 20 minutes, because I've recompiled and tested the hell out of it for multiple times). Trust is a valid concern, the config files are in the repo so you can verify what's in there.

[–] Detcom@lemmy.world 2 points 1 week ago

Good points. Yes, the kernel is monolithic but built-in vs module still affects initramfs size and boot time. On stability agreed, that's actually part of the motivation. Less code, fewer potential issues on specific hardware. Also, I might not be quite a sane person, so for past few weeks I tinkered with it so I will be happy with my linux setup on my thinkpad. Then I just decided to share it, because why not?

[–] Detcom@lemmy.world 1 points 1 week ago

Essentially yes, it's a build script that sets config options. The value is that someone already figured out what to disable for AMD ThinkPads specifically (and test it out), so you don't have to.

[–] Detcom@lemmy.world 1 points 1 week ago (1 children)

You're right that unused modules don't load into memory. The real gains are smaller initramfs (faster boot), reduced attack surface, and the zen5 variant adds 500Hz tick, BBRv3 and NTSYNC which you don't get in vanilla kernels. Filesystems point is fair, I kept the common ones (ext4, xfs, btrfs, f2fs, ntfs3).

[–] Detcom@lemmy.world 1 points 1 week ago

That's actually the plan — working on proper packages so it can be updated like any other kernel. For now the UKI file is a single drop-in which is about as simple as it gets for systemd-boot users.

 

I've been running AMD ThinkPads for a while and always felt like the stock kernel carries a lot of dead weight, like Intel CPU/GPU drivers, NVIDIA, Dell/HP/Asus vendor blobs, server SCSI controllers, legacy filesystems, ancient WiFi drivers from 2003. None of that belongs on a ThinkPad.

So I built detkernel (yeah, I know), a custom kernel that strips all of that out and keeps only what AMD ThinkPads actually need.

What's removed:

  • Intel CPU/GPU (i915, xe, microcode)
  • NVIDIA (nouveau)
  • All non-ThinkPad vendor drivers (Dell, HP, Asus, Sony, Apple...)
  • Server SCSI controllers (Adaptec, LSI, HP SmartArray...)
  • Legacy WiFi (Prism, ZyDAS, old Ralink, IPW2100/2200...)
  • Dead filesystems (ReiserFS, HFS, UFS, JFFS2...)
  • Legacy network protocols (AppleTalk, ATM, X.25...)

What stays:

  • Full AMD support (Zen1–Zen5, RDNA GPU, ACP audio, PMC, P-state)
  • All ThinkPad WiFi chips (Intel AX, Qualcomm WCN, MediaTek MT7921/MT7925, Realtek RTW89)
  • Realtek LAN (it's in every ThinkPad)
  • HDA Realtek audio + USB audio
  • ThinkPad ACPI, HID Lenovo
  • KVM/AMD, VFIO

Two variants:

  • detkernel-universal — x86-64-v3, works on all AMD ThinkPads (T495 and newer)
  • detkernel-zen5 — znver5, for Ryzen AI 300 series (T14 G5-G6, T16 G3, P14s G5-G6), includes 500Hz tick, BBRv3 TCP, NTSYNC for Wine/Proton

Distributed as UKI (.efi) for systemd-boot users — just drop it in /boot/EFI/Linux/ and reboot. vmlinuz + initramfs also available for GRUB/rEFInd.

Currently based on Linux 7.0.12-zen1.

GitHub: https://github.com/Detcom-GH/detkernel

Looking for testers, especially on older models (T495, T14 G1-G2, L14/L15). Would love to hear how it runs on your machine.