Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

129 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation



A zero-misplay kernel with Firelzrd, CachyOS, TKG, XanMod, Clear Linux patches and more, built from Fedora Koji SRPMs.

This repository provides a set of tools to automatically build patch and compile the Linux Kernel from Fedora Koji SPRMs, with a selection of patches and configurations aiming for a better system responsiveness.


W H Y ?

Why P03? He is a character defined by obsessive optimization β€” he takes something already functional and tears it apart, rebuilds it piece by piece, and won't stop until it performs exactly the way he envisions. That's precisely what this kernel is: Fedora's solid, well-tested base, stripped down and reassembled with handpicked patches, a custom scheduler, compiler optimizations, and configurations that aren't present on the stock kernel. It's built to be exactly what it needs to be.

✨

F E A T U R E S

  • Built on top of Fedora Koji Sources with Fedora's baseconfigs
  • Local Automatic Secureboot Signing and Key generation (For nvidia drivers too!)
  • NVIDIA-Open Kernel Modules support
  • ThinLTO or FullLTO (Copr builds are ThinLTO)
  • LRU-Marie
  • Nap CPUIdle governor
  • Per-CPU ISA Optimizations (Copr only provides Generic x86-64v3 and v2)
  • 750hz tickrate
  • Built with LLVM + O3 + Polly Clang + Mimalloc
  • BORE scheduler
  • BBRv3 congestion control and FQ qdisk
  • OpenRGB Support
  • AMD HDMI-FRL Support
  • xConfig and nConfig during build
  • ADIOS I/O Scheduler
  • Handheld support (ROG Ally, Steam Deck, etc)
  • VHBA and AUFS support
  • Microsoft Surface support
  • Piece-Of-Cake (POC) CPU Selector
  • Dynamic PREEMPT (Lazy by default)
  • Passive intel_pstate and amd_pstate
  • Catastrophic Misplay Screen: A custom P03-themed QR-Code panic screen for those rare, fatal errors.
  • And many more!



A massive thank you to RakuOS for adopting this project as their default system kernel!

Being chosen as the default kernel for an entire distribution is a huge honor. I am incredibly grateful to the RakuOS developers and community for their trust, valuable testing, and continuous support.


πŸ”¨

B U I L D I N G

The specfile is packed with toggles β€” compiler, LTO mode, optimization level, tickrate, ISA level, Secure Boot, NR_CPUS, and more. Feel free to edit it before building. In particular, setting _interactive_config 1 launches xconfig mid-build so you can tweak every single Kconfig option by hand before compilation starts.

Note

Building the kernel takes 1–2 hours depending on your hardware. A full build requires ~10 GB of free disk space. See the RAM tip in step 6 to avoid writing to disk entirely.

1 - Prerequisites

Install the RPM development tools if you don't have them yet:

sudo dnf install rpmdevtools

2 - Initialize the rpmbuild tree

This creates the standard ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} folder structure. Only needed once.

rpmdev-setuptree

3 - Download and place the spec file

wget https://raw.githubusercontent.com/CatPieLeaf/linux-p03/refs/heads/main/sources/kernel-p03/kernel-p03.spec -O ~/rpmbuild/SPECS/kernel-p03.spec

4 - Install all build dependencies

Reads every BuildRequires from the spec and installs them automatically:

sudo dnf builddep ~/rpmbuild/SPECS/kernel-p03.spec

5 - Download sources and patches

Downloads all URLs listed as Source: and Patch: entries into ~/rpmbuild/SOURCES/. The Fedora kernel SRPM itself is fetched automatically from Koji during the build β€” no extra step needed.

spectool -g -R ~/rpmbuild/SPECS/kernel-p03.spec

6 - Build

rpmbuild -bb ~/rpmbuild/SPECS/kernel-p03.spec

Output RPMs land in ~/rpmbuild/RPMS/x86_64/. Install them with:

sudo dnf install ~/rpmbuild/RPMS/x86_64/kernel-p03-*.rpm

Tip

Build in RAM to save SSD health (requires ~10 GB of free RAM). Run this before step 6:

sudo mount -t tmpfs -o size=10G tmpfs ~/rpmbuild/BUILD

πŸ“¦

I N S T A L L A T I O N

Pre-built packages are available on COPR β€” no need to build from source unless you want a custom configuration.

Warning

βš™οΈ C P U - S U P P O R T

/lib64/ld-linux-x86-64.so.2 --help | grep "(supported, searched)"

If it does not detect x86_64_v3 support, do not install the default kernel. Otherwise, you will end up with a non-functioning operating system! You should install the gcc x86_64 v2 kernel by running sudo dnf install kernel-p03-gcc

πŸ”΅ F E D O R A - W O R K S T A T I O N

sudo dnf copr enable catpieleaf/kernel-p03
sudo dnf install kernel-p03

Warning

Run immediately after installation if using Secure Boot:

sudo mokutil --import /etc/kernel/certs/p03-kernel/mok.der

βšͺ F E D O R A - S I L V E R B L U E

sudo wget https://copr.fedorainfracloud.org/coprs/catpieleaf/kernel-p03/repo/fedora-$(rpm -E %fedora)/catpieleaf-kernel-p03-$(rpm -E %fedora).repo -O /etc/yum.repos.d/catpieleaf-kernel-p03.repo
sudo rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra --install kernel-p03
sudo systemctl reboot

Warning

Run immediately after installation if using Secure Boot:

sudo mokutil --import /etc/kernel/certs/p03-kernel/mok.der

🟒 N V I D I A

sudo dnf install kernel-p03-nvidia-open
dnf info kernel-p03-nvidia-open

After installation, download and install the NVIDIA driver matching the version shown by dnf info above.

Warning

Always install the NVIDIA driver with the flags below, otherwise it will try to build its own kernel modules and conflict with the ones already installed.

sudo sh ./NVIDIA-Linux-x86_64-*.run --no-kernel-modules --no-dkms --no-nouveau-check

πŸ“‘

C R E D I T S


About

A zero-misplay kernel with Firelzrd, CachyOS, TKG, XanMod, Clear Linux patches and more, built from Fedora Koji SRPMs.

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages