- realtek 8139 driver problem

PDA

View Full Version : realtek 8139 driver problem


André Somers
07-24-2004, 08:47 PM
Hi,

I have an Edimax PCMCIA NIC, based on the Realtek 8139 chip. Untill now, I
have tried different drivers (all based on the rtl8139 driver), and all
have problems: uploading doesn't work properly. The system stalls as soon
as I try to upload a lot of data (say, more than half an MB) at once. This
is a problem with the drivers, as the same card funtions properly in a
laptop equiped with windows XP.
Now, I am trying to make it work with my new 2.4.21 kernel using the 8139too
driver, which is supposed to be more suited to the 2.4.x kernel. I am
having trouble compiling it though, using the makefile that comes with the
driver (downloaded from http://sourceforge.net/projects/gkernel/). The
output is as follows:

===
andre@andre:~/8139too-0.9.26> make
gcc -O2 -fomit-frame-pointer -D__KERNEL__ -I/spare/cvs/linux_2_3/include
-DCPU=586 -march=i586 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -pipe -DMODULE -c 8139too.c
In file included from /usr/include/linux/module.h:296,
from 8139too.c:99:
/usr/include/linux/version.h:2: #error
"======================================================="
/usr/include/linux/version.h:3: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4: #error "files directly for the compilation
of kernel modules."
/usr/include/linux/version.h:5: #error ""
/usr/include/linux/version.h:6: #error "glibc now uses kernel header files
from a well-defined"
/usr/include/linux/version.h:7: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8: #error "These files are glibc internal and
may not match the"
/usr/include/linux/version.h:9: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10: #error "included via other system header
files - user space"
/usr/include/linux/version.h:11: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13: #error ""
/usr/include/linux/version.h:14: #error "To build kernel modules please do
the following:"
/usr/include/linux/version.h:15: #error ""
/usr/include/linux/version.h:16: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17: #error ""
/usr/include/linux/version.h:18: #error " o Make sure that the symbolic
link"
/usr/include/linux/version.h:19: #error " /lib/modules/`uname -r`/build
exists and points to"
/usr/include/linux/version.h:20: #error " the matching kernel source
directory"
/usr/include/linux/version.h:21: #error ""
/usr/include/linux/version.h:22: #error " o Now copy /boot/vmlinuz.version.h
to"
/usr/include/linux/version.h:23: #error " /lib/modules/`uname
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24: #error ""
/usr/include/linux/version.h:25: #error " o When compiling, make sure to use
the following"
/usr/include/linux/version.h:26: #error " compiler option to use the
correct include files:"
/usr/include/linux/version.h:27: #error ""
/usr/include/linux/version.h:28: #error " -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/version.h:29: #error ""
/usr/include/linux/version.h:30: #error " instead of"
/usr/include/linux/version.h:31: #error ""
/usr/include/linux/version.h:32: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33: #error ""
/usr/include/linux/version.h:34: #error " Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:35: #error
"======================================================="
8139too.c:112: linux/crc32.h: No such file or directory
In file included from 8139too.c:99:
/usr/include/linux/module.h:298: parse error before `UTS_RELEASE'
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:27,
from /usr/include/linux/netdevice.h:146,
from 8139too.c:105:
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:78: warning: implicit declaration of function
`smp_processor_id'
In file included from 8139too.c:105:
/usr/include/linux/netdevice.h: At top level:
/usr/include/linux/netdevice.h:164: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/linux/netdevice.h:164: requested alignment is not a constant
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:45,
from /usr/include/linux/netdevice.h:432,
from 8139too.c:105:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here
(not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:45,
from /usr/include/linux/netdevice.h:432,
from 8139too.c:105:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here
(not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from /usr/include/linux/netdevice.h:432,
from 8139too.c:105:
/usr/include/linux/interrupt.h:128: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/linux/interrupt.h:128: requested alignment is not a constant
In file included from 8139too.c:105:
/usr/include/linux/netdevice.h:481: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/linux/netdevice.h:481: requested alignment is not a constant
8139too.c:281: `ETH_GSTRING_LEN' undeclared here (not in a function)
8139too.c:283: invalid initializer
8139too.c:283: (near initialization for `ethtool_stats_keys[0].str')
8139too.c:284: invalid initializer
8139too.c:284: (near initialization for `ethtool_stats_keys[1].str')
8139too.c:285: invalid initializer
8139too.c:285: (near initialization for `ethtool_stats_keys[2].str')
8139too.c:286: invalid initializer
8139too.c:286: (near initialization for `ethtool_stats_keys[3].str')
8139too.c:590: field `mii' has incomplete type
8139too.c: In function `__rtl8139_cleanup_dev':
8139too.c:716: warning: implicit declaration of function
`pci_release_regions'
8139too.c: In function `rtl8139_init_board':
8139too.c:822: warning: implicit declaration of function
`pci_request_regions'
8139too.c: In function `netdev_ethtool_ioctl':
8139too.c:2269: warning: implicit declaration of function `mii_ethtool_gset'
8139too.c:2282: warning: implicit declaration of function `mii_ethtool_sset'
8139too.c:2288: warning: implicit declaration of function `mii_nway_restart'
8139too.c:2293: warning: implicit declaration of function `mii_link_ok'
8139too.c:2388: `ETHTOOL_GSTRINGS' undeclared (first use in this function)
8139too.c:2388: (Each undeclared identifier is reported only once
8139too.c:2388: for each function it appears in.)
8139too.c:2389: variable `estr' has initializer but incomplete type
8139too.c:2389: warning: excess elements in struct initializer
8139too.c:2389: warning: (near initialization for `estr')
8139too.c:2389: storage size of `estr' isn't known
8139too.c:2393: `ETH_SS_STATS' undeclared (first use in this function)
8139too.c:2389: warning: unused variable `estr'
8139too.c:2407: `ETHTOOL_GSTATS' undeclared (first use in this function)
8139too.c:2408: variable `estats' has initializer but incomplete type
8139too.c:2408: warning: excess elements in struct initializer
8139too.c:2408: warning: (near initialization for `estats')
8139too.c:2408: storage size of `estats' isn't known
8139too.c:2408: warning: unused variable `estats'
8139too.c: In function `__set_rx_mode':
8139too.c:2556: warning: implicit declaration of function `ether_crc'
make: *** [8139too.o] Error 1

===

Does anyone have a clue what's going on here, and how to fix it?

André