[etherlab-dev] Module ec_e1000 for kernel version 2.6.22 (not working)

Erwin Burgstaller ethercat.berknapp at spamgourmet.com
Thu Apr 17 17:00:04 CEST 2008



Hi, 

I've got two Intel Gigabit Controller:

«Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)»

and I'd like to run them. In best case as a pair, the second as backup
device, just for to see how that works.

I've tried to port the source from 2.6.20 to 2.6.22. Again I extracted a
patch from the 2.6.20 orig- and ethercat files and applied them to the
2.6.22-code. Except for e1000_main-2.6.22-ethercat.c, there was not much
to do.

It compiles fine and loads:

# lsmod
Module                  Size  Used by
ec_e1000              113152  0 
ec_master             108252  1 ec_e1000
usbhid                 22880  0 
8139too                22032  0 
ehci_hcd               41496  0 
uhci_hcd               29592  0 


But it does not put out any datagrams to the ring:

Apr 17 16:19:14 UCL00097 kernel: [ 2117.653567] EtherCAT: Master driver 1.3.2 stable r980
Apr 17 16:19:14 UCL00097 kernel: [ 2117.653589] EtherCAT: 1 master waiting for devices.
Apr 17 16:19:14 UCL00097 NetworkManager: <debug info>^I[1208441954.278957] nm_hal_device_removed (): Device removed (hal udi is '/org/freedesktop/Hal/de
Apr 17 16:19:14 UCL00097 kernel: [ 2118.145701] ACPI: PCI interrupt for device 0000:02:03.0 disabled
Apr 17 16:19:14 UCL00097 NetworkManager: <debug info>^I[1208441954.762911] nm_hal_device_removed (): Device removed (hal udi is '/org/freedesktop/Hal/de
Apr 17 16:19:14 UCL00097 kernel: [ 2118.373371] ACPI: PCI interrupt for device 0000:02:02.0 disabled
Apr 17 16:19:14 UCL00097 kernel: [ 2118.379700] EtherCAT Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Apr 17 16:19:14 UCL00097 kernel: [ 2118.379706] Copyright (c) 1999-2006 Intel Corporation.
Apr 17 16:19:14 UCL00097 kernel: [ 2118.379758] ACPI: PCI Interrupt 0000:02:02.0[A] -> Link [LNK0] -> GSI 11 (level, low) -> IRQ 11
Apr 17 16:19:15 UCL00097 kernel: [ 2118.645024] ec_e1000: 0000:02:02.0: e1000_probe: (PCI:33MHz:32-bit) 00:1b:21:14:3a:5f
Apr 17 16:19:15 UCL00097 NetworkManager: <debug info>^I[1208441955.251045] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/de
Apr 17 16:19:15 UCL00097 kernel: [ 2118.816673] ec_e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
Apr 17 16:19:15 UCL00097 kernel: [ 2118.816706] ACPI: PCI Interrupt 0000:02:03.0[A] -> Link [LNKA] -> GSI 5 (level, low) -> IRQ 5
Apr 17 16:19:15 UCL00097 kernel: [ 2119.084413] ec_e1000: 0000:02:03.0: e1000_probe: (PCI:33MHz:32-bit) 00:1b:21:04:e5:51
Apr 17 16:19:15 UCL00097 kernel: [ 2119.255960] EtherCAT: Accepting device 00:1B:21:04:E5:51 for master 0.
Apr 17 16:19:15 UCL00097 kernel: [ 2119.256450] EtherCAT: Starting master thread.
Apr 17 16:19:17 UCL00097 kernel: [ 2120.824250] ec_e1000: ec0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX
Apr 17 16:19:17 UCL00097 kernel: [ 2120.824257] EtherCAT: Link state changed to UP.
Apr 17 16:19:17 UCL00097 kernel: [ 2120.827899] EtherCAT WARNING: 1 datagram TIMED OUT!
Apr 17 16:19:18 UCL00097 kernel: [ 2121.826453] EtherCAT WARNING: 250 datagrams TIMED OUT!
Apr 17 16:19:19 UCL00097 kernel: [ 2122.825059] EtherCAT WARNING: 250 datagrams TIMED OUT!
Apr 17 16:19:20 UCL00097 kernel: [ 2123.823723] EtherCAT WARNING: 250 datagrams TIMED OUT!

Does anybody have a working Module for kernel 2.6.22?

I've attached my port to that posting.

Almost forgot: If I switch the cable to the rtl-8139 card and have the
changes in /etc/sysconfig/ethercat done, it works. 


Another thing: When I leave both devices configured:

DEVICE_MODULES="e1000 8139too"

apart from not working, stopping ethercat results in flashing caps- and
num-lock on the keyboard, and as usual with that signs, a frozen machine.

Best regards,
Erwin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e1000-2.6.22.tgz
Type: application/x-gtar
Size: 301314 bytes
Desc: not available
Url : http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20080417/e678632b/attachment.tgz 


More information about the etherlab-dev mailing list