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

More
21 Mar 2021 20:21 #203152 by V-max
Hi,
I have the same problem in a: Debian 10 4.19.0-14-rt-amd64 kernel.
Where can I check the last patch available?
Thanks a lot!

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

More
21 Mar 2021 23:40 #203173 by andypugh
Are you sure that you have the same issue as this thread is discussing?

Did you compile the RT kernel yourself? (And, if so,. why?)

Did you compile linuxCNC yourself? (and, if so, why?)

What does uname -a say?

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

More
22 Mar 2021 17:56 #203270 by V-max
Hi Andy, Thaks for reply!

Are you sure that you have the same issue as this thread is discussing? /quote]

I'm a beginner and have this one:

"Failed to get reference clock time: Input/output error
Shutting down and cleaning up LinuxCNC...
task: 66304 cycles, min=0.000047, max=0.044388, avg=0.001064, 2 latency excursions (> 10x expected cycle time of 0.001000s)
Note: Using POSIX non-realtime
avc@avc:~/LinuxCncRip/scripts$ "


Firstly I tried to install:

"LinuxCNC 2.8.0 Debian 10 Buster PREEMPT-RT ISO"
from the main page of download, but I had to install the headers and I wasn't able to find the headers for the kernel of this versión and installed the newer ones.


I'm trying to install EtherCAT Hal driver and a RIP installation is needed.

What does uname -a say?


avc@avc:~$ uname -a
Linux avc 4.19.0-14-rt-amd64 #1 SMP PREEMPT RT Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux
avc@avc:~$

Thanks a lot!!

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

More
23 Mar 2021 00:40 #203323 by andypugh
In that case it does sound like you forgot

./configure --with-realtime=uspace

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

More
23 Mar 2021 19:05 #203418 by V-max
Hi andy
I have found a text file with the terminal out from when I did it.
Itś more, I had to do several times due to other problems and the first ones I had to apply:

configure --with-realtime=uspace --enable-non-distributable=yes

Is it the Kernel right?

V-max
Attachments:

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

More
23 Mar 2021 22:44 #203455 by andypugh
It is likely that the underlying problem is that you did "sudo make" so the ownership of you RIP install is wrong.

It should be

make
sudo make setuid

I would suggest cleaning up and trying again.

sudo make clean
make clean
./autogen.sh
./configure --with-realtime=uspace

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

More
24 Mar 2021 22:00 #203551 by V-max
Hi Andy

Done but...

During the first try to start Linuxcnc there is not Posix note.
I do chmod 777 to rtapi_app and appear again the Posix note.

Thanks.

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

More
26 Mar 2021 11:31 #203693 by thang
seem you missed command "sudo make setuid" after make lcnc

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

More
27 Mar 2021 21:53 #203843 by andypugh
You should not need to chmod anything.

"sudo make setuid" changes some permissions, but that is all that should be changed, and you should use the script, not do it by hand.

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

More
01 Apr 2021 09:08 #204376 by V-max
Hi andy

Thanks a lot for your help and sorry for the delay, I'm in a hurry lately.

I did CHMOD because I had permission problems:

avc@avc:~/LinuxCncRip/src$ sudo make setuid
chown root ../bin/rtapi_app
chmod 4750 ../bin/rtapi_app
chown root ../bin/linuxcnc_module_helper
chmod 4750 ../bin/linuxcnc_module_helper
avc@avc:~/LinuxCncRip/src$ cd ..
avc@avc:~/LinuxCncRip$ cd scripts/
avc@avc:~/LinuxCncRip/scripts$ . ./rip-environment

avc@avc:~/LinuxCncRip/scripts$ linuxcnc
LINUXCNC - 2.8.1
Machine configuration directory is '/home/avc/linuxcnc/configs/Maquina_ethercat'
Machine configuration file is 'maquinaEthercat.ini'
Starting LinuxCNC...
Found file(REL): ./maquinaEthercat.hal
./maquinaEthercat.hal:6: execv(/home/avc/LinuxCncRip/bin/rtapi_app): Permission denied
./maquinaEthercat.hal:6: waitpid failed /home/avc/LinuxCncRip/bin/rtapi_app trivkins
./maquinaEthercat.hal:6: /home/avc/LinuxCncRip/bin/rtapi_app exited without becoming ready
./maquinaEthercat.hal:6: insmod for trivkins failed, returned -1
Shutting down and cleaning up LinuxCNC...
/home/avc/LinuxCncRip/scripts/realtime: line 176: /home/avc/LinuxCncRip/bin/rtapi_app: Permission denied
LinuxCNC terminated with an error. You can find more information in the log:
/home/avc/linuxcnc_debug.txt
and
/home/avc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
avc@avc:~/LinuxCncRip/scripts$ cd ..
avc@avc:~/LinuxCncRip$ cd bin/
avc@avc:~/LinuxCncRip/bin$ sudo chmod 777 rtapi_app
avc@avc:~/LinuxCncRip/bin$ cd ..
avc@avc:~/LinuxCncRip$ cd scripts/
avc@avc:~/LinuxCncRip/scripts$ linuxcnc
LINUXCNC - 2.8.1
Machine configuration directory is '/home/avc/linuxcnc/configs/Maquina_ethercat'
Machine configuration file is 'maquinaEthercat.ini'
Starting LinuxCNC...
Found file(REL): ./maquinaEthercat.hal
Note: Using POSIX non-realtime
.
.
.
.

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

Time to create page: 0.090 seconds
Powered by Kunena Forum