User Tools

Site Tools


technical:linuxkernel

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technical:linuxkernel [2024/12/13 15:39] jctechnical:linuxkernel [2024/12/14 09:11] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Linux Kernel ====== ====== Linux Kernel ======
 <markdown> <markdown>
-# Compile a preemptive real time Linux kernel+# Compile a Preemptible Real-Time Linux Kernel
 ``` bash ``` bash
 # Build and compile a Real Time Linux kernel # Build and compile a Real Time Linux kernel
-parameters=${param:-"PREMPT"} +version="6.12.4
-kernel_src="rsync://fake_url"+kernel_src="https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-$version.tar.xz 
 get_kernel_src () { get_kernel_src () {
-rsync -avh $kernel_src+curl -$kernel_src 
 +tar -xvf linux-$version.tar.xz 
 +cd linux-$version
 } }
  
 build_kernel () { 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
  
- 
-copy_kernel () { 
-} 
  
 install_kernel () { install_kernel () {
 +sudo make moudules_install
 +sudo make install
 } }
 </markdown> </markdown>
 +
technical/linuxkernel.1734122391.txt.gz · Last modified: 2024/12/13 15:39 by jc