MENU

Fun & Interesting

How to recompile Linux (on a Raspberry Pi)

Level 2 Jeff 63,992 lượt xem 2 months ago
Video Not Working? Fix It Now

Recompiling Linux isn't as daunting as you think.

Some of the resources I mentioned in this video:

- Raspberry Pi Linux guide: https://www.raspberrypi.com/documentation/computers/linux_kernel.html
- Cross-compile Linux for the Pi: https://github.com/geerlingguy/raspberry-pi-pcie-devices/tree/master/extras/cross-compile
- Intel Arc A750 on Pi 5: https://github.com/geerlingguy/raspberry-pi-pcie-devices/issues/510
- Intel Arc B580 on Pi 5: https://github.com/geerlingguy/raspberry-pi-pcie-devices/issues/695
- Raspberry Pi OS moving to kernel 6.12: https://forums.raspberrypi.com/viewtopic.php?t=379745
- Ubuntu Mainline Kernels utility: https://github.com/bkw777/mainline?tab=readme-ov-file#install

Support me on Patreon: https://www.patreon.com/geerlingguy
Sponsor me on GitHub: https://github.com/sponsors/geerlingguy
Merch: https://www.redshirtjeff.com
2nd Channel: https://www.youtube.com/@GeerlingEngineering
3rd Channel: https://www.youtube.com/@Level2Jeff

Contents:

00:00 - Why recompile Linux?
01:15 - Get the Linux kernel source
03:00 - Selecting kernel options and adding modules
04:31 - Patching the kernel and compiling
06:52 - Recompiling (is faster)
07:27 - Placing the new kernel, modules, and DTBs
08:35 - Checking for success!
09:41 - Alternative ways to get newer kernels

Comment