oh -oh something else messed up now. Thought I would run the latency test again
before I did what you suggested and look what happened.

[EMAIL PROTECTED]:/$ sudo mkdir /dev/rtf; sudo mknod /dev/rtf/3 c 150 3;
[EMAIL PROTECTED]:/$ sudo mknod /devrtf3 c 150 3;
[EMAIL PROTECTED]:/$ cd /usr/realtime*/testsuite/kern/latency
[EMAIL PROTECTED]:/usr/realtime-2.6.15-magma/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

Error opening /dev/rtf3
[EMAIL PROTECTED]:/usr/realtime-2.6.15-magma/testsuite/kern/latency$

I'll take a look for rtf3

[EMAIL PROTECTED]:/dev$ ls -l r*
brw-rw---- 1 root disk   1,   0 2007-03-14 15:26 ram0
brw-rw---- 1 root disk   1,   1 2007-03-14 15:26 ram1
brw-rw---- 1 root disk   1,  10 2007-03-14 15:26 ram10
brw-rw---- 1 root disk   1,  11 2007-03-14 15:26 ram11
brw-rw---- 1 root disk   1,  12 2007-03-14 15:26 ram12
brw-rw---- 1 root disk   1,  13 2007-03-14 15:26 ram13
brw-rw---- 1 root disk   1,  14 2007-03-14 15:26 ram14
brw-rw---- 1 root disk   1,  15 2007-03-14 15:26 ram15
brw-rw---- 1 root disk   1,   2 2007-03-14 15:26 ram2
brw-rw---- 1 root disk   1,   3 2007-03-14 15:26 ram3
brw-rw---- 1 root disk   1,   4 2007-03-14 15:26 ram4
brw-rw---- 1 root disk   1,   5 2007-03-14 15:26 ram5
brw-rw---- 1 root disk   1,   6 2007-03-14 15:26 ram6
brw-rw---- 1 root disk   1,   7 2007-03-14 15:26 ram7
brw-rw---- 1 root disk   1,   8 2007-03-14 15:26 ram8
brw-rw---- 1 root disk   1,   9 2007-03-14 15:26 ram9
crw-rw-rw- 1 root root   1,   8 2007-03-14 15:26 random
crw-rw---- 1 root audio 10, 135 2007-03-14 15:27 rtc

rtf:
total 0
crw-r--r-- 1 root root 150, 3 2007-03-14 15:46 3
[EMAIL PROTECTED]:/dev$

Aha - not there - no wonder it didn't work

Latency test doesn't work
What do I do now?

Jack Ensor

Quoting Alex Joni <[EMAIL PROTECTED]>:

> Hi Jack,
> 
> you were pretty close :)
> 
> You need to load the modified module (sudo modprobe rtai_smi)
> and then run the latency test again.
> If that works you will need to change the /etc/emc2/rtapi.conf and add
> rtai_smi to the list of modules to load for RTAI3 (in the line with
> adeos, rtai_* & co)
> 
> Regards,
> Alex
> 
> On Tue, 2007-03-13 at 15:49 -0400, Jack Ensor wrote:
> > My PC uses an Intel motherboard running at 1.5Ghz and 256mb of ram doesn't
> like
> > EMC2 apparently because of excessive overruns.
> >  
> > Looking at http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?TroubleShooting
> > it tells me to look for:
> >  
> > ubuntu:$ ls -l /dev/rt*
> > lrwxrwxrwx  1 root root 8 2006-05-23 23:34 /dev/rtai_shm -> RTAI_SHM
> > crw-rw----  1 root audio 10, 135 2006-05-14 16:12 /dev/rtc
> > 
> > When I do I get:
> > 
> > [EMAIL PROTECTED]:~$ ls -l /dev/rt*
> > crw-rw---- 1 root audio  10, 135 2007-03-12 19:03 /dev/rtc
> > crw-r--r-- 1 root root  150,   3 2007-03-13 08:13 /dev/rtf3
> > [EMAIL PROTECTED]:~$
> > 
> > and it says I should see this:
> > 
> > fedora]$ ls -l /dev/rt*
> > crw-rw-rw-  1 root root  10, 254 Jul 18  2005 /dev/rtai_shm
> > crw-r--r--  1 root root  10, 135 Jun  4 16:21 /dev/rtc
> > crw-rw-rw-  1 root root 150,   0 Jul 18  2005 /dev/rtf0
> > crw-rw-rw-  1 root root 150,   1 Jul 18  2005 /dev/rtf1
> > crw-rw-rw-  1 root root 150,   2 Jul 18  2005 /dev/rtf2
> > crw-rw-rw-  1 root root 150,   3 Jul 18  2005 /dev/rtf3
> > crw-rw-rw-  1 root root 150,   4 Jul 18  2005 /dev/rtf4
> > crw-rw-rw-  1 root root 150,   5 Jul 18  2005 /dev/rtf5
> > crw-rw-rw-  1 root root 150,   6 Jul 18  2005 /dev/rtf6
> > crw-rw-rw-  1 root root 150,   7 Jul 18  2005 /dev/rtf7
> > crw-rw-rw-  1 root root 150,   8 Jul 18  2005 /dev/rtf8
> > crw-rw-rw-  1 root root 150,   9 Jul 18  2005 /dev/rtf9
> > 
> > If these files do not exist, you can create them, for example: sudo mknod
> > /dev/RTAI_SHM c 10, 254;
> > 
> > So I did:
> > 
> > [EMAIL PROTECTED]:~$ sudo mknod /dev/RTAI_SHM c 10, 254;
> > Password:
> > [EMAIL PROTECTED]:~$ ls -l /dev/rt*
> > crw-rw---- 1 root audio  10, 135 2007-03-12 19:03 /dev/rtc
> > crw-r--r-- 1 root root  150,   3 2007-03-13 08:13 /dev/rtf3
> >  
> > [EMAIL PROTECTED]:~$ ls -l /dev/RTAI_SHM
> > crw-r--r-- 1 root root 10, 254 2007-03-13 14:39 /dev/RTAI_SHM
> > [EMAIL PROTECTED]:~$
> > 
> > So the other files rtf0 - rtf2, and rtf4 through 9 are still missing.
> > 
> > When I run the latency test I get:
> > 
> > ## 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|       -938|       -938|       -131|       7823|       7823|         
> 0
> > RTD|       -997|       -997|       -123|       6605|       7823|         
> 0
> > RTD|       -930|       -997|       -145|       6552|       7823|         
> 0
> >  
> > <Snip
> > 
> > RTD|       -982|      -1005|       -116|       7708|     206073|         
> 5
> > RTD|       -990|      -1005|       -122|       7561|     206073|         
> 5
> > RTH|    lat min|    ovl min|    lat avg|    lat max|    ovl max|  
> overruns
> > RTD|       -982|      -1005|       -120|       7628|     206073|         
> 5
> > RTD|      -1005|      -1005|       -111|       9621|     206073|         
> 5
> > RTD|       -975|      -1005|        -16|      10413|     206073|         
> 5
> > 
> > with an overrun occuring approximately every 62 secs or so.
> > 
> > So I goto 
> > 
> > http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?FixingDapperSMIIssues
> > 
> > and they explain that I need to replace
> > /usr/realtime-2.6.15-magma/modules/rtai_smi.ko
> > 
> > with the downloaded rtai_smi.ko they offer.  (Alternative: grab the binary
> (for
> > Ubuntu 6.06-Dapper Drake only) from [[here]]).
> > 
> > So to be sure that I don't lose the current file I do:
> > 
> > sudo cp /usr/realtime-2.6.15-magma/modules/rtai_smi.ko  
> > /usr/realtime-2.6.15-magma/modules/rtai_smi1.ko
> > 
> > and then:
> > 
> > sudo cp /home/jack/Downloads/rtai_smi.ko
> > /usr/realtime-2.6.15-magma/modules/rtai_smi.ko
> > 
> > Then I run the latency test and find that nothing has changed.  So I then
> put
> > the original file back.
> > 
> > So now I am at a loss as to what my next step should be.  Any ideas short
> of
> > looking for a different motherboard?
> > 
> > Jack Ensor
> > 
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> > 
> > 
> 




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to