From Mca2
Download and Patching
- Create a directory of your choice
[~]$ mkdir /tmp/rtai-test<br/>[~]$ cd /tmp/rtai-test}}
[/tmp/rtai-test]$ tar xzf mca2.4.1.tgz
[/tmp/rtai-test]$ tar xjf linux-2.4.32.tar.bz2
[/tmp/rtai-test]$ tar xjf rtai-3.3.tar.bz2
- Patch the kernel with the corresponding patch that comes with rtai
[/tmp/rtai-test]$ cd linux-2.4.32<br>
[/tmp/rtai-test/linux-2.4.32]$ patch -p1 < ../rtai-3.3/base/arch/i386/patches/hal-linux-2.4.32-i386-1.1-01.patch
- Build the linux kernel. linux-2.4.32.config is the kernel config we use.
[/tmp/rtai-test/linux-2.4.32]$ make mrproper <br>
[/tmp/rtai-test/linux-2.4.32]$ cp ../mca2/etc/linux-2.4.32.config .config <br>
[/tmp/rtai-test/linux-2.4.32]$ make oldconfig <br>
[/tmp/rtai-test/linux-2.4.32]$ make dep bzImage modules <br>
[/tmp/rtai-test/linux-2.4.32]$ cd ..
- Patch rtai-3.3 with the corresponding patches that come with mca2:
[/tmp/rtai-test]$ cd rtai-3.3<br>
[/tmp/rtai-test/rtai-3.3]$ patch -p1 < ../mca2/etc/rtai-3.3-sched-sem-bugfix.patch <br>
[/tmp/rtai-test/rtai-3.3]$ patch -p1 < ../mca2/etc/rtai-3.3-driver_serial.patch <br>
[/tmp/rtai-test/rtai-3.3]$ cd ..
[/tmp/rtai-test]$ mkdir rtai-3.3-linux-2.4.32 <br>
[/tmp/rtai-test]$ cd rtai-3.3-linux-2.4.32 <br>
[/tmp/rtai-test/rtai-3.3-linux-2.4.32]$ ../rtai-3.3/configure --with-linux-dir=/tmp/rtai-test/linux-2.4.32 --prefix=/tmp/rtai-test/rtai-3.3-linux-2.4.32-install CONFIG_RTAI_MONITOR_EXECTIME=y <br>
[/tmp/rtai-test/rtai-3.3-linux-2.4.32]$ make <br>
[/tmp/rtai-test/rtai-3.3-linux-2.4.32]$ make install <br>
[/tmp/rtai-test/rtai-3.3-linux-2.4.32]$ cd ../rtai-3.3-linux-2.4.32-install <br>
[/tmp/rtai-test/rtai-3.3-linux-2.4.32-install]$ ln -s ../linux-2.4.32 linux
- Build rtai-3.3 serial driver.
[/tmp/rtai-test/rtai-3.3-linux-2.4.32]$ cd addons/drivers/serial <br>
[/tmp/rtai-test/rtai-3.3-linux-2.4.32/addons/drivers/serial]$ make <br>
[/tmp/rtai-test/rtai-3.3-linux-2.4.32/addons/drivers/serial]$ make install <br>
[/tmp/rtai-test/rtai-3.3-linux-2.4.32/addons/drivers/serial]$ cd ../../../..
[/tmp/rtai-test]$ cd mca2.4.1<br>
[/tmp/rtai-test/mca2.4.1]$ scons configure=yes lxrt_dir=/tmp/rtai-test/rtai-3.3-linux-2.4.32-install <br>
[/tmp/rtai-test/mca2.4.1]$ source script/mcasetenv <br>
[/tmp/rtai-test/mca2.4.1]$ scons