Difference between revisions of "Kernel 2 6 8 1 rtai 3 3"

From Mca2
Jump to navigationJump to search
(Reverted to original page content)
(Download and Patching)
 
Line 1: Line 1:
 
== Download and Patching ==
 
== Download and Patching ==
 
* Create a directory of your choice
 
* Create a directory of your choice
   {{cmd|[~]$ mkdir /tmp/rtai-test<br/>[~]$ cd /tmp/rtai-test}}
+
   [~]$ mkdir /tmp/rtai-test<br/>
* Download MCA2 from {{mcasf}}
+
  [~]$ cd /tmp/rtai-test
   {{cmd|[/tmp/rtai-test]$ tar xzf mca2.4.1.tgz}}
+
* Download MCA2 from [http://mca2.sf.net MCA2's Sourceforge Page]
 +
   [/tmp/rtai-test]$ tar xzf mca2.4.1.tgz
 
* Download the linux kernel 2.6.8.1 from ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.8.1.tar.bz2:
 
* Download the linux kernel 2.6.8.1 from ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.8.1.tar.bz2:
   {{cmd|[/tmp/rtai-test]$ tar xjf linux-2.6.8.1.tar.bz2}}
+
   [/tmp/rtai-test]$ tar xjf linux-2.6.8.1.tar.bz2
 
* Download rtai-3.3 from http://www.rtai.org/RTAI/rtai-3.3.tar.bz2
 
* Download rtai-3.3 from http://www.rtai.org/RTAI/rtai-3.3.tar.bz2
   {{cmd|[/tmp/rtai-test]$ tar xjf rtai-3.3.tar.bz2}}
+
   [/tmp/rtai-test]$ tar xjf rtai-3.3.tar.bz2
 
* Download adeos patch corresponing to the kernel at http://download.gna.org/adeos/patches/attic/v2.6/i386/adeos-linux-2.6.8.1-i386-r8.patch
 
* Download adeos patch corresponing to the kernel at http://download.gna.org/adeos/patches/attic/v2.6/i386/adeos-linux-2.6.8.1-i386-r8.patch
   {{cmd|[/tmp/rtai-test]$ mv adeos-linux-2.6.8.1-i386-r8.patch rtai3.2/base/arch/i386/patches/}}
+
   [/tmp/rtai-test]$ mv adeos-linux-2.6.8.1-i386-r8.patch rtai3.2/base/arch/i386/patches/
 
* Patch the kernel with the adeos patch
 
* Patch the kernel with the adeos patch
   {{cmd|[/tmp/rtai-test]$ cd linux-2.6.8.1<br>
+
   [/tmp/rtai-test]$ cd linux-2.6.8.1<br>
[/tmp/rtai-test/linux-2.6.8.1]$ patch -p1 < ../rtai-3.3/base/arch/i386/patches/adeos-linux-2.6.8.1-i386-r8.patch}}
+
[/tmp/rtai-test/linux-2.6.8.1]$ patch -p1 < ../rtai-3.3/base/arch/i386/patches/adeos-linux-2.6.8.1-i386-r8.patch
 
* Build the linux kernel. linux-2.6.8.1.config is the kernel config we use.
 
* Build the linux kernel. linux-2.6.8.1.config is the kernel config we use.
   {{cmd|[/tmp/rtai-test/linux-2.6.8.1]$ make mrproper <br>
+
   [/tmp/rtai-test/linux-2.6.8.1]$ make mrproper <br>
 
[/tmp/rtai-test/linux-2.6.8.1]$ cp ../mca2/etc/linux-2.6.8.1.config .config <br>
 
[/tmp/rtai-test/linux-2.6.8.1]$ cp ../mca2/etc/linux-2.6.8.1.config .config <br>
 
[/tmp/rtai-test/linux-2.6.8.1]$ make oldconfig <br>
 
[/tmp/rtai-test/linux-2.6.8.1]$ make oldconfig <br>
 
[/tmp/rtai-test/linux-2.6.8.1]$ make bzImage modules <br>
 
[/tmp/rtai-test/linux-2.6.8.1]$ make bzImage modules <br>
[/tmp/rtai-test/linux-2.6.8.1]$ cd ..}}
+
[/tmp/rtai-test/linux-2.6.8.1]$ cd ..
 
* Patch rtai-3.3 with the corresponding patches that come with mca2:
 
* Patch rtai-3.3 with the corresponding patches that come with mca2:
   {{cmd|[/tmp/rtai-test]$ cd rtai-3.3<br>
+
   [/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-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]$ patch -p1 < ../mca2/etc/rtai-3.3-driver_serial.patch <br>
[/tmp/rtai-test/rtai-3.3]$ cd ..}}
+
[/tmp/rtai-test/rtai-3.3]$ cd ..
 
* Build rtai-3.3.
 
* Build rtai-3.3.
   {{cmd|[/tmp/rtai-test]$ mkdir rtai-3.3-linux-2.6.8.1 <br>
+
   [/tmp/rtai-test]$ mkdir rtai-3.3-linux-2.6.8.1 <br>
 
[/tmp/rtai-test]$ cd rtai-3.3-linux-2.6.8.1 <br>
 
[/tmp/rtai-test]$ cd rtai-3.3-linux-2.6.8.1 <br>
 
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ <nowiki> ../rtai-3.3/configure --with-linux-dir=/tmp/rtai-test/linux-2.6.8.1 --prefix=/tmp/rtai-test/rtai-3.3-linux-2.6.8.1-install CONFIG_RTAI_MONITOR_EXECTIME=y </nowiki> <br>
 
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ <nowiki> ../rtai-3.3/configure --with-linux-dir=/tmp/rtai-test/linux-2.6.8.1 --prefix=/tmp/rtai-test/rtai-3.3-linux-2.6.8.1-install CONFIG_RTAI_MONITOR_EXECTIME=y </nowiki> <br>
Line 31: Line 32:
 
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ make install <br>
 
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ make install <br>
 
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ cd ../rtai-3.3-linux-2.6.8.1-install <br>
 
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ cd ../rtai-3.3-linux-2.6.8.1-install <br>
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1-install]$ ln -s ../linux-2.6.8.1 linux}}
+
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1-install]$ ln -s ../linux-2.6.8.1 linux
 
* Build rtai-3.3 serial driver.
 
* Build rtai-3.3 serial driver.
   {{cmd|[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ cd addons/drivers/serial <br>
+
   [/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ cd addons/drivers/serial <br>
 
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1/addons/drivers/serial]$ make <br>
 
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1/addons/drivers/serial]$ make <br>
 
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1/addons/drivers/serial]$ make install <br>
 
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1/addons/drivers/serial]$ make install <br>
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1/addons/drivers/serial]$ cd ../../../..}}
+
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1/addons/drivers/serial]$ cd ../../../..
 
* Build mca2 with lxrt
 
* Build mca2 with lxrt
   {{cmd|[/tmp/rtai-test]$ cd mca2.4.1<br>
+
   [/tmp/rtai-test]$ cd mca2.4.1<br>
 
[/tmp/rtai-test/mca2.4.1]$ <nowiki> scons configure=yes lxrt_dir=/tmp/rtai-test/rtai-3.3-linux-2.6.8.1-install </nowiki>  <br>
 
[/tmp/rtai-test/mca2.4.1]$ <nowiki> scons configure=yes lxrt_dir=/tmp/rtai-test/rtai-3.3-linux-2.6.8.1-install </nowiki>  <br>
 
[/tmp/rtai-test/mca2.4.1]$ source script/mcasetenv <br>
 
[/tmp/rtai-test/mca2.4.1]$ source script/mcasetenv <br>
[/tmp/rtai-test/mca2.4.1]$ scons  
+
[/tmp/rtai-test/mca2.4.1]$ scons
}}
 

Latest revision as of 09:22, 30 July 2010

Download and Patching

  • Create a directory of your choice
 [~]$ mkdir /tmp/rtai-test
[~]$ cd /tmp/rtai-test
 [/tmp/rtai-test]$ tar xzf mca2.4.1.tgz
 [/tmp/rtai-test]$ tar xjf linux-2.6.8.1.tar.bz2
 [/tmp/rtai-test]$ tar xjf rtai-3.3.tar.bz2
 [/tmp/rtai-test]$ mv adeos-linux-2.6.8.1-i386-r8.patch rtai3.2/base/arch/i386/patches/
  • Patch the kernel with the adeos patch
 [/tmp/rtai-test]$ cd linux-2.6.8.1

[/tmp/rtai-test/linux-2.6.8.1]$ patch -p1 < ../rtai-3.3/base/arch/i386/patches/adeos-linux-2.6.8.1-i386-r8.patch

  • Build the linux kernel. linux-2.6.8.1.config is the kernel config we use.
 [/tmp/rtai-test/linux-2.6.8.1]$ make mrproper 

[/tmp/rtai-test/linux-2.6.8.1]$ cp ../mca2/etc/linux-2.6.8.1.config .config
[/tmp/rtai-test/linux-2.6.8.1]$ make oldconfig
[/tmp/rtai-test/linux-2.6.8.1]$ make bzImage modules
[/tmp/rtai-test/linux-2.6.8.1]$ cd ..

  • Patch rtai-3.3 with the corresponding patches that come with mca2:
 [/tmp/rtai-test]$ cd rtai-3.3

[/tmp/rtai-test/rtai-3.3]$ patch -p1 < ../mca2/etc/rtai-3.3-sched-sem-bugfix.patch
[/tmp/rtai-test/rtai-3.3]$ patch -p1 < ../mca2/etc/rtai-3.3-driver_serial.patch
[/tmp/rtai-test/rtai-3.3]$ cd ..

  • Build rtai-3.3.
 [/tmp/rtai-test]$ mkdir rtai-3.3-linux-2.6.8.1 

[/tmp/rtai-test]$ cd rtai-3.3-linux-2.6.8.1
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ ../rtai-3.3/configure --with-linux-dir=/tmp/rtai-test/linux-2.6.8.1 --prefix=/tmp/rtai-test/rtai-3.3-linux-2.6.8.1-install CONFIG_RTAI_MONITOR_EXECTIME=y
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ make
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ make install
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ cd ../rtai-3.3-linux-2.6.8.1-install
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1-install]$ ln -s ../linux-2.6.8.1 linux

  • Build rtai-3.3 serial driver.
 [/tmp/rtai-test/rtai-3.3-linux-2.6.8.1]$ cd addons/drivers/serial 

[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1/addons/drivers/serial]$ make
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1/addons/drivers/serial]$ make install
[/tmp/rtai-test/rtai-3.3-linux-2.6.8.1/addons/drivers/serial]$ cd ../../../..

  • Build mca2 with lxrt
 [/tmp/rtai-test]$ cd mca2.4.1

[/tmp/rtai-test/mca2.4.1]$ scons configure=yes lxrt_dir=/tmp/rtai-test/rtai-3.3-linux-2.6.8.1-install
[/tmp/rtai-test/mca2.4.1]$ source script/mcasetenv
[/tmp/rtai-test/mca2.4.1]$ scons