![如何安装需要应用补丁的实时内核?](https://linux22.com/image/838084/%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85%E9%9C%80%E8%A6%81%E5%BA%94%E7%94%A8%E8%A1%A5%E4%B8%81%E7%9A%84%E5%AE%9E%E6%97%B6%E5%86%85%E6%A0%B8%EF%BC%9F.png)
我有 ubuntu 12.04,内核为 3.5。我必须安装补丁RT_PREEMPT
我遵循了以下步骤:
sudo apt-get install kernel-package fakeroot build-essential libncurses5-dev
mkdir -p ~/tmp/linux-rt
cd ~/tmp/linux-rt
wget http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.4.tar.bz2
wget http://www.kernel.org/pub/linux/kernel/projects/rt/3.4/older/patch-3.4-rt7.patch.bz2
tar xjvf linux-3.4.tar.bz2
cd linux-3.4
patch -p1 < <(bunzip2 -c ../patch-3.4-rt7.patch.bz2)
cp /boot/config-$(uname -r) .config && make oldconfig
make -j8
sudo make modules_install
sudo make install
但是在启动内核时它显示内核恐慌:
内核崩溃 - 未同步。正在尝试终止 init!
我也尝试安装内核 3.8。但执行make -j8
命令时显示错误。