[realtek] patching 8139too to use in 2.2x kernel
Corisen
csyap@starnet.gov.sg
Mon, 13 Nov 2000 19:15:06 +0800
nope. this question was not answered since it was posted :(
i'm runinng RedHat7, kernel 2.2.16 on a Sharp Actius A250 notebook. The
notebook has a onboard Realtek NIC that is about to drive me crazy...
The original Realtek NIC driver (rtl8139.o) that came with RH7 *seems* to
work initially. I was able to get a dynamic IP and was able to ping upon
startup. however, after sometime, the connection dies off by itself. though
ifconfig still shows a IP but I was unable to ping anymore.
The second scenario that is guaranteed to kill the network connection is by
downloading a reasonably large file using ftp command. Whenever I try to
connect to my ftp server on any ftp server to download files, the download
process will stop after 1sec and the connection is lost.
Below describe the steps I took to compile the new drivers (but
unsuccessful):
1. download the source code from ftp://ftp.scyld.com/pub/network/rtl8139.c
2. gunzip to /root/rtl8139 (gcc version 2.96)
3. download pci-scan.c, pci-scan.h, and kern_compat.h to /root/rtl8139
4. gcc -DMODULE -D__KERNEL__ -O6 -c rtl8139.c
Below is a log of error messages reported by the gcc.
rtl8139.c: In function `rtl8129_open':
rtl8139.c:704: structure has no member named `tbusy'
rtl8139.c:705: structure has no member named `interrupt'
rtl8139.c:706: structure has no member named `start'
rtl8139.c: In function `rtl8129_timer':
rtl8139.c:796: structure has no member named `interrupt'
rtl8139.c:802: structure has no member named `tbusy'
rtl8139.c: In function `rtl8129_tx_timeout':
rtl8139.c:929: structure has no member named `tbusy'
rtl8139.c: In function `rtl8129_start_xmit':
rtl8139.c:960: structure has no member named `tbusy'
rtl8139.c:983: structure has no member named `tbusy'
rtl8139.c:987: structure has no member named `tbusy'
rtl8139.c: In function `rtl8129_interrupt':
rtl8139.c:1012: structure has no member named `interrupt'
rtl8139.c:1015: structure has no member named `interrupt'
rtl8139.c:1092: structure has no member named `tbusy'
rtl8139.c:1093: `NET_BH' undeclared (first use in this function)
rtl8139.c:1093: (Each undeclared identifier is reported only once
rtl8139.c:1093: for each function it appears in.)
rtl8139.c:1168: structure has no member named `interrupt'
rtl8139.c: In function `rtl8129_close':
rtl8139.c:1291: structure has no member named `start'
rtl8139.c:1292: structure has no member named `tbusy'
rtl8139.c: In function `rtl8129_get_stats':
rtl8139.c:1369: structure has no member named `start'
I'm really having a difficulty time compiling the new drivers for Realtek
8139.
Pls kindly advise where I have gone wrong and the correct procedure to
compile and install the drivers.
Any help would be greatly appreciated.
Thank you so much.
----- Original Message -----
From: Stephen Gutknecht (vw) <VW@i405.com>
To: <csyap@starnet.gov.sg>; <realtek@scyld.com>
Sent: Monday, November 13, 2000 10:48 AM
Subject: RE: [realtek] patching 8139too to use in 2.2x kernel
> Did anyone ever answer this question?
>
> Csyap: do you mind detailing the _exact steps_ of you compiled the
8139too.c
> driver? I'm just learning myself and it would be great if we could share
> notes.
>
> I'm on Redhat 7.0, I upgraded modutils to 2.3.19-2 using RPM and compiled
a
> 2.4.0-test10 kernel (which I can boot with fine - but no network, using a
> Asus CUSL2 i815 main board).
>
> Stephen Gutknecht
> Renton, Washington
>
>
> -----Original Message-----
> From: csyap@starnet.gov.sg [mailto:csyap@starnet.gov.sg]
> Sent: Friday, November 10, 2000 11:23 AM
> To: realtek@scyld.com
> Subject: [realtek] patching 8139too to use in 2.2x kernel
>
>
> hi,
>
> i've downloaded the following 3 files and successfully compiled 8139too.c
> to 8139too.o(for kernel 2.4x) from 8139too-0.9.10.tar.gz.
>
> pls kindly advise the procedure to apply the patch for 2.2.16-22 kernel.
> what command must i execute pls. where must each file be kept?
>
> 8139too-0.9.10.diff.gz
>
> 8139too-0.9.10.tar.gz
> patch-8139too-0.9.10-2.2.gz
>
> thanks for your help