10.04 live cd no Realtime

More
10 Sep 2010 05:25 #4082 by blazedforever
I downloaded the 10.04 emc live cd and installed it seems the realtime system is not loading. I checked the grub boot menu and realtime kernel is listed but doesn't seem to load, the memory lock limit is set to 20480KiB. Here is the output i get running emc from term.


hans@CnC:~$ sudo emc
EMC2 - 2.4.3
Machine configuration directory is '/home/hans/emc2/configs/my-mill'
Machine configuration file is 'my-mill.ini'
Starting EMC2...
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/rtai_hal.ko': -1 Operation not permitted
Realtime system did not load
Shutting down and cleaning up EMC2...
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
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
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
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
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
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
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
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
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
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
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
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
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
Cleanup done
EMC terminated with an error. You can find more information in the log:
/home/hans/emc_debug.txt
and
/home/hans/emc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

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

More
10 Sep 2010 09:04 #4088 by andypugh
Have you tried doing what is suggested in the URL pointed to?
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?LockedMemory
(Your second sentence suggests that you have, I am just trying to be clear)
Not that that should be necessary on a fresh, LiveCD install.

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

More
10 Sep 2010 11:30 - 10 Sep 2010 11:46 #4089 by blazedforever
yes i have sorry.

limits.conf :
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - an user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#        - NOTE: group and wildcard limits are not applied to root.
#          To apply a limit to the root user, <domain> must be
#          the literal username root.
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open files
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit (KB)
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to values: [-20, 19]
#        - rtprio - max realtime priority
#        - chroot - change root to directory (Debian-specific)
#
#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#root            hard    core            100000
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#ftp             -       chroot          /ftp
#@student        -       maxlogins       4

# End of file

* - memlock 20480 #EMC2
hans@CnC:~$ sudo /etc/init.d/realtime start
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/rtai_hal.ko': -1 Operation not permitted


I updated the rt kernel via synaptic thats why the version shows as realtime-2.6.32-122-rtai, had the same error before the update.
Last edit: 10 Sep 2010 11:46 by blazedforever.

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

More
10 Sep 2010 13:34 #4096 by Mike_Eitel
I have the same problems with my testsystem

Update had ...rtai--- problem.

decided to setup completly new by 10.4 iso.

Can not run emc2 ( see above )

decidet to go back to 8.04 and wait some time for bugfix before for next try

Mike

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

More
10 Sep 2010 14:31 #4097 by andypugh
blazedforever wrote:

#* soft core 0
#root hard core 100000

* - memlock 20480 #EMC2


[/quote]

I am not sure that the format "* - memlock 20480" is valid, it doesn't match the file comments.

I wonder if it is worth trying

* hard memlock 20480
( and possibly also * soft memlock 20480 )

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

More
10 Sep 2010 14:33 #4098 by andypugh
andypugh wrote:

[
I am not sure that the format "* - memlock 20480" is valid, it doesn't match the file comments.


Ignore that, linux.die.net/man/5/limits.conf says that "-" means "hard" and "soft" at the same time.

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

More
10 Sep 2010 14:45 #4099 by andypugh
Mike_Eitel wrote:

decidet to go back to 8.04 and wait some time for bugfix before for next try


Bugfixes don't happen automatically for problems not seen by the developers. It might be worth adding a bug report at
sourceforge.net/tracker/?atid=106744&group_id=6744&func=browse

Is the problem with existing configs, or do the sample configs not work either?

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

More
10 Sep 2010 15:09 #4101 by Mike_Eitel
Sorry
I have alread reinstalled back to 8.04
It's running on an old 650mHz pentium with 320mb


I installed new from CD, than updated via www.
same to emc2 .4 = latest
Tried to runt he sim-axis-mm No startup.
No emc but rtai .... errors ...

Decided too hard problem for me to solve


Tried to see the second parport... also no succes, but wrong-directory errors from manifacturers CD.
decided to solve one problem by the other = reinstall... Maybee PC is too old for 10.04..

Sorry


P.S.
In the moment I'm trying to get a second (cheep china ) parport running, for a luxury jog whell .
I wan't to have A / B, 4 axis and 4 speed buttons as inputs and 4 led's as choosen-axis- feedback.

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

More
10 Sep 2010 22:40 #4106 by blazedforever
Just finished a re-install of the 10.04 emc live cd, all errors remain the same, 8.04 hardy runs fine.

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

More
11 Sep 2010 08:10 #4114 by alex_joni
did you check dmesg for any (maybe related) error messages?

Regards,
Alex

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

Time to create page: 1.360 seconds
Powered by Kunena Forum