run Linuxcnc on xenomai with EVL(the realtime core)

More
2 years 6 months ago #298537 by cgy
Hi, I'd like to ask how to run LinuxCNC on a system with Xenomai 4  installed (Debian 12).
I installed LinuxCNC using
Code:
sudo apt install linuxcnc-uspace linuxcnc-uspace-dev,
which is how I did it on a Debian 12 system with the preempt-rt patch, and it worked fine there. However, now with Xenomai 4, when I try to run LinuxCNC, it gives me a note: "Note: Using POSIX non-realtime". Does this mean I'm not leveraging Xenomai's real-time performance?
I'm sure my Xenomai installation was successful.
Code:
[code]pi@raspberrypi:~ $ dmesg | grep EVL [    1.079272] IRQ pipeline: high-priority EVL stage added. [    1.081776] EVL: core started 
[/code]

Since there are few tutorials for Xenomai 4, I'm not sure what the correct steps are. My current guess is that I need to run it in the evl environment, which means I need to run it in root mode (sudo su). However, when I tried that, LinuxCNC gave me an error and didn't allow running in root mode.
So, I'm wondering if there's a way to solve this problem, or if there are any parameter settings that can make LinuxCNC run in the real-time core of Xenomai 4.
How can I run an application using the EVL core?
Thanks a lot!

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #298541 by tommylight
No double posting.
-
Is there any particular reason to use Xenonai?
Probably compiling it might work, but i never tried it.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #298544 by cgy
I'm really sorry for the double posting. The first time I tried to post, my webpage crashed, and I thought the post failed.

I'm using Xenomai for some experimental testing. I've already completed my tests on a preempt-rt system, and now I'm moving on to testing with Xenomai. Unfortunately, I've encountered a lot of difficulties, so I'm hoping to get some advice and help from everyone.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #298547 by Cant do this anymore bye all
You'll have to build Linuxcnc for Xenomai.

There maybe some notes in the docs, maybe Andy might chime in.

The packages you downloaded are for the RT kernel.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago - 2 years 6 months ago #298561 by cgy

cornholio post=298547 userid=35653
You'll have to build Linuxcnc for Xenomai.

There maybe some notes in the docs, maybe Andy might chime in.

The packages you downloaded are for the RT kernel.

I just tried it. I rebuilt LinuxCNC as the documentation said

The most commonly used arguments are:

Code:
--with-realtime=uspaceBuild for any realtime platform, or for non-realtime. The resulting LinuxCNC executables will run on both a Linux kernel with Preempt-RT patches (providing realtime machine control) and on a vanilla (un-patched) Linux kernel (providing G-code simulation but no realtime machine control). If development files are installed for Xenomai (typically from package libxenomai-dev) or RTAI (typically from a package with a name starting "rtai-modules"), support for these real-time kernels will also be enabled.

Code:
[code], but unfortunately, it didn't work. It still gives me the message: "[b]Note: Using POSIX non-realtime." Is that normal???[/b]
[/code]
Last edit: 2 years 6 months ago by cgy.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #298575 by Cant do this anymore bye all
I take it you ran the linuxcnc as a RIP ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum