Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@emc:~/tmp/univstepdiag# ./univstepdiags test bus
- io addr = 378
- parport addr 0x378
- Bus Map
- Board Addr Type Ver.
- 0 Univ. Stepper 3
- 2 No Board ff
- rest say no board
- root@emc:~/tmp/univstepdiag# ./univstepdiags test commtest
- io addr = 378
- parport addr 0x378
- 1000 test cycles, 0 errors
- 2000 test cycles, 0 errors
- 3000 test cycles, 0 errors
- 4000 test cycles, 0 errors
- 5000 test cycles, 0 errors
- goes on forever
- Here is what happens when I start EMC:
- Print file information:
- RUN_IN_PLACE=no
- EMC2_DIR=
- EMC2_BIN_DIR=/usr/bin
- EMC2_TCL_DIR=/usr/share/emc/tcl
- EMC2_SCRIPT_DIR=
- EMC2_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/emc2
- EMC2_CONFIG_DIR=
- EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
- INIVAR=inivar
- HALCMD=halcmd
- EMC2_EMCSH=/usr/bin/wish8.5
- EMC2 - 2.4.6
- Machine configuration directory is '/root/univstep'
- Machine configuration file is 'univstep.ini'
- INIFILE=/root/univstep/univstep.ini
- PARAMETER_FILE=univstep.var
- EMCMOT=motmod
- EMCIO=io
- TASK=milltask
- HALUI=
- DISPLAY=axis
- NML_FILE=emc.nml
- Starting EMC2...
- Starting EMC2 server program: emcsvr
- Loading Real Time OS, RTAPI, and HAL_LIB modules
- Starting EMC2 IO program: io
- iocontrol: machine: 'EMC2-USC-Thread' version '1.6'
- libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 6348 bytes at offset 60 from buffer of size 4064.
- libnml/cms/cms_in.cc 1383: CMS:(toolSts) Error writing 6348 bytes to global memory at offset 80565C4
- (See libnml/cms/cms_in.cc line 1386.)
- **********************************************************
- * Current Directory = /root/univstep
- *
- **********************************************************
- * BufferName = toolSts
- * BufferType = 0
- * ProcessName = tool
- * 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 6348 bytes at offset 60 from buffer of size 4064.
- CMS:(toolSts) Error writing 6348 bytes to global memory at offset 80565C4
- (See libnml/cms/cms_in.
- * BufferLine: B toolSts SHMEM localhost 4096 0 0 5 16 1005 TCP=5005 xdr
- * ProcessLine: P tool toolSts LOCAL localhost W 0 1.0 0 3
- * error_type = 5 (NML_INTERNAL_CMS_ERROR)
- ************************************************************
- libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 6348 bytes at offset 60 from buffer of size 4064.
- libnml/cms/cms_in.cc 1383: CMS:(toolSts) Error writing 6348 bytes to global memory at offset 80565C4
- (See libnml/cms/cms_in.cc line 1386.)
- Shutting down and cleaning up EMC2...
- Killing task emcsvr, PID=1412
- Removing HAL_LIB, RTAPI, and Real Time OS modules
- Removing NML shared memory segments
- Cleanup done
- Debug file information:
- (time=1292268865.654589,pid=1412): Registering server on TCP port 5005.
- (time=1292268865.654850,pid=1412): running server for TCP port 5005 (connection_socket = 3).
- Unrecognized line skipped: POC FMS LEN DIAM COMMENT
- insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/emc2/hal_ppmc.ko': -1 Operation not permitted
- univstep_load.hal:13: exit value: 1
- univstep_load.hal:13: insmod failed, returned -1
- See the output of 'dmesg' for more information.
- 1412
- (time=1292268867.123106,pid=1412): Deleting 5 channels from the NML_Main_Channel_List.
- (time=1292268867.123178,pid=1412): Deleting emcCommand NML channel from NML_Main_Channel_List.
- (time=1292268867.123195,pid=1412): deleting NML (1)
- (time=1292268867.123210,pid=1412): delete (CMS *) 84441E8;
- (time=1292268867.123237,pid=1412): rcs_shm_close(shm->key=1001(0x3E9),shm->size=8192(0x2000),shm->addr=0xB7841000)
- (time=1292268867.123295,pid=1412): deleting CMS (emcCommand)
- (time=1292268867.123321,pid=1412): free( data = 8444B00);
- (time=1292268867.123337,pid=1412): Leaving ~CMS()
- (time=1292268867.123352,pid=1412): CMS::delete(84441E8)
- (time=1292268867.123367,pid=1412): CMS::delete successful.
- (time=1292268867.123384,pid=1412): Leaving ~NML()
- (time=1292268867.123397,pid=1412): NML channel deleted from NML_Main_Channel_List
- (time=1292268867.123411,pid=1412): Deleting emcStatus NML channel from NML_Main_Channel_List.
- (time=1292268867.123426,pid=1412): deleting NML (2)
- (time=1292268867.123440,pid=1412): delete (CMS *) 8449AB8;
- (time=1292268867.123456,pid=1412): rcs_shm_close(shm->key=1002(0x3EA),shm->size=10240(0x2800),shm->addr=0xB783E000)
- (time=1292268867.123489,pid=1412): deleting CMS (emcStatus)
- (time=1292268867.123508,pid=1412): free( data = 844A3D0);
- (time=1292268867.123525,pid=1412): Leaving ~CMS()
- (time=1292268867.123539,pid=1412): CMS::delete(8449AB8)
- (time=1292268867.123553,pid=1412): CMS::delete successful.
- (time=1292268867.123567,pid=1412): Leaving ~NML()
- (time=1292268867.123582,pid=1412): NML channel deleted from NML_Main_Channel_List
- (time=1292268867.123595,pid=1412): Deleting emcError NML channel from NML_Main_Channel_List.
- (time=1292268867.123609,pid=1412): deleting NML (3)
- (time=1292268867.123624,pid=1412): delete (CMS *) 844D0D0;
- (time=1292268867.123639,pid=1412): rcs_shm_close(shm->key=1003(0x3EB),shm->size=8192(0x2000),shm->addr=0xB783C000)
- (time=1292268867.123663,pid=1412): deleting CMS (emcError)
- (time=1292268867.123683,pid=1412): free( data = 844D9E8);
- (time=1292268867.123697,pid=1412): Leaving ~CMS()
- (time=1292268867.123711,pid=1412): CMS::delete(844D0D0)
- (time=1292268867.123727,pid=1412): CMS::delete successful.
- (time=1292268867.123742,pid=1412): Leaving ~NML()
- (time=1292268867.123755,pid=1412): NML channel deleted from NML_Main_Channel_List
- (time=1292268867.123770,pid=1412): Deleting toolCmd NML channel from NML_Main_Channel_List.
- (time=1292268867.123785,pid=1412): deleting NML (4)
- (time=1292268867.123798,pid=1412): delete (CMS *) 844FE38;
- (time=1292268867.123813,pid=1412): rcs_shm_close(shm->key=1004(0x3EC),shm->size=1024(0x400),shm->addr=0xB783B000)
- (time=1292268867.123838,pid=1412): deleting CMS (toolCmd)
- (time=1292268867.123856,pid=1412): free( data = 8450750);
- (time=1292268867.123872,pid=1412): Leaving ~CMS()
- (time=1292268867.123886,pid=1412): CMS::delete(844FE38)
- (time=1292268867.123900,pid=1412): CMS::delete successful.
- (time=1292268867.123914,pid=1412): Leaving ~NML()
- (time=1292268867.123929,pid=1412): NML channel deleted from NML_Main_Channel_List
- (time=1292268867.123942,pid=1412): Deleting toolSts NML channel from NML_Main_Channel_List.
- (time=1292268867.123955,pid=1412): deleting NML (5)
- (time=1292268867.123970,pid=1412): delete (CMS *) 8450FD0;
- (time=1292268867.123985,pid=1412): rcs_shm_close(shm->key=1005(0x3ED),shm->size=4096(0x1000),shm->addr=0xB783A000)
- (time=1292268867.124008,pid=1412): deleting CMS (toolSts)
- (time=1292268867.124028,pid=1412): free( data = 84518E8);
- (time=1292268867.124042,pid=1412): Leaving ~CMS()
- (time=1292268867.124056,pid=1412): CMS::delete(8450FD0)
- (time=1292268867.124071,pid=1412): CMS::delete successful.
- (time=1292268867.124106,pid=1412): Leaving ~NML()
- (time=1292268867.124123,pid=1412): NML channel deleted from NML_Main_Channel_List
- (time=1292268867.124139,pid=1412): deleting NML (1)
- (time=1292268867.124154,pid=1412): Leaving ~NML()
- (time=1292268867.124169,pid=1412): NML::operater delete(8444008)
- (time=1292268867.124185,pid=1412): NML channel deleted from Dynamically_Allocated_NML_Objects
- (time=1292268867.124199,pid=1412): deleting NML (2)
- (time=1292268867.124212,pid=1412): Leaving ~NML()
- (time=1292268867.124227,pid=1412): NML::operater delete(8449938)
- (time=1292268867.124241,pid=1412): NML channel deleted from Dynamically_Allocated_NML_Objects
- (time=1292268867.124255,pid=1412): deleting NML (3)
- (time=1292268867.124270,pid=1412): Leaving ~NML()
- (time=1292268867.124283,pid=1412): NML::operater delete(844CED0)
- (time=1292268867.124297,pid=1412): NML channel deleted from Dynamically_Allocated_NML_Objects
- (time=1292268867.124311,pid=1412): deleting NML (4)
- (time=1292268867.124326,pid=1412): Leaving ~NML()
- (time=1292268867.124340,pid=1412): NML::operater delete(844FCB8)
- (time=1292268867.124353,pid=1412): NML channel deleted from Dynamically_Allocated_NML_Objects
- (time=1292268867.124367,pid=1412): deleting NML (5)
- (time=1292268867.124383,pid=1412): Leaving ~NML()
- (time=1292268867.124396,pid=1412): NML::operater delete(8450E50)
- (time=1292268867.124410,pid=1412): NML channel deleted from Dynamically_Allocated_NML_Objects
- PID TTY STAT TIME COMMAND
- Stopping realtime threads
- Unloading hal components
- Kernel message information:
- [ 284.454017] I-pipe: Domain RTAI registered.
- [ 284.454029] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
- [ 284.454032] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
- [ 284.454040] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
- [ 284.454042] PIPELINE layers:
- [ 284.454046] f8346e20 9ac15d93 RTAI 200
- [ 284.454049] c085cb20 0 Linux 100
- [ 284.483819] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
- [ 284.484260] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
- [ 284.484266] RTAI[sched]: hard timer type/freq = APIC/20880644(Hz); default timing: periodic; linear timed lists.
- [ 284.484271] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1921126000 hz.
- [ 284.484274] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
- [ 284.484404] RTAI[usi]: enabled.
- [ 284.586077] RTAI[math]: loaded.
- [ 284.756601] PPMC: Check Parallel Port connection.
- [ 284.756616] PPMC: Check Parallel Port connection.
- [ 284.756662] PPMC: Check Parallel Port connection.
- [ 284.756674] PPMC: Check Parallel Port connection.
- [ 284.756685] PPMC: Check Parallel Port connection.
- [ 284.756862] PPMC: Check Parallel Port connection.
- [ 284.756900] PPMC: ERROR: no boards found on bus 0, port 0378
- [ 284.756904] PPMC: shutting down
- [ 285.302953] RTAI[math]: unloaded.
- [ 285.373305] SCHED releases registered named ALIEN RTGLBH
- [ 285.388997] RTAI[malloc]: unloaded.
- [ 285.488016] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
- [ 285.493402] I-pipe: Domain RTAI unregistered.
- [ 285.493414] RTAI[hal]: unmounted.
- At this point the univstepdiags can't find the board:
- root@emc:~/tmp/univstepdiag# ./univstepdiags test bus
- io addr = 378
- parport addr 0x378
- Bus Map
- Board Addr Type Ver.
- 0 No Board ff
- 1 Unknown 9f
- 2 No Board ff
- 3 No Board ff
- 4 No Board ff
- 5 Unknown 9f
- 6 Unknown 9f
- 7 No Board ff
- 8 No Board ff
- 9 Unknown 9f
- a Unknown 9f
- b Unknown 9f
- c No Board ff
- d No Board ff
- e No Board ff
- f Unknown 9f
- The No board and Unknown vary for each board #everytime I run it. commtest is a complete failure of course.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement