Difference between revisions of "Xenomai:examples usage"

From ArmadeusWiki
Jump to: navigation, search
(typos + beautify)
Line 2: Line 2:
  
  
 
+
Xenomai is a Linux kernel real time extension. For explainations on how to install it, take a look at [[Xenomai | Xenomai install instructions]].<br>
Xenomai is an real time kernel extension.
+
The directory ''target/demos/real_time/'' contains a set of examples for Xenomai evaluation.<br>
 
+
For each example, a "functionnal equivalent" version is available for Linux environnement, in order to make some comparison.<br>
For explaination on how to install this, cf.[[Xenomai | Xenomai install instructions]].<br>
+
 
+
The directory ''armadeus/target/demos/real_time'' contains a set of examples Xenomai.<br>
+
 
+
For each examples, an equivalent in linux environnement version is available.<br>
+
 
+
 
+
  
 
==Structure==
 
==Structure==
  
 
+
Directories named ''linux'' contain the examples for Linux and the directories named ''xenomai'' contain the real time examples.<br />
 
+
For each of them, a subdirectory called ''user_space'' or ''kernel'' specifies the programmation domain.  
Directoried named ''linux'' contains every exemple for linux and the directory ''Xenomai'' contains real time examples.<br />
+
 
+
For each of them, an subdirectory called ''user_space'' or ''kernel'' specifying the space programmation .  
+
 
+
 
+
  
 
==Configurations & compilation==
 
==Configurations & compilation==
  
Once you are in directory of an application , you've just to type ''make'' for compiling this application<br>
+
Once you are in the directory of an example, you just have to type ''make'' to compile it and ''make install'' to install it on ''/tftpboot/local/bin'' directory on your computer.
 
+
and ''make install'' for compiling and installing application on ''/tftpboot/local/bin'' directory on your computer.
+
 
+
 
+
  
 
==Running==
 
==Running==
Line 35: Line 19:
 
=== Kernel drivers ===
 
=== Kernel drivers ===
  
Loading and unloading a kernel driver is classical, like every other linux kernel driver.
+
Loading and unloading a kernel driver is classical, like every other Linux kernel driver.
 
+
* To load the driver
<pre class="apf"> # insmod your_driver</pre>  
+
<pre class="apf">
 
+
# insmod your_driver
For loading the driver.
+
</pre>  
 
+
* To unload it
<pre class="apf"> # rmmod your_driver </pre>
+
<pre class="apf">
 
+
# rmmod your_driver
For unloading this.
+
</pre>
 
+
 
+
  
 
=== User Space applications ===
 
=== User Space applications ===
  
If it's userSpace application, you have to type
+
If it's a userspace application, you have to type:
 
+
<pre class="apf"> # xeno-load your_application/ </pre>
+
 
+
  
 +
<pre class="apf">
 +
# xeno-load your_application
 +
</pre>
  
 
==Others examples==
 
==Others examples==
  
 
+
The Directory ''buildroot/build_armvXXt/xenomai-x.y.z/examples'' contains many other examples.
 
+
The Directory ''armadeus/buildroot/build_armv4t/xenomai-x.y.z/examples'' contains many examples
+
 
+
 
+
  
 
==Links==
 
==Links==
  
 
* [[Xenomai | Xenomai install instructions]]
 
* [[Xenomai | Xenomai install instructions]]
 
 
* [[Xenomai:Blinking LEDs | LEDs tutorial]]
 
* [[Xenomai:Blinking LEDs | LEDs tutorial]]
 
 
* [http://www.xenomai.org Xenomai main page ]
 
* [http://www.xenomai.org Xenomai main page ]
 
  
  
 
[[Category:Software]]
 
[[Category:Software]]
 
 
[[Category:Real-Time]]
 
[[Category:Real-Time]]

Revision as of 20:42, 1 July 2009

Page under construction... Construction.png Informations on this page are not guaranteed !!


Xenomai is a Linux kernel real time extension. For explainations on how to install it, take a look at Xenomai install instructions.
The directory target/demos/real_time/ contains a set of examples for Xenomai evaluation.
For each example, a "functionnal equivalent" version is available for Linux environnement, in order to make some comparison.

Structure

Directories named linux contain the examples for Linux and the directories named xenomai contain the real time examples.
For each of them, a subdirectory called user_space or kernel specifies the programmation domain.

Configurations & compilation

Once you are in the directory of an example, you just have to type make to compile it and make install to install it on /tftpboot/local/bin directory on your computer.

Running

Kernel drivers

Loading and unloading a kernel driver is classical, like every other Linux kernel driver.

  • To load the driver
# insmod your_driver
  • To unload it
# rmmod your_driver

User Space applications

If it's a userspace application, you have to type:

# xeno-load your_application 

Others examples

The Directory buildroot/build_armvXXt/xenomai-x.y.z/examples contains many other examples.

Links