[etherlab-users] [PATCH] Allow master to work with kernels >= 2.6.27

Stefan Agner stefan.agner at yahoo.com
Sat Apr 4 00:49:18 CEST 2009


Hi Holly Gates,

I also just started with EtherCAT/Etherlab... I updated the e100 driver for my purpose from 2.6.26 to 2.6.28 and 29, and it wasn't that hard. All I did was I created a patch out of
the original version of the 26 version and the one i would like to port
it. Then I tried to apply this patch to the new version of this driver
and fixed rejected merges. The e100 had not many changes in mainline,
so the merge went pretty well. I think realteak is also a mature
driver, therefor I just would try it:

I would do something like this:

$ diff -uN r8169-2.6.24-ethercat.c r8169-2.6.24-orig.c > r8169.patch
$ patch /usr/src/linux/drivers/net/r8169.c < r8169.patch
Anyway,
be aware of the difference between 8169 and 8139! You say you've the
8169, which is atm only avilable for 2.6.24 (in devel-r1680). 

Good Luck
Stefan



----- Original Message ----
From: Holly Gates <hgates at 1366tech.com>
To: etherlab-users at etherlab.org
Sent: Thursday, April 2, 2009 9:52:15 PM
Subject: [etherlab-users] [PATCH] Allow master to work with kernels >= 2.6.27

Hi there, I am a total n00b on EtherCAT. Right now I'm trying to
decide if my company should go with Beckhoff or B&R hardware for PLCs.
I found Etherlab online and it looks great. Right now I'm trying to
give it a go connected to some Beckhoff I/O blocks, but I have not yet
succeeded.

I bought an Acer Aspire One netbook because it appeared to use the
r8169 driver, and installed fedora 10 on it, plus various packages
needed to build ethercat master. I did get it to build ok, but then
realized I needed to tell it to build the 8169 driver. So I tried
that, but it says it doesn't have a driver for r8169 with kernel
2.6.27 (which is what I am running). I could probably downgrade to
2.6.26 (which it looks like there is a driver for), but I found a
thread in the archives about allowing r8169 to build with kernels >=
2.6.27. In that thread, Florian said he put the patch in, and the
source I downloaded today is package ethercat-devel-r1680 which
appears to have been posted yesterday. So my questions are:

- should it work as is, but I'm doing something silly
- can I put a patch on or something to allow ethercat-devel-r1680 to
build the r8169 driver for 2.6.27?
- or should I just figure out how to change to kernel 2.6.26

Anyway, nice work on this software igH guys! It looks pretty excellent
for an open source project with a small number of people working on
it, and you've done an especially impressive job on the documentation.

-Holly Gates
_______________________________________________
etherlab-users mailing list
etherlab-users at etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users



      




More information about the Etherlab-users mailing list