Difference between revisions of "Xenomai:examples usage"

From ArmadeusWiki
Jump to: navigation, search
m (Links)
(Others examples)
 
Line 39: Line 39:
 
==Others examples==
 
==Others examples==
  
The directory ''buildroot/build_armvXXt/xenomai-x.y.z/examples'' contains many other examples.
+
The directory ''$ARMADEUS_XENOMAI_DIR/examples'' contains many other examples:
 +
<pre class="host">
 +
$ make shell_env
 +
$ source armadeus_env.sh
 +
$ cd $ARMADEUS_XENOMAI_DIR/examples
 +
</pre>
  
 
==Links==
 
==Links==

Latest revision as of 10:13, 15 February 2010

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


Xenomai is a Linux kernel real time extension. For explanations 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 standard, 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 $ARMADEUS_XENOMAI_DIR/examples contains many other examples:

$ make shell_env
$ source armadeus_env.sh
$ cd $ARMADEUS_XENOMAI_DIR/examples

Links