rtapi -- uspace -- "Using POSIX non-realtime"

More
9 years 11 months ago #83056 by jCandlish
Hi Forum

I compiled the newest linux kernel configured as preemptable, but linuxcnc uspace disagrees.
Code:
latheoperator@125cnc:~$ uname -a Linux 125cnc 4.8.9-jbc01 #1 SMP PREEMPT Sun Nov 20 09:34:59 CET 2016 x86_64 GNU/Linux latheoperator@125cnc:~$ !lat latency-test 1000000 1000000 Waiting for component 'threads' to become ready....Waited 3 seconds for master. giving up. Note: Using POSIX non-realtime Waiting for component 'lat' to become ready.... Note: Using POSIX non-realtime latheoperator@125cnc:~$ ls -l /usr/bin/rtapi_app -rwsr-xr-x 1 root root 102072 Nov 21 09:08 /usr/bin/rtapi_app latheoperator@125cnc:~$

Also, I would like to work my way though the rtapi examples in the ./src/rtapi/examples directory, but am not quite understanding the ./src/rtapi/README file.

Starting from:
Code:
2. Load the RTOS and RTAPI modules: Note: for this and most of the following steps you will need to be root, or use 'su -c "<command>"' scripts/load_rtapi See a number of messages pop up in the kernel log as components of the RTOS are installed... One of the last ones will be:

I can't find a load_rtapi script anywhere in the source distribution.

Are there pre-existing test-cases for the rtapi and uspace?

If so, how does one get started using them?

Thanks,
jCandlish

.

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

More
9 years 11 months ago #83066 by andypugh

_jC wrote: I can't find a load_rtapi script anywhere in the source distribution


Yes, it appears that that README file contains a hangover from long ago. Looking back to v2.0 11 years ago it wasn't there then....

Are there pre-existing test-cases for the rtapi and uspace?


There are many tests that are run by the buildbot, and you can try those:

github.com/LinuxCNC/linuxcnc/blob/master/tests/README

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

More
9 years 11 months ago - 9 years 11 months ago #83067 by dgarrett

I compiled the newest linux kernel configured as preemptable, but linuxcnc uspace disagrees.


Did you configure uspace properly?
Code:
$ cd the_root_dir/src $ ./autogen.sh $ ./configure --with-realtime=uspace

am not quite understanding the ./src/rtapi/README file.


That file seems to be out-of-date. It was last modified:
2cc3ad7 2014-08-30
Last edit: 9 years 11 months ago by dgarrett.

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

More
9 years 11 months ago - 9 years 11 months ago #83070 by jCandlish
I compliled linuxcnc via the 'apt-get source' method.

That is, I downloaded the package source and built local NMU debs.

This package is working with the current 'stretch' preempt kernel.
Code:
Linux 125cnc 4.8.0-1-rt-amd64 #1 SMP PREEMPT RT Debian 4.8.5-1 (2016-10-28) x86_64 GNU/Linux

My 4.8.9 preempt kernel says:
Code:
Note: Using POSIX non-realtime

I would like to better understand the uspace rtapi wrapper. I'm only finding out of date documentation.

.
Last edit: 9 years 11 months ago by jCandlish.

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

More
9 years 11 months ago #83072 by jCandlish

andypugh wrote: There are many tests that are run by the buildbot, and you can try those:


I was thinking more specifically about the examples in ./src/rtapi/examples, and how they apply to the uspace wrapper.

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

More
9 years 11 months ago - 9 years 11 months ago #83073 by dgarrett

I compliled linuxcnc via the 'apt-get source' method.


You must still use .configure with --realtime=uspace for a preempt-rt kernel
Code:
$ ./configure --help|grep realtime --enable-simulator Deprecated! Use --with-realtime=uspace instead. --with-realtime=PATH Path where RTAI is installed, or "uspace" for POSIX

Once configured for uspace realtime, you should see a correct report
(to stdout) for commands like
Code:
$ latency-test Note: Using POSIX realtime ...


Configuration is not correct if report is:
Code:
Note: Using POSIX non-realtime
Last edit: 9 years 11 months ago by dgarrett.

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

Time to create page: 0.364 seconds
Powered by Kunena Forum