Okay, let's figure out which Linux kernel version from the Raspberry Pi Linux GitHub repository (https://github.com/raspberrypi/linux) is best for your custom Raspberry Pi 5 minimal OS.
Here's how we can approach this:
-
Understand the Kernel Versioning Scheme: Linux kernels use a versioning scheme like 6.x.y, where 6 is the major version, x is the minor version, and y is the patch level. Newer minor versions (e.g., 6.7, 6.8) generally include more features, bug fixes, and hardware support than older ones (e.g., 6.6).
-
"rpi-" Branches: The rpi-6.x.y branches in the Raspberry Pi Linux repository are where Raspberry Pi-specific patches and modifications are applied to the mainline Linux kernel. This is crucial for proper hardware support on your Raspberry Pi.
-
"Placeholder" Consideration: You're right to be cautious about assuming that the existence of a branch like rpi-6.14.y automatically means it's a fully functional, stable option. It could be a placeholder or under heavy development.
To get the most up-to-date and accurate information, I will use the search tool to determine the latest stable kernel and the status of the various rpi- branches.
Based on the search results, here's a breakdown of what you should consider:
- Raspberry Pi OS Kernel: The Raspberry Pi OS is currently based on Linux 6.6 LTS (Long Term Support)[1][2].
- Kernel 6.6 LTS: This is a stable, well-supported option and likely a good starting point for your custom OS. It includes improvements for Raspberry Pi 5[1][3][4].
- Newer Kernels (6.7 - 6.14): While these exist in the
raspberrypi/linux repo, it's not guaranteed they are fully tested or optimized for the Raspberry Pi 5. They might be in active development[3]. The existence of a branch doesn't mean it's production-ready[3].
- Mainline vs. rpi Kernels: The
rpi- branches are essential because they include Raspberry Pi-specific patches. You can't just use a generic kernel 6.x and expect everything to work.
Recommendation:
-
Start with rpi-6.6.y: This is the most sensible approach. It's the kernel that the official Raspberry Pi OS uses and is known to work well with the Raspberry Pi 5. It's also an LTS (Long Term Support) kernel, meaning it will receive updates and bug fixes for a longer period[3].
-
Evaluate Newer Kernels Carefully: If you need a feature in a newer kernel (e.g., something in 6.7, 6.8, etc.), proceed with caution[2][3][5].
- Check the Raspberry Pi forums and GitHub issues for information on the stability and Pi-specific support of these kernels.
- Be prepared to troubleshoot and potentially contribute patches yourself[2][3][5].
- It might be better to backport the specific feature you need to the 6.6 kernel.
In summary, for a minimal OS, stability and existing Raspberry Pi 5 support are paramount. rpi-6.6.y gives you the best chance of success.