User Tools

Site Tools


projekte:sekwai:rt_kernel

This is an old revision of the document!


RealTime (RT) Kernel

Compilieren

  • sudo apt install git bc bison flex libssl-dev make libncurses5-dev #I think this is all the tools required
  • mkdir kernel && cd kernel/
  • git clone --depth=1 --branch rpi-6.12.y https://github.com/raspberrypi/linux
  • cd linux/
  • zcat ../patch-6.12.39-rt11.patch.gz | patch -p1 --dry-run #check the patch fits
  • zcat ../patch-6.12.39-rt11.patch.gz | patch -p1
  • KERNEL=kernel8
  • make ARCH=arm64 bcm2711_defconfig
  • make ARCH=arm64 menuconfig
    • General setup  --->
    •          Preemption Model (Preemptible Kernel (Low-Latency Desktop))  --->
           [*] Fully Preemptible Kernel (Real-Time)
           [ ] Preemption behaviour defined on boot      
    • CPU Power Management aus !
    • Beim Exit Config Save → Yes
  • nano .config
    CONFIG_LOCALVERSION="-V8_DrKlipper_RT"
    • :!: Hier auf gar keinen Fall Leerzeichen einbauen. Gibt sonst am Ende Compile und Kopierfehler!
  • time make -j6 ARCH=arm64 Image.gz modules dtbs
    • CPU Cores * 1,5 → nproc

echo $KERNEL sudo make modules_install sudo cp arch/arm64/boot/dts/broadcom/*.dtb /boot/ sudo cp arch/arm64/boot/dts/overlays/*.dtb* /boot/overlays/ sudo cp arch/arm64/boot/dts/overlays/README /boot/overlays/ sudo cp arch/arm64/boot/Image.gz /boot/$KERNEL.img

projekte/sekwai/rt_kernel.1753515763.txt.gz · Last modified: by dominik

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki