How to Recompile Linux (on a Raspberry Pi)
Because I get the same question on every video where I recompile the Linux kernel on a Pi to work on GPU or other hardware driver support, I finally made a video answering it:
How do you recompile Linux?
In my case, since I mostly rebuild the kernel for the Pi, I rebuild Raspberry Pi's Linux kernel fork instead of 'mainline' linux (the upstream Linux kernel source).
There are a couple great guides for recompiling Linux on the Pi:
- Jeff Geerling's cross-compile environment, with guides for compiling on a Pi, or from any other computer quickly, using a containerized build environment that's easy to set up on Mac, Windows, or Linux.
- Raspberry Pi's thorough guide for building and cross-compiling Linux, including how to compile 32-bit versions for older generations of Pi.
My video today mostly goes through that (with a few little tips on making the experience more convenient):
In the video, I also mention one practical reason I'm rebuilding the kernel currently is to work on Raspberry Pi (and more broadly, arm64) support for Intel Arc GPUs (I'm testing a B580 and A750 currently.)
And yes, the Raspberry Pi should support Resizable BAR, though we're trying to figure out why the Xe drivers aren't working correctly with it right now.
Comments