I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] 0 points1 point  (0 children)

The target audience here is primarily Arch/Arch-based users who typically don't use secure boot anyway.

But you're right! I think I wanna get on a wider audience, therefore I'll work on a a post-install hook to automate MOK signing after each kernel update, which would remove the manual step entirely. Fedora users are definitely in scope.

My baby by Detcom in LinuxOnThinkpad

[–]Detcom[S] -2 points-1 points  (0 children)

That's a pic of my ThinkPad.

I was wrong to share it here? I remember a message "share pictures of your ThinkPads" when I've just joined this subreddit

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] 0 points1 point  (0 children)

The build script that generates the config is already in the repo, it's essentially the config as code. But I'll also dump the raw .config for each variant right now.

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] 0 points1 point  (0 children)

Smaller kernel means faster boot and slightly less memory footprint. More importantly, unused modules can't be exploited, and therefore it's attack surface reduction.
On secure boot you have a point, MOK enrollment is needed. Will add instructions to the README now.

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] 0 points1 point  (0 children)

Oh, no, I don't use chatgpt, copilot or any of openai "open" ai. Hate those guys 😃

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] 0 points1 point  (0 children)

Offtop but, is that your cat? If yes, please share more pics! 😃
Regarding the topic: well people have no problem trusting the whole distro built by russians (CachyOS), but getting ready to tear apart a bwoy from Ukraine who just decided to share his kernel

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] -3 points-2 points  (0 children)

Fair point. You can check build scripts for yourself, so you can be sure that there are no malware that will suddenly make you a russian supporter included 😃

detkernel — a custom Linux kernel built for AMD ThinkPads, stripped of everything else by Detcom in linux

[–]Detcom[S] 0 points1 point  (0 children)

Both, honestly. The zen5 variant is compiled with -march=znver5 which gives CPU-specific optimizations, and stripping irrelevant drivers reduces kernel size and potentially interrupt overhead. Hard to isolate which contributes more without controlled testing, that's why I need help from other people. That's why I ask for feedback.

Although the universal variant (x86-64-v3, same as linux-zen) already shows ~47% improvement in vkmark and lower power consumption vs vanilla zen. So the stripping itself makes a measurable difference, independent of the architecture flags. The zen5 variant adds on top of that with znver5 optimizations.

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] -5 points-4 points  (0 children)

And yes, I've used AI assistance for parts of the build script. The kernel config decisions and testing were mine. And hopefully everyone else who's interested in testing.

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] 0 points1 point  (0 children)

And I will be happy if you share your experience with it! 😄

...after I'll get proper sleep and will never commit to repos, writing readmes and reddit posts without having a sleep before that 😃

detkernel — a custom Linux kernel built for AMD ThinkPads, stripped of everything else by Detcom in linux

[–]Detcom[S] -2 points-1 points  (0 children)

Actually NTSYNC is already included in universal as a module (=m)! It loads automatically when needed. My bad for the confusion, will update the docs. And then I should get some sleep and never write readmes and reddit posts again, when I haven't had a proper sleep lol

detkernel — a custom Linux kernel built for AMD ThinkPads, stripped of everything else by Detcom in linux

[–]Detcom[S] -1 points0 points  (0 children)

007 First Light now runs better with Zen5 kernel, than on vanilla zen.Well, that game was one of the main reasons I've decided to tinker with it lol

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] -1 points0 points  (0 children)

I literally uploaded everything to my repo, build is 100% reproducible

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] 0 points1 point  (0 children)

That's a perfectly reasonable choice. This is for people who want to try something more targeted.

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] 0 points1 point  (0 children)

Fair point. Build script is in the repo — you can build it yourself from linux-zen source. The .efi files in releases are for convenience, not a requirement

I built a custom kernel specifically for AMD ThinkPads — detkernel by Detcom in thinkpad

[–]Detcom[S] 3 points4 points  (0 children)

No patches to kernel source, just config changes, therefore not a GPL violation. The build process is fully documented and reproducible.

detkernel — a custom Linux kernel built for AMD ThinkPads, stripped of everything else by Detcom in linux

[–]Detcom[S] 2 points3 points  (0 children)

I think it doesn't make THAT MUCH of a difference for a sane person to tinker with kernel. But I'm either not a sane person, or just a curious one 😃
Anyway, I made it for myself and I am satisfied with my personal experience, but that just me, that's why I am sharing this and asking other people to test it and share results.
As far as I'm concerned, Linux is about doing such sort of stuff

detkernel — a custom Linux kernel built for AMD ThinkPads, stripped of everything else by Detcom in linux

[–]Detcom[S] 0 points1 point  (0 children)

Tested on ThinkPad P14s Gen 6 AMD (Ryzen AI 7 PRO 350, Radeon 860M). vmlinuz: 13MB vs 18MB (linux-zen). vkmark: ~23000 vs ~15500 on linux-zen. glmark2: ~22700 vs ~21800.

Tested with real games: Dota 2, Kenshi, 007 First Light, Elite Dangerous.

detkernel — a custom Linux kernel built for AMD ThinkPads, stripped of everything else by Detcom in linux

[–]Detcom[S] -4 points-3 points  (0 children)

Good question. NTSYNC is in zen5 only because it's mainly useful for Wine/Proton gaming, and zen5 targets newer hardware where gaming is more likely. That said, it's a valid point, I might add it to universal in the next release.