Problem Update to 2.5 from 2.3 with Hardy 8.04

More
12 Apr 2012 12:33 #19142 by bigalex
Hello people

I updated the system to EMC2 (linuxcnc) v2.5 from v2.3 on Hardy 8.04 following the wiki specification .

I moved my machine configuration into the appropriate directory and change the root for the ngc file folder.

I started the machine configuration but after a while I had the stop of the configuration loading and the Log appears as below :

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.24-16-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.4
LINUXCNC - 2.5.0
Machine configuration directory is '/home/cnc/linuxcnc/configs/robomill'
Machine configuration file is 'robomill.ini'
INIFILE=/home/cnc/linuxcnc/configs/robomill/robomill.ini
PARAMETER_FILE=emc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Starting TASK program: milltask
Starting DISPLAY program: axis
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)

**********************************************************
* Current Directory = /home/cnc/linuxcnc/configs/robomill
*
**********************************************************
* BufferName = emcStatus
* BufferType = 0
* ProcessName = emc
* Configuration File = emc.nml
* CMS Status = -3 (CMS_INTERNAL_ACCESS_ERROR: An error occured during an internal access function. )
* Recent errors repeated:

PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.

CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cm

* BufferLine: B emcStatus SHMEM localhost 10240 0 0 2 16 1002 TCP=5005 xdr
* ProcessLine: P emc emcStatus LOCAL localhost W 0 1.0 0 0
* error_type = 5 (NML_INTERNAL_CMS_ERROR)
************************************************************

libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180

**********************************************************
* Current Directory = /home/cnc/linuxcnc/configs/robomill
*
**********************************************************
* BufferName = emcStatus
* BufferType = 0
* ProcessName = xemc
* Configuration File = emc.nml
* CMS Status = -3 (CMS_INTERNAL_ACCESS_ERROR: An error occured during an internal access function. )
* Recent errors repeated:

CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180



* BufferLine: B emcStatus SHMEM localhost 10240 0 0 2 16 1002 TCP=5005 xdr
* ProcessLine: P xemc emcStatus LOCAL localhost R 0 10.0 0 10
* error_type = 5 (NML_INTERNAL_CMS_ERROR)
************************************************************

libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1373: CMS:(emcStatus) Error writing 11592 bytes to global memory at offset 0x82fcd18
(See libnml/cms/cms_in.cc line 1376.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 11592 bytes at offset 60 from buffer of size 10208.

Maximum number of errors to print exceeded!
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180
libnml/cms/cms_in.cc 1082: CMS:(emcStatus) Message size of 11592 exceeds maximum of 10180

Maximum number of errors to print exceeded!
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=7416
Killing task milltask, PID=7553
INFO CLASSICLADDER---I/O modbus master closed!
INFO CLASSICLADDER---I/O modbus master (Ethernet) init ok !
INFO CLASSICLADDER- Modbus I/O module to send: Lgt=21 <- Slave address-0 Function code-1 Data-0 0 0 F 1 10 0 10 0 4 8 0 0 0 0 0 0 0 0
Init socket for I/O module (0)...
Connecting I/O module...
Failed to connect to I/O module
INFO CLASSICLADDER- Modbus I/O module to send: Lgt=21 <- Slave address-0 Function code-2 Data-0 0 0 F 1 10 0 10 0 4 8 0 1D 0 3A 0 57 0 74
Init socket for I/O module (0)...
Connecting I/O module...
ERROR CLASSICLADDER- Error intializing classicladder user module.
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
7416
PID TTY STAT TIME COMMAND
7553
PID TTY STAT TIME COMMAND
7553 ? Z 0:00 [milltask] <defunct>
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
ULAPI: WARNING: module 'HAL_classicladder' failed to delete shmem 03

Kernel message information:
[ 7066.831359] I-pipe: Domain RTAI registered.
[ 7066.831365] RTAI[hal]: <3.6.1> mounted over IPIPE-NOTHREADS 2.0-04.
[ 7066.831367] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3).
[ 7066.831371] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 7066.831372] PIPELINE layers:
[ 7066.831374] f8b26000 9ac15d93 RTAI 200
[ 7066.831375] c0383180 0 Linux 100
[ 7066.838903] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 7066.839180] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 7066.839184] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing: periodic; linear timed lists.
[ 7066.839187] RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq = 2194554000 hz.
[ 7066.839188] RTAI[sched]: timer setup = 2010 ns, resched latency = 2688 ns.
[ 7066.899164] RTAI[math]: loaded.
[ 7066.957857] config string '0x2430 out '
[ 7066.965887] creating ladder-state
[ 7073.683312] RTAI[math]: unloaded.
[ 7073.734475] SCHED releases registered named ALIEN RTGLBH
[ 7073.747681] RTAI[malloc]: unloaded.
[ 7073.847363] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 7073.849041] I-pipe: Domain RTAI unregistered.
[ 7073.849048] RTAI[hal]: unmounted.


Thanks a lot for any advice.

bigalex :blink:

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

More
12 Apr 2012 12:55 - 12 Apr 2012 12:58 #19143 by BigJohnT
I'm positive you missed a step in changing things from 2.3 to 2.5.

Did you follow the instructions on this page ?

John
Last edit: 12 Apr 2012 12:58 by BigJohnT.

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

More
12 Apr 2012 13:12 #19144 by bigalex
No I use this http://http://wiki.linuxcnc.org/cgi-bin/wiki.pl?UpdatingTo2.5

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

More
12 Apr 2012 13:18 #19145 by bigalex
Thanks for the link John.

I solved with that :

1.1. emc.nml changes
For configurations that have not customized emc.nml, remove the inifile line NML_FILE = emc.nml. This will cause the most up to date version of emc.nml to be used.

For configurations that have customized emc.nml, a change similar to this one is required.

Failure to do this can cause an error like "libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10748 bytes at offset 60 from buffer of size 10208."


Thanks again.


bigalex :blink:

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

Time to create page: 0.086 seconds
Powered by Kunena Forum