Build kernel image for Raspberry Pi 3B

less than 1 minute read

Download source code

git clone --depth=1 https://github.com/raspberrypi/linux.git

Build zImage and modules

cd linux
KERNEL=kernel7
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- rpi3_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs

References: