User Tools

Site Tools


technical:linuxkernel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
technical:linuxkernel [2022/08/10 13:31] – created jctechnical:linuxkernel [2024/12/14 09:11] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Linux Kernel ====== ====== Linux Kernel ======
 +<markdown>
 +# Compile a Preemptible Real-Time Linux Kernel
 +``` bash
 +# Build and compile a Real Time Linux kernel
 +version="6.12.4"
 +kernel_src="https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-$version.tar.xz" 
 +
 +get_kernel_src () {
 +curl -O $kernel_src
 +tar -xvf linux-$version.tar.xz
 +cd linux-$version
 +}
 +
 +build_kernel () {
 +cp /boot/config-$version-generic .config
 +make menuconfig
 +# Activate “Fully Preemptible Kernel (Real-Time)” option from “General setup” / “Preemption Model” then SAVE and EXIT.
 +sudo make
 +
 +
 +install_kernel () {
 +sudo make moudules_install
 +sudo make install
 +}
 +</markdown>
  
technical/linuxkernel.1660152714.txt.gz · Last modified: 2022/08/10 13:31 by jc