Re: EMC startup error (revisited)
Hi Niyom
Got time to recompile EMC on my RH7.1 box today - Attempting to start the system running, I realize what you are missing from your log..
No realtime modules are being loaded - In the /usr/src/rtlinux-3.1directory, do a 'make install' then try running EMC again.
Be warned though - You will be swamped by a ton of errors and it still won't work. Just a small sample from emc.run
[root-at-Talia emc]# ./generic.run
/usr/local/NIST7/emc
Current platform is linux_2_4_4
Current real-time platform is rtlinux_3_1
inivar = plat/linux_2_4_4/bin/inivar
INIFILE = emc.ini
RS274NGC_PARAMFILE = emc.var
starting emc...
Removing module steppermod
rmmod: module steppermod is not loaded
/sbin/insmod -f /lib/modules/2.4.4-rtl3.1/misc/rtl.o
/sbin/insmod -f /lib/modules/2.4.4-rtl3.1/misc/mbuff.o
/sbin/insmod -f /lib/modules/2.4.4-rtl3.1/misc/rtl_time.o
/sbin/insmod -f /lib/modules/2.4.4-rtl3.1/misc/rtl_sched.o
/sbin/insmod -f /lib/modules/2.4.4-rtl3.1/misc/rtl_posixio.o
/sbin/insmod -f /lib/modules/2.4.4-rtl3.1/misc/rtl_fifo.o
starting EMC MOTION PROGRAM -- steppermod.o...Warning: plat/rtlinux_3_1/lib/steppermod.o symbol for parameter STG_BASE_ADDRESS not found
done
starting EMC IO PROGRAM -- bridgeportio...Version: 1.5
Machine: Generic
shmem.cc 496: Shared memory buffers emcError and may conflict. (key=1003(0x3EB))
shmem.cc 496: Shared memory buffers toolCmd and may conflict. (key=1004(0x3EC))
shmem.cc 496: Shared memory buffers toolSts and may conflict. (key=1005(0x3ED))
shmem.cc 496: Shared memory buffers spindleSts and may conflict. (key=1007(0x3EF))
shmem.cc 496: Shared memory buffers spindleCmd and may conflict. (key=1006(0x3EE))
shmem.cc 496: Shared memory buffers coolantSts and may conflict. (key=1009(0x3F1))
shmem.cc 496: Shared memory buffers coolantCmd and may conflict. (key=1008(0x3F0))
shmem.cc 496: Shared memory buffers auxSts and may conflict. (key=1011(0x3F3))
shmem.cc 496: Shared memory buffers auxCmd and may conflict. (key=1010(0x3F2))
shmem.cc 496: Shared memory buffers lubeSts and may conflict. (key=1013(0x3F5))
shmem.cc 496: Shared memory buffers lubeCmd and may conflict. (key=1012(0x3F4))
done
starting EMC TASK PROGRAM -- bridgeporttask...Version: 1.5
After pages of diagnostics and errors ending with:
unix_sem.c 598: sem_wait: ERROR: Invalid argument 22
shmem.cc 709: SHMEM: Can't take semaphore
Can not read input command. (5)
unix_sem.c 450: semop(semid=819201, {sem_num=0,sem_op=-1,sem_flg=0},nsops=1): ERROR: Invalid argument 22
unix_sem.c 598: sem_wait: ERROR: Invalid argument 22
shmem.cc 709: SHMEM: Can't take semaphore
Can not read input command. (5)
Maximum number of errors to print exceeded!
No such file or directory
Removing module steppermod
emc.ini was not changed.
emc.var was not changed.
Removing shared memory 1409035
resource(s) deleted
<SNIPPED>
Removing kernel module rtl_fifo
Removing kernel module rtl_posixio
Removing kernel module rtl_sched
Removing kernel module rtl_time
Removing kernel module mbuff
Removing kernel module rtl
[root-at-Talia emc]#
IF you intend to use a RedHat 7.x platform, you are very much on the bleeding edge of development.
Would you consider rtai rather than rtlinux ?
If, on the other hand, you want a system that works and is *stable*, use RedHat 6.x along with a virgin 2.2.18 kernel and rtlinux-3.0.
Regards, Paul.
On Tuesday 02 October 2001 6:33 am, Niyom Racharin wrote:
> Hello All,
> I am a new EMC user. I have a custom made 60 x 120cm cnc xyz table and want
> to use EMC to control its and got the following error during startup.
> ==========>
> [cnc-at-localhost emc]$ ./emc.run
> /usr/local/nist/emc
> Current platform is linux_2_4_4
> Current real-time platform is rtlinux_3_1
> inivar = plat/linux_2_4_4/bin/inivar
> INIFILE = emc.ini
> RS274NGC_PARAMFILE = emc.var
> starting emc...
> Removing module steppermod
> steppermod: Operation not permitted
> starting EMC MOTION PROGRAM --
> steppermod.o...plat/rtlinux_3_1/lib/steppermod.o: unresolved symbol
> shm_allocate
> plat/rtlinux_3_1/lib/steppermod.o: unresolved symbol pthread_setfp_np
> plat/rtlinux_3_1/lib/steppermod.o: unresolved symbol gethrtime
> plat/rtlinux_3_1/lib/steppermod.o: unresolved symbol rtl_sched
> plat/rtlinux_3_1/lib/steppermod.o: unresolved symbol shm_deallocate
> plat/rtlinux_3_1/lib/steppermod.o: unresolved symbol rtl_setclockmode
> plat/rtlinux_3_1/lib/steppermod.o: unresolved symbol pthread_delete_np
> plat/rtlinux_3_1/lib/steppermod.o: unresolved symbol
> pthread_make_periodic_np
> plat/rtlinux_3_1/lib/steppermod.o: unresolved symbol pthread_wait_np
> plat/rtlinux_3_1/lib/steppermod.o: unresolved symbol __pthread_create
> can't install it
> Removing module steppermod
> steppermod: Operation not permitted
> emc.ini was not changed.
> emc.var was not changed.
> <================
> Additional information
> - RedHat 7.1
> - Linux kernel 2.4.4 and rtlinux-3.1
> - Use emc8-3src.aaa and emc8-3src.aab as a source code
> - Use kgcc to compile the kernel
> - Use egcs to compile the EMC and no error or warning shown.
> - All files and directories under /usr/local/nist are belong to owner and
> group of cnc:cnc
> and I run its as a cnc user.
> Would you please try to advise me to solve the problem and my system up and
> running.
> Regards.
> Niyom Racharin
> email niyom-at-ubt.co.th <niyom-at-ubt.co.th>
> r_niyom-at-yahoo.com <r_niyom-at-yahoo.com>
Date Index |
Thread Index |
Back to archive index |
Back to Mailing List Page
Problems or questions? Contact