cd ~
sudo apt-get update
sudo apt-get install build-essential bin86 libqt4-dev libncurses5-dev pkg-config bison flex libssl-dev libelf-dev
mkdir rtlinux
cd rtlinux
wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.16.8.tar.xz
wget https://www.kernel.org/pub/linux/kernel/projects/rt/4.16/patch-4.16.8-rt3.patch.gz
tar -xpf linux-4.16.8.tar.xz
gunzip patch-4.16.8-rt3.patch.gz
cp patch-4.16.8-rt3.patch linux-4.16.8
cd linux-4.16.8
cat patch-4.16.8-rt3.patch | patch -p1
make xconfig
Ctr + f
to search the config options.
- make sure hpet is enabled
- set 64 bit if your OS is 64 bit
- set for fully preemptable kernel
Save and close the window
make -j4
sudo make modules_install
sudo make install