can´t run real configuration on debian wheezy

More
24 Nov 2014 22:42 #53354 by jtc
Hi.

Today I try to migrate from ubuntu 12 to the LCNC version that uses debian wheezy, I install linuxcnc from GIT and everything looks fine.

I can run simulation configurations, but when I try to run the machione configuration, I got this error>
LINUXCNC - 2.8.0~pre1
Machine configuration directory is '/home/user/linuxcnc-dev/configs/faststeel'
Machine configuration file is 'faststeel.ini'
Starting LinuxCNC...
.
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: shmem size mismatch
HAL: ERROR: could not open shared memory
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded

I confirm and looks like I´m running a real time kernel,

the uname -r command returns me this
3.4-9-rtai-686-pae

any suggestion?


Thanks,

João

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

More
25 Nov 2014 00:16 #53358 by ArcEye

Today I try to migrate from ubuntu 12 to the LCNC version that uses debian wheezy, I install linuxcnc from GIT and everything looks fine.


You will have to be specific as to what you have done.

The debian based distro has Linuxcnc 2.6 included.
Is this what you have installed?

If so does the included version of Linuxcnc work?

The error is because the size of shared memory returned is less than requested, but the reason for that is not straight forward.

For a start, what are the contents of /etc/security/limits.conf?

regards

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

More
25 Nov 2014 19:18 #53391 by jtc

Today I try to migrate from ubuntu 12 to the LCNC version that uses debian wheezy, I install linuxcnc from GIT and everything looks fine.


You will have to be specific as to what you have done.

The debian based distro has Linuxcnc 2.6 included.
Is this what you have installed?

If so does the included version of Linuxcnc work?

The error is because the size of shared memory returned is less than requested, but the reason for that is not straight forward.

For a start, what are the contents of /etc/security/limits.conf?

regards


Hi.

I install in a new SSD this version of debian with a usb pen. after that install and pull the master version of linuxcnc. install all the dependencies and compile it.

yes it has the 2.6.4 version installed and it runs the machine configuration.


here is the file:
# /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

Thanks

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

More
25 Nov 2014 20:19 #53392 by ArcEye
Hi

* - memlock 20480 #EMC2


That is what i was looking for in the limits.conf file, should be OK

Can you zip your config folder and attach it, will need to try some tests.

regards

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

More
25 Nov 2014 21:34 #53395 by jtc

Hi

* - memlock 20480 #EMC2


That is what i was looking for in the limits.conf file, should be OK

Can you zip your config folder and attach it, will need to try some tests.

regards


I send you in a PM.

João

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

More
25 Nov 2014 23:28 #53401 by ArcEye

I send you in a PM.


Nothing received, it very often does not work.

I should just attach the config folder, someone else may have a far better idea than me anyway :laugh:

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

Time to create page: 0.123 seconds
Powered by Kunena Forum