使用的是linux-2.6.24.7和rtai3.6.1
1. Download clean kernel from kernel.org
2. ar 到 /usr/src
3. patch kernel.
cd /usr/src/linux-2.6.24.7
patch -p1 -b < ../rtai-3.6.1/base/arch/x86/patches/hal-linux-2.6.24-x86-2.0-
07.patch
(注意rtai的路径)
4. patch madawifi
cd -/madawifi/patches
sudo ./install.sh /usr/src/linux-2.6.24.7
5. make gconfig
Loadable module support ---> Enable loadable module support ---> enabled
Loadable module support ---> Module versioning support ---> disabled
Processor type and features ---> Preemption Model ---> Preemptible Kernel (
Low-Latency Desktop)
Processor type and features ---> Interrupt pipeline ---> enabled
Processor type and features ---> High Memory Support ---> off
所有ACPI选项off CPU frequency 也off
为了安全其间, 所有experimental的选项我也off了,除了 ntfs
不是SMP的
Processor type and features ---> Symmetric multi-processing support --->
disabled
CPU类型一定要选对
Processor type and features ---> Processor family --->
6. make-kpkg clean
7. make-kpkg --append-to-version -rtai --revision p3 --initrd kernel_image
kernel_headers kernel_source
生成三个deb包
8. cd /usr/src
dpkg -i *.deb
Done!
编译Rtai相对容易一些,make gconfig, make, make install搞定
补充一下,我的atheros wifi是pci-e的
ndiswrapper也是需要的
yoyoliuy18 于 2009-08-31 23:22:45发表:
好啊
ShinyGuo 于 2009-08-31 14:34:16发表:
ACPI off掉??我编译内核的时候关掉了ACPI,之后进入新内核,halt的时候,只显示system halt.而不断电。还需手动按电源键。还有就是不能休眠。休眠就显示system halt.不断电。