Hello,

I have more information.

I installed linux&emc2 on real machine.

I have same result :(

But if I try to start emc second time withour reboot system starts, but with 
errors. (Both on VM and RM)
It is log of second start.

# emc
EMC2 - 2.2.5
Machine configuration directory is '/usr/local/etc/emc2/sample-configs/stepper'
Machine configuration file is 'stepper_mm.ini'
Starting EMC2...
libnml/cms/tcp_srv.cc 278: bind error: 98 -- Address already in use
libnml/cms/tcp_srv.cc 279: Server can not bind the connection socket on port 
5005.
libnml/rcs/rcs_exit.cc 99: 
 Errors Reported!!!
 Press ^C to exit.
RTAPI: ERROR: Unexpected realtime delay on task 1

I can start program, but this way I get messagebox "Unexpected realtime delay 
on task 1" several times.

Any ideas?


-----Original Message-----
From: Евгений Александрович<[EMAIL PROTECTED]>
To: Enhanced Machine Controller \(EMC\)<emc-users@lists.sourceforge.net>
Date: Thu, 25 Sep 2008 13:19:07 +0400
Subject: Re: [Emc-users]Problem on EMC2 starting with rtai_hall.ko

> 
> 
> > sounds like rtai is already loaded. Either you compiled it into the kernel, 
> > not as a module.
> What do you mean. Did I somesing worng in kernel?
> 
> > Or you had a latency test still running, or the last time you had realtime 
> > run there was some problem during unload.
> > A lsmod should tell you more, and a reboot will probably cure it.
> Reboot is not solution. I tried it many times.
> At bottom is my log after reboot
> 
> > > I user VMWare machine under WinXP
> > 
> > I do that too sometimes without problems. (I don't expect to run any real 
> > machine this way..)
> 
> Any way I will try to install on real machine. 
> 
> ------------------------ EMC DEBUG FILE
> Stopping realtime threads
> Unloading hal components
> 
> ------------------------ EMC PRINT FILE
> RUN_IN_PLACE=no
> EMC2_DIR=
> EMC2_BIN_DIR=/usr/local/bin
> EMC2_TCL_DIR=/usr/local/share/emc/tcl
> EMC2_SCRIPT_DIR=
> EMC2_RTLIB_DIR=/usr/realtime/modules/emc2
> EMC2_CONFIG_DIR=
> EMC2_LANG_DIR=/usr/local/share/emc/tcl/msgs
> INIVAR=/usr/local/bin/inivar
> HALCMD=/usr/local/bin/halcmd
> EMC2_EMCSH=/usr/local/bin/emcsh
> EMC2_IOSH=/usr/local/bin/iosh
> INIFILE=/usr/local/etc/emc2/sample-configs/stepper/stepper_mm.ini
> PARAMETER_FILE=stepper.var
> EMCMOT=motmod
> EMCIO=io
> TASK=milltask
> HALUI=
> DISPLAY=axis
> NML_FILE=emc.nml
> Starting EMC2 server program: emcsvr
> Loading Real Time OS, RTAPI, and HAL_LIB modules
> Removing HAL_LIB, RTAPI, and Real Time OS modules
> Removing NML shared memory segments
> 
> ------------------------ CONSOLE LOG
> # lsmod
> Module                  Size  Used by
> usb_storage            84160  0 
> usbcore               138220  1 usb_storage
> ide_cd                 39584  0 
> cdrom                  36384  1 ide_cd
> evdev                  11648  0 
> hal_lib                36376  0 
> rtapi                  35796  1 hal_lib
> rtai_math              27140  0 
> rtai_sem               23552  1 rtapi
> rtai_shm               12164  1 rtapi
> rtai_fifos             29640  1 rtapi
> rtai_sched            102360  4 rtapi,rtai_sem,rtai_shm,rtai_fifos
> rtai_hal               39868  5 rtapi,rtai_sem,rtai_shm,rtai_fifos,rtai_sched
> snd_mixer_oss          16384  0 
> snd_hda_intel         283548  0 
> snd_pcm                76936  1 snd_hda_intel
> snd_timer              22788  1 snd_pcm
> snd                    51940  4 snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer
> soundcore               7392  1 snd
> snd_page_alloc         10376  2 snd_hda_intel,snd_pcm
> apm                    20432  0 
> nls_utf8                2048  0 
> nls_cp866               5248  0
> 
> # cd /usr/realtime/testsuite/kern/latency/
> # ./run
> *
> *
> * Type ^C to stop this application.
> *
> *
> 
> ## RTAI latency calibration tool ##
> # period = 100000 (ns) 
> # avrgtime = 1 (s)
> # do not use the FPU
> # start the timer
> # timer_mode is oneshot
> 
> RTAI Testsuite - KERNEL latency (all data in nanoseconds)
> RTH|    lat min|    ovl min|    lat avg|    lat max|    ovl max|   overruns
> RTD|          0|          0|      91538|    2443889|    2443889|       8498
> RTD|          0|          0|      92556|    1709717|    2443889|      17202
> RTD|       -838|       -838|      92385|    1765031|    2443889|      25888
> RTD|          0|       -838|      91617|    1727317|    2443889|      34456
> RTD|          0|       -838|      92610|    1759165|    2443889|      43157
> RTD|          0|       -838|      92409|    1664460|    2443889|      51832
> RTD|          0|       -838|      92498|    1939355|    2443889|      60543
> RTD|       -838|       -838|      92428|    1800231|    2443889|      69232
> RTD|          0|       -838|      92472|    1746593|    2443889|      77919
> RTD|          0|       -838|      92395|    1602441|    2443889|      86600
> RTD|          0|       -838|      92477|    1699660|    2443889|      95291
> RTD|       -838|       -838|      91476|    1822860|    2443889|     103798
> RTD|       -838|       -838|      91476|    1822860|    2443889|     103798
> # 
> 
> # emc
> EMC2 - 2.2.5
> Machine configuration directory is 
> '/usr/local/etc/emc2/sample-configs/stepper'
> Machine configuration file is 'stepper_mm.ini'
> Starting EMC2...
> insmod: error inserting '/usr/realtime/modules/rtai_hal.ko': -1 File exists
> Realtime system did not load
> Shutting down and cleaning up EMC2...
> /bin/pidof: illegal option -- x
> BusyBox v1.6.1 (2007-08-26 04:52:27 MDT) multi-call binary
> 
> Usage: pidof process-name [OPTION] [process-name ...]
> 
> List the PIDs of all processes with names that match the
> names on the command line
> Options:
>         -s      Display only a single PID
>         -o      Omit given pid
>                 Use %PPID to omit the parent pid of pidof itself
> 
> ////// pidof was repeated several times.
> 
> 
> # lsmod
> Module                  Size  Used by
> usb_storage            84160  0 
> usbcore               138220  1 usb_storage
> ide_cd                 39584  0 
> cdrom                  36384  1 ide_cd
> evdev                  11648  0 
> snd_mixer_oss          16384  0 
> snd_hda_intel         283548  0 
> snd_pcm                76936  1 snd_hda_intel
> snd_timer              22788  1 snd_pcm
> snd                    51940  4 snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer
> soundcore               7392  1 snd
> snd_page_alloc         10376  2 snd_hda_intel,snd_pcm
> apm                    20432  0 
> nls_utf8                2048  0 
> nls_cp866               5248  0 
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to