환경: Windows 10, WSL: Ubuntu 22.04 LTS, Raspberry Pi 4
git clone --depth=1 https://github.com/raspberrypi/linux
cd linux
sudo apt update
sudo apt install gcc-arm-linux-gnueabihf bc bison flex libssl-dev make
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2711_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j$(nproc) zImage modules dtbs
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs -j$(nproc)
mkdir -p /mnt/c/Users/user/kernel_output
cp arch/arm/boot/zImage /mnt/c/Users/user/kernel_output/kernel7.img
cp arch/arm/boot/dts/broadcom/*.dtb /mnt/c/Users/user/kernel_output/
kernel_output 폴더 그대로 boot 파티션에 덮어쓰기
kernel=kernel7.img
