Difference between revisions of "Xenomai - Mini Howto"

From Gumstix User Wiki
Jump to: navigation, search
(Xenomai)
(Quick Install Guide)
Line 1: Line 1:
 
Very good site. Thanks!!, http://label-own.akapa.biz.st/choma.html east coast west coast,  savef, http://picture-of.corall.infos.st/mmmali.html cerritos car financing,  746041, http://clock-fingerprint.gavai.fr.nf/bateto.html chocolate cup hot k,  erg, http://nasa-ant.corall.infos.st/whoki.html let dish,  0845, http://body-infected.rota.infos.st/carescc.html canned goods wholesale,  ojz,
 
Very good site. Thanks!!, http://label-own.akapa.biz.st/choma.html east coast west coast,  savef, http://picture-of.corall.infos.st/mmmali.html cerritos car financing,  746041, http://clock-fingerprint.gavai.fr.nf/bateto.html chocolate cup hot k,  erg, http://nasa-ant.corall.infos.st/whoki.html let dish,  0845, http://body-infected.rota.infos.st/carescc.html canned goods wholesale,  ojz,
  
=== Quick Install Guide ===
+
Very good site. Thanks!!, http://subaru-loyale.akapa.biz.st/manithesend.html fruit flies mutant, :-OOO, http://hair-straightening.ella.biz.st/entlimot.html clint eastwood rawhide,  gxohtv, http://home-mortgage.bullet.fr.nf/redsoco.html jasmine coconut rice,  >:-DD, http://smoked-salmon.bullet.fr.nf/ptorcatyicke.html sales resume writing,  :-DD, http://location-of.corall.infos.st/vechlyinend.html carnation breakfast bar,  >:(((,
 
+
==== Step 1: Gumstix OE setup ====
+
 
+
At first, [http://www.gumstix.net/Software/view/Getting-started/Quick-start/111.html setup the build environment].
+
 
+
Note, that the step
+
 
+
<pre>
+
$ cat gumstix-oe/extras/profile >> ~/.bashrc
+
</pre>
+
 
+
defines environment variables - amongst others, it sets the directory for USERBRANCH which is used to provide our custom bitbake package.
+
 
+
==== Step 2: Custom Configuration ====
+
 
+
Download the [http://bitmux.org/downloads user.collection to build Xenomai for Gumstix OE]. Unpacking the file in the Gumstix OE root directory will give the following structure:
+
 
+
<pre>
+
user.collection
+
user.collection/conf
+
user.collection/conf/machine
+
user.collection/conf/machine/include
+
user.collection/packages
+
user.collection/packages/xenomai
+
user.collection/packages/xenomai/xenomai-2.4.6
+
user.collection/packages/linux
+
user.collection/packages/linux/gumstix-xenomai-kernel-2.6.24
+
user.collection/packages/linux/gumstix-xenomai-kernel-2.6.24/gumstix-custom-verdex
+
</pre>
+
 
+
==== Step 3: (Re-)build the kernel and system ====
+
 
+
<pre>
+
$ bitbake gumstix-xenomai-kernel
+
$ bitbake -c rebuild task-base-gumstix
+
$ bitbake -c rebuild gumstix-basic-image
+
</pre>
+
 
+
==== Step 4: Images ====
+
 
+
The kernel and root filesystem image can be found in <i>tmp/deploy/glibc/images</i>.
+
  
 
== Troubleshooting ==
 
== Troubleshooting ==

Revision as of 01:44, 26 July 2009

Very good site. Thanks!!, http://label-own.akapa.biz.st/choma.html east coast west coast, savef, http://picture-of.corall.infos.st/mmmali.html cerritos car financing, 746041, http://clock-fingerprint.gavai.fr.nf/bateto.html chocolate cup hot k, erg, http://nasa-ant.corall.infos.st/whoki.html let dish, 0845, http://body-infected.rota.infos.st/carescc.html canned goods wholesale, ojz,

Very good site. Thanks!!, http://subaru-loyale.akapa.biz.st/manithesend.html fruit flies mutant,  :-OOO, http://hair-straightening.ella.biz.st/entlimot.html clint eastwood rawhide, gxohtv, http://home-mortgage.bullet.fr.nf/redsoco.html jasmine coconut rice, >:-DD, http://smoked-salmon.bullet.fr.nf/ptorcatyicke.html sales resume writing,  :-DD, http://location-of.corall.infos.st/vechlyinend.html carnation breakfast bar, >:(((,

Troubleshooting

Xenomai for verdex with Qemu

It is also possible to run the real-time kernel within Qemu. However, it might be necessary to slow down the clock of the emulated system (Probably, as your host computer is too slow).

The following steps can help:

Alter the file hw/pxa2xx_timer.c in the Qemu sources:

1. Change all occurences of qemu_get_clock(vm_clock) to PXA2XX_QEMU_GET_CLOCK()

2. Define the macro

#define PXA2XX_QEMU_GET_CLOCK()     (qemu_get_clock(vm_clock) >> 4) /* also try 2,3 or use a divider */