Short Update:

Silly me! My udev daemon wasn't running correctly. When I fixed this,
the Ethercat entry showed up in the /dev directory. And now the
ethercat tool works. Isn't it possible to run it without udev and
instead have a fixed /dev entry?
But it still doesn't do what it should do according to the PDF.
It remains in Init-state. And doesn't scan the bus topology.
Therefore a "ethercat config" doesn't output anything. And an "ethercat
graph" only lists an empty graph.
How do I get this running?

BTW a "ethercat master" outputs the following:

Master0
  Phase: Idle
  Active: no
  Slaves: 0
  Ethernet devices:
    Main: 00:18:7d:02:ad:ce (attached)
      Link: UP
      Tx frames:   305287
      Rx frames:   305286
      Lost frames: 0
      Tx bytes:    18317220
      Tx errors:   0
      Tx frame rate [1/s]:    300    300    300
      Tx rate [KByte/s]:     17.6   17.6   17.5
      Loss rate [1/s]:          0      0      0
      Frame loss [%]:         0.0    0.0    0.0

    Backup: None.
  Distributed clocks:
    Reference clock: None
    Application time: 0
                      2000-01-01 00:00:00.000000000

The strange thing is. Here it displays slaves=0, although it says upon
the module loading 3 slaves found???


B> I tried to install the ethercat drivers as in the pdf manual. I
B> encountered the following problems:

B> * First it didn't work at all. Probabely the problem was, that I
B> compiled the kernel with integrated 8139too driver. When I recompiled
B> the Kernel, but this time with the driver in module form. It worked
B> better. Is this really like that, that it only works, if the original
B> 8139too drivers are not compiled into the kernel? If yes, It should
B> really be mentioned in the PDF!

B> *Second problem. I then was able to start the "ethercat start" script
B> in init.d. But on my system, this script only loads the ec_master
B> module. I additionally have to do a "modprobe ec_8139too" to load the
B> net drivers, which then starts the master, and my connected test slave
B> (Beckhoff EK1100+EL1008+EL2008) starts to blink. And I get the message
B> that 3 slaves are found and that they are in init state. But in the
B> PDF is says, they should be in PreOp state and there should be a bus
B> scan. But this doesn't happen.
B> Also the /dev/EtherCAT0 entry doesn't show up in the /dev directory.
B> Therefore all tries to find out about the state with the ethercat tool
B> is simply aborted with the error message, that /dev/EtherCAT0 is
B> invalid.
B> I also tried the additional udev rule file, like mentioned in the PDF.
B> It didn't work. Then I tried to manually create an /dev/EtherCAT0 with mknod
B> (252,0). But it still doesn't work.

B> What could be the problem? And how can I resolve it?

B> Would be really grateful for any hint.

B>                 Thanks
B>                   Shanti

B> BTW:
B> This is the output after a "/etc/init.d/ethercat start":

B> [   10.351303] EtherCAT: Master driver devel unknown
B> [   10.353821] EtherCAT: 1 master waiting for devices.

B> And this after a "modprobe ec_8139too":

B> [   10.396659] ec_8139too EtherCAT-capable Fast Ethernet driver 0.9.28, 
master devel unknown
B> [   10.402873] EtherCAT: Accepting device 00:18:7D:02:AD:CE for master 0.
B> [   10.408646] ec0: RealTek RTL8139 at 0xf600, 00:18:7d:02:ad:ce, IRQ 5
B> [   10.411143] ec0:  Identified 8139 chip type 'RTL-8100B/8139D'
B> [   10.411224] EtherCAT 0: Link state changed to UP.
B> [   10.413647] EtherCAT 0: Starting EtherCAT-IDLE thread.
B> [   10.421289] eth0: RealTek RTL8139 at 0xf800, 00:18:7d:02:ad:cd, IRQ 10
B> [   10.423397] EtherCAT 0: 3 slave(s) responding.
B> [   10.428669] EtherCAT 0: Slave states: INIT.
B> [   10.430463] eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
B> [   10.443372] eth0: link down

B> And this is the error message I get, when I try to use the ethercat
B> tool e.g. "ethercat config":

B> Failed to obtain number of masters: Failed to open master device 
/dev/EtherCAT0: Invalid argument


B> I got a 2.6.29.4 vanilla linux with rtai 3.7.1.
B> I downloaded the newest etherlab sources for compile.


  

B> --------------------------------------------------- 
B> Nothing is as serious as it seems,
B> so keep smiling ;-)
B>                           mailto:bign...@bluewin.ch

B> _______________________________________________
B> etherlab-users mailing list
B> etherlab-users@etherlab.org
B> http://lists.etherlab.org/mailman/listinfo/etherlab-users

_______________________________________________
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to