I know it runs Linux and there are real time patches available for Linux. Would those patches work?
Has anybody tried another real-time-os on the Raspberry Pi?
The idea is to use the board for regulation and control jobs that are time critical.
|
I know it runs Linux and there are real time patches available for Linux. Would those patches work? Has anybody tried another real-time-os on the Raspberry Pi? The idea is to use the board for regulation and control jobs that are time critical. |
|||||||||||||||||||||
|
|
You may be interested in running Xenomai on RaspberryPi. Here you can find a tutorial on how to do this. In a nutshell, Xenomai is a project that created custom Linux kernel (they provide patches that has to be applied to the kernel sources) enabling it to run another kernel (Xenomai core) that is a realtime one. This makes it possible to run Xenomai applications on wide range of hardware without the need to write drivers for them (since Linux is working on very wide range of hardware). This allows writing RT userspace applications using couple different RT APIs available. |
||||
|
|
|
In linux kernel, enabling PREEMPT_RT will provide bounded latencies and realtime APIs. Besides configuring PREEMPT_RT, the SCHED_FIFO and SCHED_RR policies also need to be selected. And the applications need to set realtime parameters by calling appropriate APIs or by using appropriate utilities. According to a free-electrons training: Realtime in Embedded Linux, PREEMPT_RT was a project that brings realtime capability into kernel. It has folded fully into 2.6.33 and 3.0 kernel stream. See the document you'll find everything. Basically there have been two approaches to bring realtime capability to linux kernel:
|
|||||||||||||||||||
|
|
Wyolum mas the aLaMode (I call it the Almond Pi) to fit on top of the Pi in a stackable manner. It has a real-time clock, uses a aTiny 328, feeds of the GPIO Real UART / power and is flashable in various ways. It is great because the Pi can do whatever you want it do , web server/database while the Arduino runs in real-time interrupt.
|
|||||||||||
|
|
Here is an article (french translated by google translate) on Raspberry Pi running with Xenomai. |
|||||
|
|
The best solution I've seen to this is the X10i - Real Time Control Board for Raspberry Pi from Heber.
The link above provides excellent and extensive documentation and they try and keep the drivers up to date with the latest version of Debian for Pi. |
|||||
|