This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| technical:linuxkernel [2024/12/13 15:37] – jc | technical:linuxkernel [2024/12/14 09:11] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Linux Kernel ====== | ====== Linux Kernel ====== | ||
| < | < | ||
| - | # Compile a preemptive real time Linux kernel | + | # Compile a Preemptible Real-Time |
| - | ``` | + | ``` 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=" | + | kernel_src=" |
| - | rsync -avh $kernel_src | + | |
| + | get_kernel_src () { | ||
| + | curl -O $kernel_src | ||
| + | tar -xvf linux-$version.tar.xz | ||
| + | cd linux-$version | ||
| + | } | ||
| + | |||
| + | build_kernel () { | ||
| + | cp / | ||
| + | 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 | ||
| + | } | ||
| </ | </ | ||
| + | |||