Hi sir,
I am using the image “Emlid-Raspbian-RT-FEB-2015.img” for testing in Raspberry Pi. When I compile the example code, I got error message “hello.c:1:17: fatal error: rtl.h: No such file or directory”. Would you help to solve the issue?
Thanks you for quick reply. Actually, I would like to try the real-time Linux. The Hello world is a test code. Does the kernel support real-time Linux or anything I need to install?
The code you’ve found is probably for RTLinux - RTOS with it’s own kernel that can also run Linux as a process.
The naming is a little bit confusing. It’s not what we use - we use Linux with kernel patched with RT_PREEMPT patch that allows to enable full real-time preemption. To write programs that use it’s real-time capabilities it is necessary to properly control priorities and threading. You can find a good explanation of what’s going on and real-time “hello world” example here: https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO