⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.txt

📁 实时linux RTAI 下的如何使用RTFIFO代码
💻 TXT
字号:
RTAI fifo & shared memory examples from:http://www.aero.polimi.it/~rtai/documentation/articles/guide.htmlTested with kernel 2.6.7 and vesuvio (hal6c1-2.6.7.patch) on Fedora Core 2.Compile the examples:Goto sine or sine2, run "make" and "./run"Installation of the kernel and RTAI:***********************************Unpack the kernel source:# cd /usr/src# tar xvjf linux-2.6.7.tar.bz2# ln -s linux-2.6.7 linuxUnpack or copy RTAI to /usr/src/vesuvio or /usr/src/rtai-3.2.xxxx# ln -s vesuvio rtaior# ln -s rtai-3.2xxxx rtaiPatch the kernel:# cd /usr/src/linux# patch -p1 < ../rtai/rtai-core/arch/i386/patches/hal6c1-2.6.7.patchCopy the existing (Fedora) kernel config file to /usr/src/linux# cp /boot/config-2.6.6-1.435 /usr/src/linuxConfigure the kernel:# make menuconfig(you need to "make menuconfig" even if you accept the default Fedora config!)Make sure that * "Adeos" is selected (Adeos Support -> Adeos Support)* "Loadable module support -> Module versioning support" is disabled* "Kernel hacking" -> Compile the kernel with frame pointers" is disabledCompile the kernel:# make# make modules_install installAfter the kernel is compiled and installed successfully, compile RTAI:# cd /usr/src/rtai# make menuconfigIf you want to do some serial port I/O enable "Add-ons -> Serial line driver"(if you're new to RTAI just accept the default config - after saving theconfig wait until all configuration is done)# make# make installIf no errors occured, reboot now, select the new kernel from the GRUB menu.(so far Fedora 2 performs fine with the vanilla kernel 2.6.7)To test RTAI:# cd /usr/realtime/testsuite/kern/latency/# ./runNow you should see some min. max. latency output. If you experience akernel panic like<0>Kernel panic: Fatal exception in interruptIn interrupt handler - not synchingor<0>Kernel panic: Attempted to kill the idle task!In idle task - not synching try the current CVS version:cvs -d:pserver:anonymous@cvs.gna.org:/cvs/rtai co vesuvioI had kernel panic with the following combinations, so be careful on Fedora 2:kernel 2.6.5 with hal5-2.6.5.patchkernel 2.6.6 with hal5-2.6.6.patchVisit http://www.captain.at/programming/rtai/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -