LinuxCNC on Xenomai

More
20 Dec 2018 10:02 #122635 by andypugh
Replied by andypugh on topic LinuxCNC on Xenomai
I don't think that the debian configure (which makes getbuilddeps work) takes the same arguments as the ./configure for the makefile.

What happens if, in the /src/ directory you type
./configure --with-realtime=uspace
make
sudo make setuid

?

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

More
20 Dec 2018 13:28 #122640 by shameless
Replied by shameless on topic LinuxCNC on Xenomai
In the /src/ , I type ./configure --with-realtime=uspace & make & sudo make setuid
No errors, No warnings, Everything is fine.
And I also can launch linuxcnc normally.
But when I tpye ". ./scripts/rip-environment" and run latency-test to test the realtime performance(without linuxcnc running), the resault is not good.
#########
So I wonder if the linuxcnc has not been installed with xenomai successfully.
So when you execute the debian configure command, did you set the argument as "xenomai"? If you did, and is there any message just like mine "your kernel xenomai" is not known, ***"?

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

More
20 Dec 2018 14:17 #122644 by andypugh
Replied by andypugh on topic LinuxCNC on Xenomai

So when you execute the debian configure command, did you set the argument as "xenomai"? If you did, and is there any message just like mine "your kernel xenomai" is not known, ***"?


I have only built for Xenomai once, on the Udoo, and never used that board afterwards.

If you start LinuxCNC from the command-line does it print "Using POSIX Realtime" or something else?

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

More
21 Dec 2018 02:35 #122671 by shameless
Replied by shameless on topic LinuxCNC on Xenomai
When I run the test , there's "USING POSIX Realtime"
I attached the photo below, when it run for a while, the reault will be much worse and worse.
Especially for the Base thread, the performance is bad at the running start. It print "Unexpected realtime delay on task 0 with 25000,***"

When I start LinuxCNC for the command line, after I choose "axis", and there are lots of prints, including "Note:USING POSIX Realtime",And I atteched it below.
Attachments:

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

More
21 Dec 2018 10:19 #122681 by andypugh
Replied by andypugh on topic LinuxCNC on Xenomai
A jitter of 25,000 is perfectly usable.

What hardware do you anticipate using?

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

More
21 Dec 2018 13:59 #122697 by shameless
Replied by shameless on topic LinuxCNC on Xenomai
Yeah, CPU is Intel i7
I solve the "dlopen:**" problem.
And it print "Uing Xenomai(posix skin) realtime.
Now the performance is around 25,000
and now I am install linuxcnc-ethercat
but I can not even "make" it, it prints "configure.mk.8: *** halcompile/comp executable not found or set, terminated"
Oh, why are there so many many many problems?

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

More
21 Dec 2018 14:02 - 21 Dec 2018 14:04 #122699 by andypugh
Replied by andypugh on topic LinuxCNC on Xenomai
That's odd.

If you try to run halcompile from the command prompt what happens?

(As for why you are having problems, I suspect that is largely bcause you have chosen to build for yourself on a less-used version of the realtime kernel. It is to try to avoid this sort of trouble that we we supply the ISO images of complete working systems)
Last edit: 21 Dec 2018 14:04 by andypugh.
The following user(s) said Thank You: shameless

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

More
08 Sep 2023 06:20 #280246 by shaying526
Replied by shaying526 on topic LinuxCNC on Xenomai
hi,
I am compiling LinuxCNC on xenomai
When running latency-test, it will display 'Note: using POSIX non-realtime'
It doesn't seem to work in the real-time kernel
And you show 'Using POSIX realtime' here, I think this is right

Here are my compilation steps

cd linuxcnc-2.8.4/debian
./configure uspace xenomai
cd ../src/
./autogen.sh
./configure --with-realtime=uspace
sudo make setuid
source ../script/rip-enviroment

env:
linux-4.14.134
xenomai3.1
linuxcnc-2.8.4

What are your compilation steps?
Thank you

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

Time to create page: 0.264 seconds
Powered by Kunena Forum