[etherlab-users] Slaves not found. Generic driver Ubuntu 11.04 64bit 2.6.38

Andre Gaschler gaschler at fortiss.org
Tue Oct 11 14:35:58 CEST 2011



Hi all,

I am working with latest Ubuntu Natty 11.04 64bit 2.6.38-11-generic kernel
and the generic driver built from the latest mecurial sources.

Four slaves are connected to the bus, which I have verified temporarily plugging in a different machine with ethercat running.

I built ethercat with

./configure --enable-generic --enable-cycles --disable-8139too

Just as a side note, I had to create a symlink in the kernel images to
make it compile
cd /lib/modules/$(uname -r)/build/include
sudo ln -s $(gcc -print-file-name=include)/stdarg.h
Seems like this is a general Ubuntu issue, see https://bugs.launchpad.net/ubuntu/+bug/830550/comments/1
Then, everything built fine.

sudo ethercat master   
now gives me
Master0
  Phase: Idle
  Active: no
  Slaves: 0
  Ethernet devices:
    Main: bc:30:5b:de:2d:07 (attached)
      Link: UP
      Tx frames:   1858
      Rx frames:   1857
      Lost frames: 0
      Tx bytes:    111480
      Tx errors:   0
      Tx frame rate [1/s]:    100     85     26
      Tx rate [KByte/s]:      5.9    5.0    1.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


Unfortunately, sudo ethercat slaves   does not show anything (there are definitely four connected to the bus).


However, log messages indicate that there is some kind of connection at
least.
dmesg | tail
[18508.614344] EtherCAT: 1 master waiting for devices.
[18508.616967] ec_generic: EtherCAT master generic Ethernet device module devel afb40fd6018e
[18508.616975] EtherCAT: Accepting device BC:30:5B:DE:2D:07 for master 0.
[18508.616981] ec_generic: Binding socket to interface 2 (eth0).
[18508.664917] EtherCAT 0: Starting EtherCAT-IDLE thread.
[18555.646315] tg3 0000:05:00.0: eth0: Link is up at 100 Mbps, full duplex
[18555.646318] tg3 0000:05:00.0: eth0: Flow control is off for TX and off for RX
[18555.648596] EtherCAT 0: Link state changed to UP.
[18555.658577] EtherCAT 0: 4 slave(s) responding.
[18555.658581] EtherCAT 0: Slave states: INIT.


Just for your information, here is also ifconfig (the ethercat cable is
attached and configured to the eth0 card)
 ifconfig
eth0      Link encap:Ethernet  HWaddr bc:30:5b:de:2d:07  
          inet6 addr: fe80::be30:5bff:fede:2d07/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:75446 errors:42 dropped:0 overruns:0 frame:0
          TX packets:75492 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4828544 (4.8 MB)  TX bytes:4838673 (4.8 MB)
          Interrupt:17 

eth1      Link encap:Ethernet  HWaddr 00:1b:21:a2:29:ca  
          inet addr:192.168.17.157  Bcast:192.168.17.255  Mask:255.255.254.0
          inet6 addr: fe80::21b:21ff:fea2:29ca/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:146992 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34851 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:65508600 (65.5 MB)  TX bytes:4651450 (4.6 MB)

eth0:avahi Link encap:Ethernet  HWaddr bc:30:5b:de:2d:07  
          inet addr:169.254.5.88  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:17 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:31 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2150 (2.1 KB)  TX bytes:2150 (2.1 KB)




Note I have also tested configuring the other network card in the same machine, with the same result.

I believe the bus scanning is for some reason not working.
Your help is greatly appreciated.


Best regards,

Andre


-- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20111011/5356c853/attachment-0002.htm>


More information about the Etherlab-users mailing list