Last edit: Peter Favrholdt on August 20, 2006 12:57 (1479 days, 15 hours and 16 minutes ago) (diff)
Rtai.Dk | RecentChanges | Preferences | DIAPM RTAI
Prepare
- download RTAI 3.2
- download adeos-linux-2.6.10-i386-r12.patch from [ADEOS Patches]
- if your installed version of gcc is >=4.0 then make sure, gcc points to gcc-3.3 and g++ to g++-3.3
Install the kernel sources
su -
apt-get install kernel-sources-2.6.10
cd /usr/src
tar xf kernel-source-2.6.10.tar.bz2
ln -s kernel-sources-2.6.10 linux
cd /usr/src/linux
make menuconfig
Configure the Kernel
- Choose K6 Processor instead of K7 because of FPU bugs (fix: message "unexpected fpu trap" in the testsuite latency)
- Deselect Loadable Module versioning (fix: compile errors)
- Deselect Support for local APIC (fix: system not booting with adeos patch)
It is a good idea to test the kernel, before to begin with rtai. For alternative ways to build the kernel see Installation on Debian.
make
make modules_install install
mkinitrd -o /boot/initrd.img-2.6.10 2.6.10
- edit lilo.conf to boot the kernel
- vga=ask (fix: no display booting the new kernel)
lilo
RTAI
If it work, go on patching the kernel with adeos
patch -p1 < ../rtai/adeos-linux-2.6.10-i386-r12.patch
make menuconfig
make
make modules_install install
mkinitrd -o /boot/initrd.img-2.6.10 2.6.10
reboot
Now it is time for rtai
cd ../rtai
make menuconfig
- installdir /
- not doc build, because only lots of warnings
- enable FPU
- scheduler for uniprocessor
- LXRT scheduler
make
make install
Completed
Try the programs in the testsuite.