-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Mastering Embedded Linux Development
By :

Building and booting Linux is highly device-dependent. In this section, I will show you how it works for the Raspberry Pi 4, BeaglePlay, and QEMU. For other target boards, you must consult the information from the vendor or from the community project if there is one.
Even though there is support for the Raspberry Pi 4 in the mainline kernel, I prefer to use the Raspberry Pi Foundation’s fork of Linux (https://github.com/raspberrypi/linux) for stability. 6.6 was the latest long-term kernel supported by that fork in August 2024, so that is the version we shall build.
Since the Raspberry Pi 4 has a 64-bit quad-core Arm Cortex-A72 CPU, we will use the Bootlin toolchain from Chapter 2, to cross-compile a 64-bit kernel for it.
Install a package we need to build the kernel:
$ sudo apt install libssl-dev
Now that you have the requisite toolchain and packages installed, clone the 6.6.y
...