NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me

TOPIC: RTAPI error?

RTAPI error? 29 Jul 2011 10:31 #11995

  • N.McA.
  • N.McA.'s Avatar
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
The administrator has disabled public write access.

Re:RTAPI error? 29 Jul 2011 11:41 #11996

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1074
  • Thank you received: 16
  • Karma: 80
Which are you trying 8.04 or 10.04?
Have you tried both?

Rick G
The administrator has disabled public write access.

Re:RTAPI error? 30 Jul 2011 02:34 #12024

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1074
  • Thank you received: 16
  • Karma: 80
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
The administrator has disabled public write access.

Re:RTAPI error? 01 Aug 2011 04:44 #12076

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4140
  • Thank you received: 141
  • Karma: 130
What does uname -r say?
The administrator has disabled public write access.

Re:RTAPI error? 17 Okt 2011 03:15 #13978

  • alexr
  • alexr's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 75
  • Karma: 1
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??????
The administrator has disabled public write access.

Re:RTAPI error? 17 Okt 2011 03:59 #13980

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4140
  • Thank you received: 141
  • Karma: 130
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?
The administrator has disabled public write access.

Re:RTAPI error? 17 Okt 2011 13:43 #13995

  • alexr
  • alexr's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 75
  • Karma: 1
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.
The administrator has disabled public write access.

Re:RTAPI error? 17 Okt 2011 14:07 #13996

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 87
  • Karma: 134
The administrator has disabled public write access.

Re:RTAPI error? 17 Okt 2011 14:27 #13998

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4140
  • Thank you received: 141
  • Karma: 130
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.
The administrator has disabled public write access.

Re:RTAPI error? 18 Okt 2011 02:20 #14009

  • alexr
  • alexr's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 75
  • Karma: 1
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?!
The administrator has disabled public write access.
Time to create page: 1.200 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.