Re: [Emc-users] Problem on EMC2 starting with rtai_hall.ko

2008-10-04 Thread paul_c

Hi Evgeny

On Thursday 25 September 2008, Евгений Александрович wrote:
  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?

It is impossible to compile rtai_hal in to the kernel - The Makefile 
associated with rtai_hal explicitly states rtai_hal.ko will be compiled as a 
module.

 # 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

There is the most likely root cause of your system not cleaning up after 
running emc2.

 BusyBox v1.6.1 (2007-08-26 04:52:27 MDT) multi-call binary

BusyBox has not been tested or validated with the emc2 run scripts. It is 
quite possible that more scripting errors are waiting to bite if you are not 
using a bash shell.

Question: Are you loading the RTAI modules from an init script during boot 
up ?



-
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=100url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem on EMC2 starting with rtai_hall.ko

2008-10-04 Thread Jim Coleman
your base period and those timings need adjusted to a higher number, the
computer isnt able to keep up with the speeds the configs are trying to
run.  these are in the stepper_mm.ini file.

this talks about using the latency test to set the timings.
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?TweakingSoftwareStepGeneration

2008/9/25 Евгений Александрович [EMAIL PROTECTED]

 Hello,

 I have more information.

 I installed linuxemc2 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_storage84160  0
  usbcore   138220  1 usb_storage
  ide_cd 39584  0
  cdrom  36384  1 ide_cd
  evdev  11648  0
  hal_lib36376  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_sched102360  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_pcm76936  1 snd_hda_intel
  snd_timer  22788  1 snd_pcm
  snd51940  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
  apm20432  0
  nls_utf82048  0
  nls_cp866   5248  0
 
  # cd /usr/realtime/testsuite/kern/latency/
  # ./run
  *
  *
  * Type ^C to stop this application.
  *
  *
 
  ## RTAI latency calibration tool ##
  # period = 10 (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

Re: [Emc-users] Problem on EMC2 starting with rtai_hall.ko

2008-09-28 Thread Евгений Александрович
 your base period and those timings need adjusted to a higher number, the
 computer isnt able to keep up with the speeds the configs are trying to
 run.  these are in the stepper_mm.ini file.
 
 this talks about using the latency test to set the timings.
 http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?TweakingSoftwareStepGeneration

I do not think so, 
I tested it on phisical machine with Intel Core2Due 2,66. It is very fast 
computer.

Another information.
If I build RT linux, reboot, build libraries and emc and start emc without 
rebooting, then first start works properly.
On second and other start I have rtai_hal.ko problem or adress in use

I have not more ideas.

Only one idea.
Maybe prblem is then puppy linux has only Root user ...

Evgeny
P.S.
Thank you for you help


 
 2008/9/25 Евгений Александрович [EMAIL PROTECTED]
 
  Hello,
 
  I have more information.
 
  I installed linuxemc2 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_storage84160  0
   usbcore   138220  1 usb_storage
   ide_cd 39584  0
   cdrom  36384  1 ide_cd
   evdev  11648  0
   hal_lib36376  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_sched102360  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_pcm76936  1 snd_hda_intel
   snd_timer  22788  1 snd_pcm
   snd51940  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
   apm20432  0
   nls_utf82048  0
   nls_cp866   5248  0
  
   # cd /usr/realtime/testsuite/kern/latency/
   # ./run
   *
   *
   * Type ^C to stop this application.
   *
   *
  
   ## RTAI latency calibration tool ##
   # period = 10 (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

Re: [Emc-users] Problem on EMC2 starting with rtai_hall.ko

2008-09-25 Thread Евгений Александрович

 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_storage84160  0 
usbcore   138220  1 usb_storage
ide_cd 39584  0 
cdrom  36384  1 ide_cd
evdev  11648  0 
hal_lib36376  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_sched102360  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_pcm76936  1 snd_hda_intel
snd_timer  22788  1 snd_pcm
snd51940  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
apm20432  0 
nls_utf82048  0 
nls_cp866   5248  0

# cd /usr/realtime/testsuite/kern/latency/
# ./run
*
*
* Type ^C to stop this application.
*
*

## RTAI latency calibration tool ##
# period = 10 (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_storage84160  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_pcm76936  1 snd_hda_intel
snd_timer  22788  1 snd_pcm
snd51940  4 

Re: [Emc-users] Problem on EMC2 starting with rtai_hall.ko

2008-09-25 Thread Евгений Александрович
Hello,

I have more information.

I installed linuxemc2 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_storage84160  0 
 usbcore   138220  1 usb_storage
 ide_cd 39584  0 
 cdrom  36384  1 ide_cd
 evdev  11648  0 
 hal_lib36376  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_sched102360  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_pcm76936  1 snd_hda_intel
 snd_timer  22788  1 snd_pcm
 snd51940  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
 apm20432  0 
 nls_utf82048  0 
 nls_cp866   5248  0
 
 # cd /usr/realtime/testsuite/kern/latency/
 # ./run
 *
 *
 * Type ^C to stop this application.
 *
 *
 
 ## RTAI latency calibration tool ##
 # period = 10 (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

[Emc-users] Problem on EMC2 starting with rtai_hall.ko

2008-09-24 Thread Евгений Александрович
Hello.

I build emc2 based on PuppyRus linux.
linux was patched by kernel is 2.6.24.7
rtai test was succesfull.

Whan i make EMC2 i had problem with ipipe.h file.
I had to insert #include linux/percpu.h in ipipe.h file to build EMC2.

Now, when I try to start EMC i have problem with rtai_hal.ko file

insmod: error inserting 'usr/realtime/modules/rtai_hal.ko': -1 File exists

What could be a problem?

Thanks
Evgeny

P.S.
I user VMWare machine under WinXP

-
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=100url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem on EMC2 starting with rtai_hall.ko

2008-09-24 Thread Dirk


 I user VMWare machine under WinXP


I don't think a realtime OS will work in a virtual machine. I have the same
problem with EMC2 in parallels on the mac. The sim machines do work though.
You don't consider real machining this way, do you?

Dirk
-
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=100url=/___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem on EMC2 starting with rtai_hall.ko

2008-09-24 Thread Alex Joni
Hi

 Hello.

 I build emc2 based on PuppyRus linux.
 linux was patched by kernel is 2.6.24.7
 rtai test was succesfull.

 Whan i make EMC2 i had problem with ipipe.h file.
 I had to insert #include linux/percpu.h in ipipe.h file to build EMC2.

 Now, when I try to start EMC i have problem with rtai_hal.ko file

 insmod: error inserting 'usr/realtime/modules/rtai_hal.ko': -1 File exists

sounds like rtai is already loaded. Either you compiled it into the kernel, 
not as a module.
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.

 What could be a problem?

 Thanks
 Evgeny

 P.S.
 I user VMWare machine under WinXP

I do that too sometimes without problems. (I don't expect to run any real 
machine this way..)


-
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=100url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem on EMC2 starting with rtai_hall.ko

2008-09-24 Thread Karl Schmidt
 I don't think a realtime OS will work in a virtual machine. I have the same
 problem with EMC2 in parallels on the mac. The sim machines do work though.
 You don't consider real machining this way, do you?

 Dirk
 
 By the way I prepare EMC2 for small computer (No cooler, no HDD, small size).
 I try to make distrib on VMWare, before installing on real computer. 
 
Евгений Александрович wrote:
  I do not think then VMWare is a problem.
  Linux does not know than VMWare is not real machine.
  May be only unstable CPU resource ...

I think Dirk has it correct. Even if it would work - VM will be pulling 
interrupts in background and 
the whole reason of using a realtime kernel is to prevent interrupts.

If the machine was fast enough and the demand was low enough, it is possible 
you could get away with 
it, but for safety and sanity it pays to keep the computer controlling 
movements as simple and 
unencumbered as possible.


Karl Schmidt EMail [EMAIL PROTECTED]
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th StreetPh (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-0434

Biographies are but the clothes and buttons of the man.
The biography of the man himself cannot be written. -- Mark Twain



-
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=100url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users