Difference between revisions of "Kernel 2 4 29 rtai 3 2"

From Mca2
Jump to navigationJump to search
(removed from in here)
 
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}}
+
<pre>
* Download MCA2 from {{mcasf}}
+
   [~]$ mkdir /tmp/rtai-test<br/>[~]$ cd /tmp/rtai-test}}
   {{cmd|[/tmp/rtai-test]$ tar xzf mca2.4.0.tgz}}
+
* Download MCA2 from [http://mca2.sf.net MCA2's Sourceforge Page]
 +
</pre>
 +
<pre>
 +
   [/tmp/rtai-test]$ tar xzf mca2.4.0.tgz
 +
</pre>
 
* Download the linux kernel 2.4.29 from ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.29.tar.bz2:
 
* Download the linux kernel 2.4.29 from ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.29.tar.bz2:
   {{cmd|[/tmp/rtai-test]$ tar xjf linux-2.4.29.tar.bz2}}
+
<pre>
 +
   [/tmp/rtai-test]$ tar xjf linux-2.4.29.tar.bz2
 +
</pre>
 
* Download rtai3.2 (vulcano) from http://www.rtai.org/RTAI/rtai-3.2.tar.bz2
 
* Download rtai3.2 (vulcano) from http://www.rtai.org/RTAI/rtai-3.2.tar.bz2
   {{cmd|[/tmp/rtai-test]$ tar xjf rtai-3.2.tar.bz2}}
+
<pre>
 +
   [/tmp/rtai-test]$ tar xjf rtai-3.2.tar.bz2
 +
</pre>
 
* Download adeos patch corresponing to the kernel at http://download.gna.org/adeos/patches/attic/v2.4/i386/adeos-linux-2.4.29-i386-r16.patch
 
* Download adeos patch corresponing to the kernel at http://download.gna.org/adeos/patches/attic/v2.4/i386/adeos-linux-2.4.29-i386-r16.patch
   {{cmd|[/tmp/rtai-test]$ mv adeos-linux-2.4.29-i386-r16.patch rtai3.2/base/arch/i386/patches/<br>
+
<pre>
[/tmp/rtai-test]$ cd linux-2.4.29<br>
+
   [/tmp/rtai-test]$ mv adeos-linux-2.4.29-i386-r16.patch rtai3.2/base/arch/i386/patches/<br>
[/tmp/rtai-test/linux-2.4.29]$ patch -p1 < ../rtai-3.2/base/arch/i386/patches/adeos-linux-2.4.29-i386-r16.patch}}
+
  [/tmp/rtai-test]$ cd linux-2.4.29<br>
 +
  [/tmp/rtai-test/linux-2.4.29]$ patch -p1 < ../rtai-3.2/base/arch/i386/patches/adeos-linux-2.4.29-i386-r16.patch
 +
</pre>
 
* Build the linux kernel. linux-2.4.29.config is the kernel config we use.
 
* Build the linux kernel. linux-2.4.29.config is the kernel config we use.
   {{cmd|[/tmp/rtai-test/linux-2.4.29]$ make mrproper <br>
+
<pre>
[/tmp/rtai-test/linux-2.4.29]$ cp ../mca2/etc/linux-2.4.29.config .config <br>
+
   [/tmp/rtai-test/linux-2.4.29]$ make mrproper <br>
[/tmp/rtai-test/linux-2.4.29]$ make oldconfig <br>
+
  [/tmp/rtai-test/linux-2.4.29]$ cp ../mca2/etc/linux-2.4.29.config .config <br>
[/tmp/rtai-test/linux-2.4.29]$ make dep bzImage modules <br>
+
  [/tmp/rtai-test/linux-2.4.29]$ make oldconfig <br>
[/tmp/rtai-test/linux-2.4.29]$ cd ..}}
+
  [/tmp/rtai-test/linux-2.4.29]$ make dep bzImage modules <br>
 +
  [/tmp/rtai-test/linux-2.4.29]$ cd ..
 +
</pre>
 
* Patch rtai3.2 with the mca2 patch and prepare for use with mca2:
 
* Patch rtai3.2 with the mca2 patch and prepare for use with mca2:
   {{cmd|[/tmp/rtai-test]$ cd rtai3.2<br>
+
<pre>
[/tmp/rtai-test/rtai3.2]$ patch -p1 < ../mca2/etc/mca2-rtai3.2.patch <br>
+
   [/tmp/rtai-test]$ cd rtai3.2<br>
[/tmp/rtai-test/rtai3.2]$ ln -s ../linux-2.4.29 linux}}
+
  [/tmp/rtai-test/rtai3.2]$ patch -p1 < ../mca2/etc/mca2-rtai3.2.patch <br>
 +
  [/tmp/rtai-test/rtai3.2]$ ln -s ../linux-2.4.29 linux
 +
</pre>
 
* Build rtai3.2.
 
* Build rtai3.2.
   {{cmd|<nowiki>[/tmp/rtai-test/rtai3.2]$ ./configure --with-linux-dir=/tmp/rtai-test/linux-2.4.29</nowiki><br/>
+
<pre>
[/tmp/rtai-test/rtai3.2]$ cd base/include/<br/>
+
   <nowiki>[/tmp/rtai-test/rtai3.2]$ ./configure --with-linux-dir=/tmp/rtai-test/linux-2.4.29</nowiki><br/>
[/tmp/rtai-test/rtai3.2/base/include]$ ln -s ../../rtai_config.h .<br/>
+
  [/tmp/rtai-test/rtai3.2]$ cd base/include/<br/>
[/tmp/rtai-test/rtai3.2/base/include]$ cd ../.. <br/>
+
  [/tmp/rtai-test/rtai3.2/base/include]$ ln -s ../../rtai_config.h .<br/>
[/tmp/rtai-test/rtai3.2]$ make}}
+
  [/tmp/rtai-test/rtai3.2/base/include]$ cd ../.. <br/>
 +
  [/tmp/rtai-test/rtai3.2]$ make
 +
</pre>
 
* Build mca2 with lxrt
 
* Build mca2 with lxrt
   {{cmd|[/tmp/rtai-test/rtai3.2]$ cd ../mca2<br>
+
<pre>
[/tmp/rtai-test/mca2.4.0]$ <nowiki>scons configure=yes lxrt_dir=/tmp/rtai-test/rtai3.2 </nowiki><br>
+
   [/tmp/rtai-test/rtai3.2]$ cd ../mca2<br>
[/tmp/rtai-test/mca2.4.0]$ source script/mcasetenv <br>
+
  [/tmp/rtai-test/mca2.4.0]$ <nowiki>scons configure=yes lxrt_dir=/tmp/rtai-test/rtai3.2 </nowiki><br>
[/tmp/rtai-test/mca2.4.0]$ scons  
+
  [/tmp/rtai-test/mca2.4.0]$ source script/mcasetenv <br>
}}
+
  [/tmp/rtai-test/mca2.4.0]$ scons  
 +
</pre>

Latest revision as of 15:14, 2 July 2010

Download and Patching

  • Create a directory of your choice
  [~]$ mkdir /tmp/rtai-test<br/>[~]$ cd /tmp/rtai-test}}
* Download MCA2 from [http://mca2.sf.net MCA2's Sourceforge Page]
  [/tmp/rtai-test]$ tar xzf mca2.4.0.tgz
  [/tmp/rtai-test]$ tar xjf linux-2.4.29.tar.bz2
  [/tmp/rtai-test]$ tar xjf rtai-3.2.tar.bz2
  [/tmp/rtai-test]$ mv adeos-linux-2.4.29-i386-r16.patch rtai3.2/base/arch/i386/patches/<br>
  [/tmp/rtai-test]$ cd linux-2.4.29<br>
  [/tmp/rtai-test/linux-2.4.29]$ patch -p1 < ../rtai-3.2/base/arch/i386/patches/adeos-linux-2.4.29-i386-r16.patch
  • Build the linux kernel. linux-2.4.29.config is the kernel config we use.
  [/tmp/rtai-test/linux-2.4.29]$ make mrproper <br>
  [/tmp/rtai-test/linux-2.4.29]$ cp ../mca2/etc/linux-2.4.29.config .config <br>
  [/tmp/rtai-test/linux-2.4.29]$ make oldconfig <br>
  [/tmp/rtai-test/linux-2.4.29]$ make dep bzImage modules <br>
  [/tmp/rtai-test/linux-2.4.29]$ cd ..
  • Patch rtai3.2 with the mca2 patch and prepare for use with mca2:
  [/tmp/rtai-test]$ cd rtai3.2<br>
  [/tmp/rtai-test/rtai3.2]$ patch -p1 < ../mca2/etc/mca2-rtai3.2.patch <br>
  [/tmp/rtai-test/rtai3.2]$ ln -s ../linux-2.4.29 linux
  • Build rtai3.2.
  [/tmp/rtai-test/rtai3.2]$ ./configure --with-linux-dir=/tmp/rtai-test/linux-2.4.29<br/>
  [/tmp/rtai-test/rtai3.2]$ cd base/include/<br/>
  [/tmp/rtai-test/rtai3.2/base/include]$ ln -s ../../rtai_config.h .<br/>
  [/tmp/rtai-test/rtai3.2/base/include]$ cd ../.. <br/>
  [/tmp/rtai-test/rtai3.2]$ make
  • Build mca2 with lxrt
  [/tmp/rtai-test/rtai3.2]$ cd ../mca2<br>
  [/tmp/rtai-test/mca2.4.0]$ scons configure=yes lxrt_dir=/tmp/rtai-test/rtai3.2 <br>
  [/tmp/rtai-test/mca2.4.0]$ source script/mcasetenv <br>
  [/tmp/rtai-test/mca2.4.0]$ scons