netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* r8169 and 2.4.26 finally working
@ 2004-05-14 15:46 Johannes Petersson
  2004-05-14 23:27 ` Francois Romieu
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Petersson @ 2004-05-14 15:46 UTC (permalink / raw)
  To: romieu, a.nielsen; +Cc: netdev

Hello

This is the story so far, how it finally worked out and a bit of a recap

for the netdev@oss.sgi.com list.

I run Slackware 9.1 on a server with a MSI motherboard that has a 
RealTek 8169 gigabit lan. When copying large files from the server it 
hangs / crashes and it is really slow when writing large files to the 
server. From reading on the net I found out that the original r8169 
driver (ver. 1.2) is not working properly.

I first compiled and installed the 2.4.26 kernel and hoped that it would

solve my problems which it didn't.

Then I was in contact with both Francois Romieu and Adam Nielsen since 
these guys had been writing a lot of very informative stuff on the 
subject at seclists.org and netdev@oss.sgi.com. I downloaded and tried 
their three different patches:
http://www.fr.zoreil.com/people/francois/misc/20040420-2.4.26-r8169.c-st
able.patch
http://www.fr.zoreil.com/people/francois/misc/20040504-2.4.27-pre1-r8169
.c-test.patch
http://seclists.org/lists/linux-kernel/2004/Apr/0627.html

The patches were tried one at a time to the vanilla sources for the 
2.4.26 kernel. The 2.4.26-r8169.c-stable.patch gave the usual error
about not beeing able to patch the file completely when I applied it to
the kernel source.

The patch from Adam didn't work for me either, it too, gave the usual
message about not beeing able to patch the file.

The only patched that actually applied without any problems to the 
kernel was the 20040504-2.4.27-pre1-r8169.c-test.patch from Francois. At

that time I had some hope. But while compiling the kernel with the 
2.4.27-pre1-r8169 patch I got the following compile errors when I issued
"make bzImage":
Implicit declaration of netdev_priv
(I continued anyway with make modules, and make modules_install). Make
modules_install gave me this error:
Depmod: unresolved symbols in /lib/modules/2.4.26/.../r8169.o
After rebooting this kernel, the rtl8169 driver of course didn't work. 

Then I thought that I would have to resort to compiling and installing 
the 2.6.6 kernel which is supposed to solve the problem according to 
Francois and Adam. But before I did this I gave the official driver 
(ver. 1.6) from RealTeks homepage a try:
http://www.realtek.com.tw/downloads/downloads1-3.aspx?software=True&comp
amodel=RTL8169S-32%2F64

I compiled and installed the driver and did modprobe and started doing 
some testing. As it turns out the system actually worked with this 
driver. I rebooted and since then the server has been up and running 
without problems. Maybe RealTeks 1.6 driver isn't the best, but it works

for me with kernel 2.4.26 and performs pretty well while copying files 
in the gigabit lan.

I hope this little novel of mine can help somebody else with the same 
problem and big thanks to Francois and Adam for helping me out.

Sincerely
Johannes Petersson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: r8169 and 2.4.26 finally working
  2004-05-14 15:46 r8169 and 2.4.26 finally working Johannes Petersson
@ 2004-05-14 23:27 ` Francois Romieu
  0 siblings, 0 replies; 2+ messages in thread
From: Francois Romieu @ 2004-05-14 23:27 UTC (permalink / raw)
  To: Johannes Petersson; +Cc: a.nielsen, netdev

Johannes Petersson <johpe@vimmerbytidning.se> :
[...]
> The patches were tried one at a time to the vanilla sources for the 
> 2.4.26 kernel. The 2.4.26-r8169.c-stable.patch gave the usual error
> about not beeing able to patch the file completely when I applied it to
> the kernel source.
[...]
> The only patched that actually applied without any problems to the 
> kernel was the 20040504-2.4.27-pre1-r8169.c-test.patch from Francois. At
> 
> that time I had some hope. But while compiling the kernel with the 
> 2.4.27-pre1-r8169 patch I got the following compile errors when I issued
> "make bzImage":
> Implicit declaration of netdev_priv

This function requires at least a 2.4.27-pre1 kernel.

Please try a 2.4.27-pre1 kernel or apply the following patch to your
2.4.26 tree before/after 20040504-2.4.27-pre1-r8169.c-test.patch


diff -Nur --show-c-function linux-2.4.26/include/linux/netdevice.h linux-2.4.27-pre1/include/linux/netdevice.h
--- linux-2.4.26/include/linux/netdevice.h	2004-02-18 10:36:32.000000000 -0300
+++ linux-2.4.27-pre1/include/linux/netdevice.h	2004-04-21 19:59:15.000000000 -0300
@@ -467,6 +468,10 @@ struct packet_type 
 	struct packet_type	*next;
 };
 
+static inline void *netdev_priv(struct net_device *dev)
+{
+	return dev->priv;
+}
 
 #include <linux/interrupt.h>
 #include <linux/notifier.h>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-14 23:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-14 15:46 r8169 and 2.4.26 finally working Johannes Petersson
2004-05-14 23:27 ` Francois Romieu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).