User Tools

Site Tools


technical:linuxkernel

This is an old revision of the document!


Linux Kernel

Compile a preemptive real time Linux kernel

# Build and compile a Real Time Linux kernel
version="6.12.4"
parameters=${param:-"PREMPT"}
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 () {
}
technical/linuxkernel.1734185282.txt.gz · Last modified: 2024/12/14 09:08 by jc