# First of all, prepare an initramfs for testing the RTAI kernel, modules, # and applications. Since RTAI only works on x86, create an initramfs for x86. # This can be done by using some scripts from the ramfs-scripts.tgz # package (which do not use busybox and do not recompile anything: they just # copy files from your filesystem to the initramfs tar xvzf ramfs-scripts.tgz cd mkfs ./mktestiniramfs.sh # Now, uncompress the kernel and RTAI tar xvjf ~/src/RT/DualKernel/linux-2.6.19.7.tar.bz2 tar xvjf ~/src/RT/DualKernel/rtai-3.5.tar.bz2 # Patch and compile the kernel cd linux-2.6.19.7 patch -p1 < ../rtai-3.5/base/arch/i386/patches/hal-linux-2.6.19-i386-1.7-01.patch cp ~/src/RT/DualKernel/rtai-minimal-config .config make menuconfig make cd .. # Configure and compile RTAI mkdir rtai-build cd rtai-build make -f /tmp/rtai-3.5/makefile srctree=/tmp/rtai-3.5 menuconfig make make install # And now, compile the test tar xvzf ~/src/RT/DualKernel/rtaitest.tgz cd RTTest-RTAI make -C /tmp/linux-2.6.19.7 M=/home/luca/src/RT/DualKernel/RTTest-RTAI # Copy the modules in the initramfs, and regenerate it cp rtai-test.ko /tmp/irfs-tmp cp -r /tmp/realtime/modules /tmp/irfs-tmp ... ./create_cpio.sh /tmp/irfs-tmp/ /tmp/mkfs/test.img.gz ...