准备工作
apt-get install qt3-apps-dev build-essential kernel-package vim
apt-get install libncurses5-dev (meke menuconfig要调用的)
Step1 下载源码并解压到/usr/src目录下
Get the kernel source (version 2.6.32-21.32) from Ubuntu repository
# apt-get install linux-source-2.6.32=2.6.32-21.32
# wget https://www.rtai.org/RTAI/rtai-3.8.tar.bz2
# tar xjvf linux-source-2.6.32.tar.bz2
# tar xjvf rtai-3.8.tar.bz2
# ln -s linux-source-2.6.32 linux
# cd linux
(实际上我使用的是2.6.35的内核+rtai-3.9)
Step2 打patch
# patch –p1 –b< ../rtai-3.9/base/arch/x86/patches/hal-linux-2.6.35.9-x86-2.8-04.patch
Step3 配置
# make menuconfig
Code maturity level options-> 不选
General Setup->
Support for paging of anonymous memory(swap)选
System V IPC选
BSD Process Accountin