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.
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.
- 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.
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.
Install the RPM development tools if you don't have them yet:
sudo dnf install rpmdevtoolsThis creates the standard ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} folder structure. Only needed once.
rpmdev-setuptreewget https://raw.githubusercontent.com/CatPieLeaf/linux-p03/refs/heads/main/sources/kernel-p03/kernel-p03.spec -O ~/rpmbuild/SPECS/kernel-p03.specReads every BuildRequires from the spec and installs them automatically:
sudo dnf builddep ~/rpmbuild/SPECS/kernel-p03.specDownloads 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.specrpmbuild -bb ~/rpmbuild/SPECS/kernel-p03.specOutput RPMs land in ~/rpmbuild/RPMS/x86_64/. Install them with:
sudo dnf install ~/rpmbuild/RPMS/x86_64/kernel-p03-*.rpmTip
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/BUILDPre-built packages are available on COPR β no need to build from source unless you want a custom configuration.
Warning
/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
sudo dnf copr enable catpieleaf/kernel-p03
sudo dnf install kernel-p03Warning
Run immediately after installation if using Secure Boot:
sudo mokutil --import /etc/kernel/certs/p03-kernel/mok.dersudo 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.reposudo rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra --install kernel-p03
sudo systemctl rebootWarning
Run immediately after installation if using Secure Boot:
sudo mokutil --import /etc/kernel/certs/p03-kernel/mok.dersudo dnf install kernel-p03-nvidia-open
dnf info kernel-p03-nvidia-openAfter 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- P03 and Inscryption are property of Daniel Mullins Games and Devolver Digital. This kernel is a non-commercial fan project and not affiliated with or endorsed by the original creators.
- Patches and configuration files from Linux-TKG
- Patches from Mauri870's Custom Kernel
- Patches from babiulep's Custom Kernel
- Patches from CachyOS Kernel
- Patches from XanMod Kernel
- Bore patches from Firelzrd
- ADIOS patches from Firelzrd/adios
- POC patches from Firelzrd/poc-selector
- Based on the specfile from CachyOS for Fedora COPR
- ISA Patches from graysky2/kernel_compiler_patch
- LRU-Marie patches from Firelzrd/lru_marie
- Nap patches from NikoMalik/nap
- Surface patches from Linux-surface







