Added r8169 driver for kernel 3.6.

This commit is contained in:
Florian Pose 2014-10-27 13:38:51 +01:00
parent 95bb74e7de
commit 8e5d96ba5e
4 changed files with 14204 additions and 1 deletions

View File

@ -134,7 +134,9 @@ noinst_HEADERS = \
r8169-3.2-ethercat.c \ r8169-3.2-ethercat.c \
r8169-3.2-orig.c \ r8169-3.2-orig.c \
r8169-3.4-ethercat.c \ r8169-3.4-ethercat.c \
r8169-3.4-orig.c r8169-3.4-orig.c \
r8169-3.6-ethercat.c \
r8169-3.6-orig.c
EXTRA_DIST = \ EXTRA_DIST = \
Kbuild.in Kbuild.in

7151
devices/r8169-3.6-ethercat.c Normal file

File diff suppressed because it is too large Load Diff

7030
devices/r8169-3.6-orig.c Normal file

File diff suppressed because it is too large Load Diff

20
devices/update.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
set -x
KERNELDIR=/data/kernel/linux-3.6.11
PREVER=3.4
KERNELVER=3.6
for f in $KERNELDIR/drivers/net/ethernet/realtek/{8139too,r8169}.c; do
echo $f
b=$(basename $f)
o=${b/\./-$KERNELVER-orig.}
e=${b/\./-$KERNELVER-ethercat.}
cp -v $f $o
chmod 644 $o
cp -v $o $e
op=${b/\./-$PREVER-orig.}
ep=${b/\./-$PREVER-ethercat.}
diff -u $op $ep | patch -p1 $e
done