<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello Patrick,<br>
<br>
First question, why do you use this outdated preempt rt kernel.<br>
You can use 2.33.11-rt30, runs very nice.<br>
<br>
I also had trouble using the generic driver under debian 6.0 (native
kernel) with a 8139too card. The card was not sending. May be it is
same problem.<br>
<br>
Can you access any slave on the problematic host? <br>
<br>
You use a fielbus coupler from wago like Beckhoff BKXXXX. That are
complex slaves. <br>
<br>
Best Regards<br>
<br>
Andreas <br>
<br>
Am 28.02.2011 16:24, schrieb Patrick Brunner:
<blockquote cite="mid:4D6BCC4D0200008B000038D9@syslogic.ch" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19019">
<div>Dear all</div>
<div> </div>
<div>Trying to set up an EtherCAT master on two different industrial
PCs (see details below), I'm facing the problem, that the slave's SII
can't be read on one system, while the other is just working fine
(proper initialisation and I/O transfer running).</div>
<div> </div>
<div>Apart from the underlying IPC, the setup is identical:</div>
<div> </div>
<div>- (only) bus slave: Wago buscoupler (750-354) with some digital
output modules</div>
<div>- EtherCAT master module: ec_generic (--enable-cycles
--enable-hrtimer)</div>
<div>- EtherCAT master version: latest snapshot</div>
<div>- OS: Debian 6.0</div>
<div>- Linux kernel: 2.6.31.12-rt21 (PREEMPT RT) and 2.6.37.1
(PREEMPT) -> same problem on both versions</div>
<div> </div>
<div>Switching from one system to the other, only the disk and
network cable are swapped, and the controller's MAC address updated
accordingly in the configuration file.</div>
<div> </div>
<div>IPC #1: (problematic) Intel Atom, 2x Intel 82574IT gigabit
ethernet controller (kernel module: e1000e)</div>
<div>IPC #2: (working) AMD GeodeLX, 2x Davicom DM9102 ethernet
controller (kernel module: dmfe, v1.36.4)</div>
<div> </div>
<div>As the only difference between the two boards (from a software
point of view) is the ethernet controller, I'm suspecting a problem in
interfacing between the ec_generic module and the NIC's driver module.
Would that be possible at all?</div>
<div> </div>
<div>The output of dmesg, ethercat master -v and slaves -v from the
problematic system is attached below.</div>
<div> </div>
<div>Anybody an idea what could be wrong? Any help is highly
appreciated!</div>
<div> </div>
<div>Best regards,</div>
<div> </div>
<div>Patrick</div>
<div> </div>
<div>Output ethercat master -v</div>
<div>=================</div>
<div> </div>
<div>Master0<br>
Phase: Idle<br>
Active: no<br>
Slaves: 1<br>
Ethernet devices:<br>
Main: 00:a0:10:00:96:3e (attached)<br>
Link: UP<br>
Tx frames: 192517<br>
Rx frames: 192516<br>
Lost frames: 0<br>
Tx bytes: 11551020<br>
Tx errors: 0<br>
Tx frame rate [1/s]: 933 935 907<br>
Tx rate [KByte/s]: 54.7 54.8 53.1<br>
Loss rate [1/s]: 0 0 0<br>
Frame loss [%]: 0.0 0.0 0.0</div>
<div> </div>
<div> Backup: None.<br>
Distributed clocks:<br>
Reference clock: Slave 0<br>
Application time: 0<br>
2000-01-01 00:00:00.000000000<br>
</div>
<div>
<div>Output ethercat slaves -v</div>
<div>================</div>
<div> </div>
<div>=== Master 0, Slave 0 ===<br>
State: INIT<br>
Flag: E<br>
Identity:<br>
Vendor Id: 0x00000000<br>
Product code: 0x00000000<br>
Revision number: 0x00000000<br>
Serial number: 0x00000000<br>
DL information:<br>
FMMU bit operation: no<br>
Distributed clocks: yes, 64 bit<br>
DC system time transmission delay: 0 ns<br>
Port Type Link Loop Signal NextSlave RxTime [ns] Diff [ns]
NextDc [ns]<br>
0 MII up open yes - 928938138
0 0<br>
1 MII down closed no - -
- -<br>
2 N/A down closed no - -
- -<br>
3 N/A down closed no - -
- -<br>
</div>
<div>Output dmesg</div>
</div>
<div>=========</div>
<div> </div>
<div>[ 0.000000] Initializing cgroup subsys cpu<br>
[ 0.000000] Linux version 2.6.31.12-rt21-486-usb (<a
moz-do-not-send="true" href="mailto:root@debian">root@debian</a>) (gcc
version 4.3.2 (Debian 4.3.2-1.1) ) #7 PREEMPT RT Fri Feb 25 13:55:32
CET 2011<br>
.... parts skipped<br>
[ 0.000000] Kernel command line:
BOOT_IMAGE=/boot/vmlinuz-2.6.31.12-rt21-486-usb
root=UUID=09ba4145-2180-492b-a056-7dd86c7ef3b5 ro quiet<br>
.... parts skipped</div>
<div>[ 0.000000] Real-Time Preemption Support (C) 2004-2007 Ingo
Molnar<br>
[ 0.000000] Preemptible RCU implementation.<br>
[ 0.000000] NR_IRQS:288<br>
[ 0.000000] Extended CMOS year: 2000<br>
[ 0.000000] Fast TSC calibration using PIT<br>
[ 0.000000] Detected 1595.880 MHz processor.<br>
[ 0.000999] Console: colour VGA+ 80x25<br>
[ 0.000999] console [tty0] enabled<br>
[ 0.000999] hpet clockevent registered<br>
[ 0.000999] HPET: 3 timers in total, 0 timers will be used for
per-cpu timer<br>
[ 0.000999] Calibrating delay loop (skipped), value calculated using
timer frequency.. 3191.76 BogoMIPS (lpj=1595880)<br>
.... parts skipped</div>
<div>[ 0.000999] CPU: Intel(R) Atom(TM) CPU Z530 @ 1.60GHz
stepping 02<br>
.... parts skipped</div>
<div>[ 7.939023] e1000e: Intel(R) PRO/1000 Network Driver -
1.0.2-k2<br>
[ 7.939031] e1000e: Copyright (c) 1999-2008 Intel Corporation.<br>
[ 7.939118] e1000e 0000:01:00.0: PCI INT A -> GSI 16 (level, low)
-> IRQ 16<br>
[ 7.939163] e1000e 0000:01:00.0: setting latency timer to 64<br>
[ 7.939335] 0000:01:00.0: 0000:01:00.0: Failed to initialize MSI-X
interrupts. Falling back to MSI interrupts.<br>
[ 7.939498] e1000e 0000:01:00.0: irq 24 for MSI/MSI-X<br>
[ 8.011046] Uniform Multi-Platform E-IDE driver<br>
[ 8.038179] usbcore: registered new interface driver usbfs<br>
[ 8.038230] usbcore: registered new interface driver hub<br>
[ 8.046165] 0000:01:00.0: eth0: (PCI Express:2.5GB/s:Width x1)
00:a0:10:00:96:3e<br>
[ 8.046173] 0000:01:00.0: eth0: Intel(R) PRO/1000 Network Connection<br>
[ 8.046264] 0000:01:00.0: eth0: MAC: 3, PHY: 8, PBA No: ffffff-0ff<br>
[ 8.046324] e1000e 0000:02:00.0: PCI INT A -> GSI 17 (level, low)
-> IRQ 17<br>
[ 8.046367] e1000e 0000:02:00.0: setting latency timer to 64<br>
[ 8.046545] 0000:02:00.0: 0000:02:00.0: Failed to initialize MSI-X
interrupts. Falling back to MSI interrupts.<br>
[ 8.046708] e1000e 0000:02:00.0: irq 25 for MSI/MSI-X<br>
.... parts skipped</div>
<div>[ 8.141879] 0000:02:00.0: eth1: (PCI Express:2.5GB/s:Width
x1) 00:a0:10:00:96:3d<br>
[ 8.141887] 0000:02:00.0: eth1: Intel(R) PRO/1000 Network Connection<br>
[ 8.141979] 0000:02:00.0: eth1: MAC: 3, PHY: 8, PBA No: ffffff-0ff<br>
.... parts skipped</div>
<div>[ 11.505563] e1000e 0000:01:00.0: irq 24 for MSI/MSI-X<br>
[ 11.560337] e1000e 0000:01:00.0: irq 24 for MSI/MSI-X<br>
[ 11.561155] ADDRCONF(NETDEV_UP): eth0: link is not ready<br>
[ 13.155482] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow
Control: None<br>
[ 13.155490] 0000:01:00.0: eth0: 10/100 speed: disabling TSO<br>
[ 13.155919] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready<br>
[ 23.322083] eth0: no IPv6 routers present<br>
[ 52.606983] EtherCAT: Master driver devel unknown<br>
[ 52.608788] EtherCAT: 1 master waiting for devices.<br>
[ 52.647171] ec_generic: EtherCAT master generic Ethernet device
module devel unknown<br>
[ 52.647191] EtherCAT: Accepting device 00:A0:10:00:96:3E for master
0.<br>
[ 52.647213] ec_generic: Binding socket to interface 2 (eth0).<br>
[ 52.656062] EtherCAT 0: Starting EtherCAT-IDLE thread.<br>
[ 52.656148] EtherCAT 0: Link state changed to UP.<br>
[ 52.657230] EtherCAT 0: 1 slave(s) responding.<br>
[ 52.657238] EtherCAT 0: Slave states: INIT.<br>
[ 52.658208] EtherCAT WARNING 0: 1 datagram TIMED OUT!<br>
[ 52.658676] EtherCAT 0: Scanning bus.<br>
[ 52.665683] EtherCAT ERROR 0-0: Reception of SII read datagram
failed: No response.<br>
[ 52.665932] EtherCAT ERROR 0-0: Failed to determine SII content
size: Reading word offset 0x0040 failed. Assuming 64 words.<br>
[ 52.668673] EtherCAT ERROR 0-0: Reception of SII read datagram
failed: No response.<br>
[ 52.668922] EtherCAT ERROR 0-0: Failed to fetch SII contents.<br>
[ 52.669216] EtherCAT 0: Bus scanning completed in 12 ms.<br>
</div>
<div> </div>
<div> </div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
etherlab-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.etherlab.org/mailman/listinfo/etherlab-users">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">Mit freundlichem Gruß
Andreas Stewering-Bone
--
------------------------------------------------------------------------
Dipl.-Ing.(FH) Andreas Stewering-Bone
<a class="moz-txt-link-abbreviated" href="mailto:andreas.stewering-bone@igh-essen.com">andreas.stewering-bone@igh-essen.com</a>
Tel.: +49 201 / 36014-15
Ingenieurgemeinschaft IgH
Gesellschaft für Ingenieurleistungen mbH
Heinz-Bäcker-Str. 34
D-45356 Essen
Amtsgericht Essen HRB 11500
USt-Id.-Nr.: DE 174 626 722
Geschäftsführung:
- Dr.-Ing. S. Rotthäuser,
- Dr.-Ing. T. Finke,
- Dr.-Ing. W. Hagemeister
Tel.: +49 201 / 360-14-0
<a class="moz-txt-link-freetext" href="http://www.igh-essen.com">http://www.igh-essen.com</a>
------------------------------------------------------------------------
</pre>
</body>
</html>