RTAPI error?

  • N.McA.
  • N.McA.'s Avatar Topic Author
  • Visitor
  • Visitor
29 Jul 2011 17:31 #11995 by N.McA.
RTAPI error? was created by N.McA.
I'm really sorry to make my first post a cry for help, but I'm struggling to get my setup running.

I installed to my primary hard drive, and its the only OS on my system. I had to use a slightly unconventional install method because of cd-drive driver issues. I used a usb made with UnetBootin, but this install method worked perfectly on a different system.

However, on this system, I can run neither the latency test nor EMC itself.

EMC gives this error message (on pastebin because of the size)
pastebin.com/LE6jvwYx

The latency test gives these errors when run in terminal as root:
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/rtai_hal.ko': -1 Operation not permitted
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: Locked memory limit is 64KiB, recommended at least 20480KiB.
This can cause the error 'could not open shared memory'.
For more information, see
	http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?LockedMemory
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: Locked memory limit is 64KiB, recommended at least 20480KiB.
This can cause the error 'could not open shared memory'.
For more information, see
	http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?LockedMemory
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: Locked memory limit is 64KiB, recommended at least 20480KiB.
This can cause the error 'could not open shared memory'.
For more information, see
	http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?LockedMemory
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
ERROR: Module hal_lib does not exist in /proc/modules
ERROR: Module rtapi does not exist in /proc/modules
ERROR: Module rtai_math does not exist in /proc/modules
ERROR: Module rtai_sem does not exist in /proc/modules
ERROR: Module rtai_fifos does not exist in /proc/modules
ERROR: Module rtai_sched does not exist in /proc/modules
ERROR: Module rtai_hal does not exist in /proc/modules

Thanks so much to anyone who can help, I want to get cutting!

-N

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

More
29 Jul 2011 18:41 #11996 by Rick G
Replied by Rick G on topic Re:RTAPI error?
Which are you trying 8.04 or 10.04?
Have you tried both?

Rick G

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

More
30 Jul 2011 09:34 #12024 by Rick G
Replied by Rick G on topic Re:RTAPI error?
Have you looked here...
wiki.linuxcnc.org/emcinfo.pl?TroubleShooting
Does the problem computer have more than one core?
If so can you disable all but one core in the bios?
also
wiki.linuxcnc.org/emcinfo.pl?TroubleShoo...lcpus_Boot_parameter

It has been noted that some computers (older?) do not seem to work with 10.04 but are fine with 8.04 the reverse may also be true.

Rick G

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

More
01 Aug 2011 11:44 #12076 by andypugh
Replied by andypugh on topic Re:RTAPI error?
What does uname -r say?

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

More
17 Oct 2011 10:15 #13978 by alexr
Replied by alexr on topic Re:RTAPI error?
Unexpected realtime delay: check dmesg for details (X)

RTPI ERROR: Unexpected realtime delayon task1
This message will only display once per session.
run the latency test and resolve before continuing,

LAG TEST
max interval 1000634
max jitter 5009
last interval 998450
(off the scale would you say?! i would)


ABOVE IS THE DETAIL:

I have recently built another machine and am using it to run my mill off a fresh livecd install.

BigJohnT sent me looking for the isocpu thing a ma bob which is why i am here.

my system is a

intel quadcore Q6600 2.4ghz
4gig 6400 9-9-9-7 ram
nvidia graphics card
asus motherboard

apparently this is because i have 3 more cpu cores then emc2 needs (odd because the last working machine was a coreduo 2 2.6ghz dualcore ran ok.. for a boat anchor)

after reading that confusing lump of crap what the hell am i suppose to do to ubuntu 10.04 so that i may get emc2.4 to work??????

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

More
17 Oct 2011 10:59 #13980 by andypugh
Replied by andypugh on topic Re:RTAPI error?
alexr wrote:

LAG TEST
max interval 1000634
max jitter 5009
last interval 998450
(off the scale would you say?! i would)


No, that all looks fine. You might need to run the test for longer to see the problem, or stress the system (glxgears for example, opening web browsers, that sort of thing) to see the problem.

All that matters is the "max jitter" and 5000 is very good.

What is your base period in the INI file?

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

More
17 Oct 2011 20:43 #13995 by alexr
Replied by alexr on topic Re:RTAPI error?
I am not sure andy

where should i be looking for that ini file? and on that note if you need any other information... tell me how and where and its yours to scrutinize.

my system is now ridiculously fast following the isolcpus tutorial!!! I get about 12000 doing my best stress test as compared to 5000 which was moving a window around and letting the screen saver go because that is the most stress this operator console gets.

But it didnt help with the RTAPI errors and i was working on the assumption of less then 30,000 is "functional". I have never had the other figures in the millions before... even on the roll my own kernels.

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

More
17 Oct 2011 21:07 #13996 by BigJohnT

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

More
17 Oct 2011 21:27 #13998 by andypugh
Replied by andypugh on topic Re:RTAPI error?
alexr wrote:

But it didnt help with the RTAPI errors and i was working on the assumption of less then 30,000 is "functional". I have never had the other figures in the millions before... even on the roll my own kernels.


Maybe I am reading the figures you posted wrong, but my interpretation is that you asked for a 1,000,000nS servo thread, and the worst-case jitter on that is 5009nS and the last servo period was 998450, ie 1550nS shorter than requested.
I don't think that 998450 is a jitter number.

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

More
18 Oct 2011 09:20 #14009 by alexr
Replied by alexr on topic Re:RTAPI error?
sorry i was meaning in base thread ... and yes i gave you servo thread details.

my bad!

on an interesting note; the emc2 2.4 package and emc2 -dev packages have shown up in synaptic as an {!} instead of a green box

i found this out after all i got was an error report after restarting the console

i wonder what happens when i upgrade/reinstall?!

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

Time to create page: 0.221 seconds
Powered by Kunena Forum