Difference between revisions of "LXRT-Howto"

From Mca2
Jump to navigationJump to search
m (Formatierung per Hand)
(Rtai build)
Line 8: Line 8:
 
   [~]$ mkdir /tmp/rtai-test
 
   [~]$ mkdir /tmp/rtai-test
 
   [~]$ cd /tmp/rtai-test</pre>
 
   [~]$ cd /tmp/rtai-test</pre>
* Download MCA2 from [[File:mca2.4-beta.tgz|http://mca2.sf.net]]
+
* Download [[File:mca2.4-beta.tgz|MCA2]] from http://mca2.sf.net
 
   <pre>
 
   <pre>
 
   [/tmp/rtai-test]$ tar xzf mca2.4-beta.tgz </pre>
 
   [/tmp/rtai-test]$ tar xzf mca2.4-beta.tgz </pre>
Line 22: Line 22:
 
   [/tmp/rtai-test]$ cd linux-2.4.29
 
   [/tmp/rtai-test]$ cd linux-2.4.29
 
   [/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>
 
   [/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. [[File:linux-2.4.29-mca-kernel-configThis is the kernel config we use.
+
* Build the linux kernel. linux-2.4.29.config is the kernel config we use.
 
   <pre>
 
   <pre>
   </pre>
+
   [/tmp/rtai-test/linux-2.4.29]$ make mrproper
* Patch rtai3.2 with the mca2 patch:
+
  [/tmp/rtai-test/linux-2.4.29]$ cp ../mca2/etc/linux-2.4.29.config .config
 +
  [/tmp/rtai-test/linux-2.4.29]$ make oldconfig
 +
  [/tmp/rtai-test/linux-2.4.29]$ make dep bzImage modules
 +
  [/tmp/rtai-test/linux-2.4.29]$ cd ..</pre>
 +
* Patch rtai3.2 with the mca2 patch and prepare for use with mca2:
 
   <pre>
 
   <pre>
 
   [/tmp/rtai-test]$ cd rtai3.2
 
   [/tmp/rtai-test]$ cd rtai3.2
   [/tmp/rtai-test/rtai3.2]$ patch -p1 < ../mca2/etc/mca2-rtai3.2.patch </pre>
+
   [/tmp/rtai-test/rtai3.2]$ patch -p1 < ../mca2/etc/mca2-rtai3.2.patch  
*
+
  [/tmp/rtai-test/rtai3.2]$ ln -s ../linux-2.4.29 linux</pre>
 +
* Build rtai3.2.
 
   <pre>
 
   <pre>
 +
  [/tmp/rtai-test/rtai3.2]$ ./configure --with-linux-dir=/tmp/rtai-test/linux-2.4.29
 +
  [/tmp/rtai-test/rtai3.2]$ ln -s rtai_config.h base/include/
 +
  [/tmp/rtai-test/rtai3.2]$ make  </pre>
 +
*  <pre>
 +
 
   </pre>
 
   </pre>

Revision as of 12:53, 5 January 2006

LXRT-HOWTO

This section gives a step by step example on how LXRT could be used with mca2.

Download and Patching

  • Create a directory of your choice
  [~]$ mkdir /tmp/rtai-test
  [~]$ cd /tmp/rtai-test
  [/tmp/rtai-test]$ tar xzf mca2.4-beta.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/
  [/tmp/rtai-test]$ cd linux-2.4.29
  [/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
  [/tmp/rtai-test/linux-2.4.29]$ cp ../mca2/etc/linux-2.4.29.config .config
  [/tmp/rtai-test/linux-2.4.29]$ make oldconfig
  [/tmp/rtai-test/linux-2.4.29]$ make dep bzImage modules
  [/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
  [/tmp/rtai-test/rtai3.2]$ patch -p1 < ../mca2/etc/mca2-rtai3.2.patch 
  [/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
  [/tmp/rtai-test/rtai3.2]$ ln -s rtai_config.h base/include/
  [/tmp/rtai-test/rtai3.2]$ make