PREEMPT_RT setup
- PREEMPT_RT is delivered as a patch against the mainline kernel
- Best to have a board supported by the mainline kernel, otherwise the PREEMPT_RT patch may not apply and may require some adaptations
- Not all releases of the Linux kernel are supported. Most recent: 3.4, 3.6, 3.8, 3.10, 3.12, 3.14, 3.18, 4.0, 4.1, 4.4, 4.6
Quick set up:
- Download the latest PREEMPT_RT patch from http://www.kernel.org/pub/linux/kernel/projects/rt/
- Download and extract the corresponding mainline kernel version
- Apply the patch to the mainline kernel tree
In the kernel configuration, be sure to enable
- CONFIG_PREEMPT_RT_FULL
- High-resolution timers
- Compile your kernel, and boot
- You are now running the real-time Linux kernel
- Of course, some system configuration remains to be done, in particular setting appropriate priorities to the interrupt threads, which depend on your application.