Skip to content

Instantly share code, notes, and snippets.

@Matheus-Garbelini
Last active January 21, 2020 13:52
Show Gist options
  • Save Matheus-Garbelini/f1c2ae1e93035ca66a7f97977f6a9c61 to your computer and use it in GitHub Desktop.
Save Matheus-Garbelini/f1c2ae1e93035ca66a7f97977f6a9c61 to your computer and use it in GitHub Desktop.
Create realtime linux kernel (preempt_rt patch)
KERNEL_VER=4.9.115
RT_PATCH_VER=93
CURRENT_KERNEL=`uname -r`
tar -xzvf linux-$KERNEL_VER.tar.gz
cd linux-$KERNEL_VER
gzip -cd ../patch-$KERNEL_VER-rt$RT_PATCH_VER.patch.gz | patch -p1 --verbose
cp /boot/config-$CURRENT_KERNEL .config # get config file from current kernel
make -j9
sudo make modules_install -j9
sudo make install -j9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment