Re: [etherlab-users] e1000e driver and kernel 3.2.31-rt47

2012-10-24 Thread Matthias Liermann
Quote Gavin Lambert:
I tried repatching (generating a diff between the _orig and the
_ethercat
files, then updating the _orig to the ones from my 3.2 kernel,
and
reapplying the diff) but it didn't seem to fix this issue.

Dear Gavin,
if you applied the changes correctly, the e1000e driver, which is
currently in the 3.2 kernel repository is not the same as the one which
was used for the previous patching. If that is the case, hopefully a new
patch could be done in the future. Although I would suggest to use the
one provided by intel, which should work on any kernel. Why wasn't this
done before?
http://www.intel.com/support/network/sb/CS-032514.htm
At least, I had no problems compiling and installing it on a 3.2 or a
2.6.35 Kernel. Should this thread be moved into the development mailing
list?



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


Re: [etherlab-users] e1000e driver and kernel 3.2.31-rt47

2012-10-24 Thread Gavin Lambert
Quoth Matthias Liermann:
 if you applied the changes correctly, the e1000e driver, which is
 currently in the 3.2 kernel repository is not the same as the one which
 was used for the previous patching. 

Correct, they are different.  I suspect that the one in the etherlab repository 
was from 3.2.0, while I'm trying to use the one from 3.2.31.  The differences 
are fairly minor, though, and even the original etherlab driver does not seem 
to work properly.

 Although I would suggest to use the one provided by intel, which 
 should work on any kernel. Why wasn't this done before?

I can use the in-kernel e1000e driver along with the generic EC driver; this 
works fine as far as low-speed bus scans etc.  I haven't evaluated it for 
high-speed cyclic performance yet, although I would presume that it would be 
lower, or why would there be a custom EC driver to begin with?


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


Re: [etherlab-users] e1000e driver and kernel 3.2.31-rt47

2012-10-23 Thread Gavin Lambert
Quoth Matthias Liermann:
 Do we need a new driver patch, or does anyone see another issue here?

I tried repatching (generating a diff between the _orig and the _ethercat
files, then updating the _orig to the ones from my 3.2 kernel, and
reapplying the diff) but it didn't seem to fix this issue.


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


Re: [etherlab-users] e1000e driver and kernel 3.2.31-rt47

2012-10-19 Thread Matthias Liermann
Hi,

I have a lenovo x220 with a Intel 82579LM Gigabit Network Card. I am
also stuck with the e1000e driver. I use rtai with a 2.6.35 kernel
version on ubuntu 12.04.
I remember (not totally sure about this) that when I installed ubuntu on
the system, I had to download the ethernet driver from Intel because the
one provided by Ubuntu didn't work. Now I would like to use the patched
driver from the etherlab project, but I have problems. The patch was
provided by Juergen Kunz:
http://lists.etherlab.org/pipermail/etherlab-dev/2012/000260.html

This is my dmseg output when I restart the ethercat service with 
/etc/init.d/ethercat restart

[ 9276.587965] EtherCAT: Master module cleaned up.
[ 9277.595339] e1000e: Intel(R) PRO/1000 Network Driver -
2.0.0.1-NAPI
[ 9277.595341] e1000e: Copyright(c) 1999 - 2012 Intel
Corporation.
[ 9277.595368] e1000e :00:19.0: found PCI INT A - IRQ 10
[ 9277.595590] e1000e :00:19.0: setting latency timer to 64
[ 9277.607056] e1000e :00:19.0: irq 21 for MSI/MSI-X
[ 9277.751217] e1000e :00:19.0: eth0: (PCI
Express:2.5GT/s:Width x1) f0:de:f1:b6:c0:9b
[ 9277.751220] e1000e :00:19.0: eth0: Intel(R) PRO/1000
Network Connection
[ 9277.751265] e1000e :00:19.0: eth0: MAC: 11, PHY: 11, PBA
No: 1000FF-0FF
[ 9277.858611] e1000e :00:19.0: irq 21 for MSI/MSI-X
[ 9277.909374] e1000e :00:19.0: irq 21 for MSI/MSI-X
[ 9277.910044] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 9278.770797] EtherCAT: Master driver devel af21f0bdc7c9
[ 9278.771686] EtherCAT: 1 master waiting for devices.
[ 9278.915012] ec_e1000e: EtherCAT-capable Intel(R) PRO/1000
Network Driver - 1.0.2-k4 (EtherCAT)
[ 9278.915015] ec_e1000e: Copyright (c) 1999 - 2009 Intel
Corporation.

It seems as if the driver loads well. The lspci -v command gives me:

00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit
Network Connection (rev 04)
Subsystem: Lenovo Device 21ce
Flags: fast devsel, IRQ 10
Memory at f250 (32-bit, non-prefetchable) [size=128K]
Memory at f252b000 (32-bit, non-prefetchable) [size=4K]
I/O ports at 5080 [size=32]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [e0] PCI Advanced Features
Kernel modules: e1000e

Is it right that is says e1000e in the last line instead of ec_e1000e?
With my Beckhoff Ek1100 bus couple module connected to the network card
I get the following output for the command: /opt/etherlab/bin/ethercat
master

Master0
  Phase: Waiting for device...
  Active: no
  Slaves: 0
  Ethernet devices:
Main: ff:ff:ff:ff:ff:ff (waiting...)
  Link: DOWN
  Tx frames:   0
  Rx frames:   0
  Lost frames: 0
  Tx bytes:0
  Tx errors:   0
  Tx frame rate [1/s]:  0  0  0
  Tx rate [KByte/s]:  0.00.00.0
  Loss rate [1/s]:  0  0  0
  Frame loss [%]: 0.00.00.0

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

Interestingly I saw in the lsmod list that the patched driver ec_e1000e
has a size of 149498, while the e1000e is bigger by 32%: 198797. 
Do we need a new driver patch, or does anyone see another issue here?


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


Re: [etherlab-users] e1000e driver and kernel 3.2.31-rt47

2012-10-18 Thread Daniel Helmick
I'm having the exact same issue with kernel 3.2.0-31-generic and an Intel
82579LM GigE NIC.
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users