Skip to content

MyDedibox

Having fun with various projects…

  • rpi(4): sdl2 kms/drm compilation (no X) raspberrypi
  • dreamboot: A custom bios for the Sega Dreamcast dreamcast
  • rpi4: custom modes on a CRT TV, the “Holy Grail” ? emulation
  • Dreamcast SDK: Installing the open source KallistiOS SDK dreamcast
  • RetroDream: a new dreamcast iso loader (and more) dreamcast
  • rpi(4): rpi os + kms + retroarch (no X) emulation

rpi(4): build and install a custom kernel

Posted on 26 November 202027 September 2022 By cpasjuste No Comments on rpi(4): build and install a custom kernel

Here are the instruction to build (cross compilation) and install a custom kernel for Raspbian OS. This can be useful when new features are available from the raspberrypi linux repositories but not yet available via a standard update.


  • Build the kernel (32 bits) (cross compilation, ubuntu/debian):
sudo apt install git bc bison flex libssl-dev make libc6-dev libncurses5-dev crossbuild-essential-armhf
git clone --depth=1 https://github.com/raspberrypi/linux.git
cd linux
KERNEL=kernelv7l+
make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2711_defconfig
make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
  • Install the kernel (32 bits)
KERNEL=kernelv7l+
mkdir mnt
mkdir mnt/fat32
mkdir mnt/ext4
sudo mount /dev/sdb1 mnt/fat32
sudo mount /dev/sdb2 mnt/ext4
sudo env PATH=$PATH make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=mnt/ext4 modules_install
sudo cp mnt/fat32/$KERNEL.img mnt/fat32/$KERNEL-backup.img
sudo cp arch/arm/boot/zImage mnt/fat32/$KERNEL.img
sudo cp arch/arm/boot/dts/*.dtb mnt/fat32/
sudo cp arch/arm/boot/dts/overlays/*.dtb* mnt/fat32/overlays/
sudo cp arch/arm/boot/dts/overlays/README mnt/fat32/overlays/
sudo umount mnt/fat32
sudo umount mnt/ext4
  • Enable the newly compiled kernel (/boot/config.txt)
kernel=kernelv7l+.img
raspberrypi

Post navigation

Previous Post: dreamboot: A custom bios for the Sega Dreamcast
Next Post: rpi(4): rpi os + kms + retroarch (no X)

Related Posts

  • rpi(4): rpi os + kms + retroarch (no X) emulation
  • rpi4: custom modes on a CRT TV, the “Holy Grail” ? emulation
  • rpi(4): sdl2 kms/drm compilation (no X) raspberrypi

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • Dreamcast SDK: Installing the open source KallistiOS SDK
  • rpi4: custom modes on a CRT TV, the “Holy Grail” ?
  • rpi(4): sdl2 kms/drm compilation (no X)
  • rpi(4): rpi os + kms + retroarch (no X)
  • rpi(4): build and install a custom kernel

Recent Comments

  • Ana on rpi4: custom modes on a CRT TV, the “Holy Grail” ?
  • Thomas on rpi4: custom modes on a CRT TV, the “Holy Grail” ?
  • SIMON on rpi4: custom modes on a CRT TV, the “Holy Grail” ?
  • jad on rpi4: custom modes on a CRT TV, the “Holy Grail” ?
  • Andre on rpi4: custom modes on a CRT TV, the “Holy Grail” ?

Archives

  • February 2021
  • November 2020
  • November 2019
  • September 2019

Categories

  • dreamcast
  • emulation
  • projects
  • raspberrypi
  • recalbox

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • rpi4: custom modes on a CRT TV, the “Holy Grail” ? emulation
  • dreamboot: A custom bios for the Sega Dreamcast dreamcast
  • Dreamcast SDK: Installing the open source KallistiOS SDK dreamcast
  • RetroDream: a new dreamcast iso loader (and more) dreamcast
  • rpi(4): rpi os + kms + retroarch (no X) emulation
  • rpi(4): sdl2 kms/drm compilation (no X) raspberrypi

Copyright © 2026 MyDedibox.

Powered by PressBook News Dark theme