[realtek] Problems with Realtek And 8139too driver
Abhishek SINHA
aby_sinha@yahoo.com
Tue Dec 3 16:57:01 2002
Dear All
We have some machines with onboard Realtek 8139 chip
and we are having problems connecting it to the CISCO
switch.The machine is unable to connect to the
network.
I tried the 8139too driver.
I am using the Red Hat 2.4.18-3 kernel. It contains
8139too.c version
0.9.24. On the sourceforge site, there is only one
version newer than
this one, 0.9.26. When I try to build this one into
the kernel, I get
the following compile errors:
cc -D__KERNEL__ -I/usr/src/linux-2.4.18-3/include
-Wall
-Wstrict-prototypes -Wn
o-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common
-Wno-unuse
d -pipe -mpreferred-stack-boundary=2 -march=i386
-DMODULE -DMODVERSIONS
-include
/usr/src/linux-2.4.18-3/include/linux/modversions.h
-DKBUILD_BASENAME=8139too
-c -o 8139too.o 8139too.c
8139too.c: In function `netdev_ethtool_ioctl':
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: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
make[2]: *** [8139too.o] Error 1
make[2]: Leaving directory
`/usr/src/linux-2.4.18-3/drivers/net'
make[1]: *** [_modsubdir_net] Error 2
make[1]: Leaving directory
`/usr/src/linux-2.4.18-3/drivers'
make: *** [_mod_drivers] Error 2
So my attempt to update the 8139too driver was
unsuccessful. I did
compile the mii-diag tool, but it doesn't seem to work
correctly. Here
is the output of running it:
Using the default interface 'eth0'.
Basic registers of MII PHY #32: 0000 0000 0000 0000
0000 0000 0000
0000.
Basic mode control register 0x0000: Auto-negotiation
disabled, with
Speed fixed at 10 mbps, half-duplex.
Basic mode status register 0x0000 ... 0000.
Link status: not established.
Link partner information information is not exchanged
when in fixed
speed mode.
It almost looks like mii-diag isn't really
communicating with the chip
at all. However, "lsmod" does show that 8139too is
loaded, and ifconfig
appears to show that the interface is up. "dmesg" also
confirms that it
is, in fact, a RealTek chip.
Any help will be highly appreciate.(PLEASE cc me the
replies.)
Thanks
Abhishek
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com