LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-01-2004, 04:21 AM   #1
jysse
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Rep: Reputation: 0
Realtek 8139 driver compile


How do I compile 8139too driver as a module ? My debian server sees this card ok but speed is only 10 Mb/s. I can't change it with ethtool or mii-tool.

info:

# uname -r
2.4.18-bf2.4

# mii-tool -v
eth0: 10 Mbit, half duplex, no link
product info: vendor 00:00:00, model 0 rev 0
basic mode: 10 Mbit, half duplex
basic status: no link
capabilities:
advertising:

# lspci -v
00:0e.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at ec00 [size=256]
Memory at d3400000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2

# dpkg -l | grep kernel
ii kernel-headers 2.4.18-5woody8 Headers for Linux kernel version 2.4.18 (bf
ii kernel-package 7.107 Debian Linux kernel package build scripts.
ii kernel-source- 2.4.18-14.3 Linux kernel source for version 2.4.18
ii pciutils 2.1.9-4 Linux PCI Utilities (for 2.[1234].x kernels)


Maybe it is better to try compile it as a module ?
Downloaded drivers from scyld.com but:

jailhouse:~/roska# make
Makefile:46: No kernel version has been specified.
Assuming 2.4.18-bf2.4.
Set the KERNVER variable to specify a different kernel.
cc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -I/usr/src/linux/include -pipe -fno-strength-reduce -DMODVERSIONS -c -o pci-skeleton.o pci-skeleton.c
pci-skeleton.c:110: linux/modversions.h: No such file or directory
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from pci-skeleton.c:122:
/usr/src/linux/include/linux/sched.h:799: conflicting types for `kernel_thread'
/usr/include/asm/processor.h:432: previous declaration of `kernel_thread'
make: *** [pci-skeleton.o] Error 1

And then I tried:

# gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c
rtl8139.c:102: linux/modversions.h: No such file or directory

What's missing ?

thanks,
jysse
 
Old 08-01-2004, 09:04 AM   #2
macondo
Senior Member
 
Registered: Jul 2003
Posts: 1,016

Rep: Reputation: 52
What type of broadband do you have? I use ADSL, and when i install woody if works perfectly with a Realtek card, 8139too driver, it is recognized automatically. Used 'modconf' and attempt to reinstall the 8139too module to the kernel, see if it works.
 
Old 08-01-2004, 09:59 AM   #3
jysse
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Original Poster
Rep: Reputation: 0
SOLVED Realtek 8139

I managed to set speed to 100 Mb/s by compiling kernel 2.4.19.

Haven't done that before but it was easy...

Now I can use mii-tool to change nic's configuration.

jysse
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RealTek 8139 Driver RH9 ilubtofart Linux - Newbie 6 10-01-2004 10:54 AM
8139 realtek jakublgz Linux - Hardware 3 04-11-2003 05:48 PM
realtek 8139 poortl9109 Linux - Hardware 6 12-18-2002 03:39 PM
Realtek 8139 esteeven Linux - Hardware 10 05-29-2002 06:53 AM
Realtek 8139 SirKalten Linux - Networking 3 02-19-2002 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration