Difference between revisions of "Xenomai - Mini Howto"

From Gumstix User Wiki
Jump to: navigation, search
m (Protected "Xenomai - Mini Howto" [edit=sysop:move=sysop])
Line 7: Line 7:
==== Step 1: Gumstix OE setup ====
==== Step 1: Gumstix OE setup ====
At first, [http://www.gumstix.net/Software/view/Getting-started/Quick-start/111.html setup the build environment].
At first, [https://github.com/gumstix/yocto-manifest/wiki setup the build environment].
Note, that the step
$ cat gumstix-oe/extras/profile >> ~/.bashrc
defines environment variables - amongst others, it sets the directory for USERBRANCH which is used to provide our custom bitbake package.
==== Step 2: Custom Configuration ====
==== Step 2: Custom Configuration ====

Latest revision as of 14:38, 1 April 2016


The following quick guide gives a rough overview how I got Adeos & Xenomai (real-time extension for Linux) running on the verdex.

Quick Install Guide

Step 1: Gumstix OE setup

At first, setup the build environment.

Step 2: Custom Configuration

Download the user.collection to build Xenomai for Gumstix OE. Unpacking the file in the Gumstix OE root directory will give the following structure:


Step 3: (Re-)build the kernel and system

$ bitbake gumstix-xenomai-kernel
$ bitbake -c rebuild task-base-gumstix
$ bitbake -c rebuild gumstix-basic-image

Step 4: Images

The kernel and root filesystem image can be found in tmp/deploy/glibc/images.


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 */