How do you use RT Linux with the Raspberry Pi support package?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm using the MATLAB/Simulink Hardware Support package for Raspberry Pi, and I replaced the kernel used in the included Raspberry Pi firmware with a fully preemptible real-time kernel as per these instructions: https://autostatic.com/2017/06/27/rpi-3-and-the-real-time-kernel/. My issue is that, when I test the kernel using cyclictest and generate some load using hackbench (commands shown below), I get latencies ranging from 15-4000 microseconds, indicating that the kernel is being preempted.
cyclictest -m -t1 -p 99 -n -i 500 -l 100000
hackbench -l 1000000
To isolate the issue, I tried the same test on a Raspberry Pi running a clean installation of Raspbian Lite from the Raspberry Pi website. I did not install any MATLAB firmware on this device and used the same real-time kernel as before. Using the same test as above, I found that the kernel latencies never exceeded 69 microseconds, meaning that the kernel was working as it should.
This indicates that the breakdown in the kernel's preemption model must be caused by the MATLAB firmware. Does anyone know why this might be the case?
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Installation Setup and Configuration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!