Difference between revisions of "LXRT-Howto"

From Mca2
Jump to navigationJump to search
(erster Entwurf)
 
m (Formatierung per Hand)
Line 5: Line 5:
 
=== Download and Patching ===
 
=== Download and Patching ===
 
* Create a directory of your choice
 
* Create a directory of your choice
{{cmd|[~]$ mkdir /tmp/rtai-test}}
+
  <pre>
{{cmd|[~]$ cd /tmp/rtai-test}}
+
  [~]$ mkdir /tmp/rtai-test
 +
  [~]$ cd /tmp/rtai-test</pre>
 
* Download MCA2 from [[File:mca2.4-beta.tgz|http://mca2.sf.net]]
 
* Download MCA2 from [[File:mca2.4-beta.tgz|http://mca2.sf.net]]
{{cmd|[/tmp/rtai-test]$ tar xzf mca2.4-beta.tgz}}
+
  <pre>
 +
  [/tmp/rtai-test]$ tar xzf mca2.4-beta.tgz </pre>
 
* Download the [[File:linux-2.4.29.tar.bz2|linux kernel 2.4.29]] from ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.29.tar.bz2:
 
* Download the [[File:linux-2.4.29.tar.bz2|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 [[File:rtai-3.2.tar.bz2|rtai3.2 (vulcano)]] from http://www.rtai.org/modules.php?name=Downloads&d_op=viewdownload&cid=1
 
* Download [[File:rtai-3.2.tar.bz2|rtai3.2 (vulcano)]] from http://www.rtai.org/modules.php?name=Downloads&d_op=viewdownload&cid=1
{{cmd|[/tmp/rtai-test]$ tar xjf rtai-3.2.tar.bz2}}
+
  <pre>
 +
  [/tmp/rtai-test]$ tar xjf rtai-3.2.tar.bz2 </pre>
 
* Download [[File:adeos-linux-2.4.29-i386-r16.patch|adeos-patch]] corresponing to the kernel at http://download.gna.org/adeos/patches/v2.4/i386/
 
* Download [[File:adeos-linux-2.4.29-i386-r16.patch|adeos-patch]] corresponing to the kernel at http://download.gna.org/adeos/patches/v2.4/i386/
{{cmd|[/tmp/rtai-test]$ mv adeos-linux-2.4.29-i386-r16.patch rtai3.2/base/arch/i386/patches/}}
+
  <pre>
{{cmd|[/tmp/rtai-test]$ cd linux-2.4.29}}
+
  [/tmp/rtai-test]$ mv adeos-linux-2.4.29-i386-r16.patch rtai3.2/base/arch/i386/patches/
{{cmd|[/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
 +
  [/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. [[File:linux-2.4.29-mca-kernel-configThis is the kernel config we use.
 
+
  <pre>
 +
  </pre>
 
* Patch rtai3.2 with the mca2 patch:
 
* Patch rtai3.2 with the mca2 patch:
{{cmd|[/tmp/rtai-test]$ cd rtai3.2}}
+
  <pre>
{{cmd|[/tmp/rtai-test/rtai3.2]$ patch -p1 < ../mca2/etc/mca2-rtai3.2.patch}}
+
  [/tmp/rtai-test]$ cd rtai3.2
 +
  [/tmp/rtai-test/rtai3.2]$ patch -p1 < ../mca2/etc/mca2-rtai3.2.patch </pre>
 
*
 
*
 +
  <pre>
 +
  </pre>

Revision as of 11:47, 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. [[File:linux-2.4.29-mca-kernel-configThis is the kernel config we use.
  
  • Patch rtai3.2 with the mca2 patch:
  [/tmp/rtai-test]$ cd rtai3.2
  [/tmp/rtai-test/rtai3.2]$ patch -p1 < ../mca2/etc/mca2-rtai3.2.patch