PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : make bei rtl8180 Treiber



dile
21.02.04, 19:42
will eine PCI WLAN Karte unter Suse 9.0 zum laufen bringen
Realteak bietet auch treiber an --> ich komme jetzt bei der Übersetzung des Treibers nicht weiter

make bringt folgende Meldung:



linux:/Daten/rpm/rtl8180_1.5 # make
gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -I /usr/src/linux-2.4.21-192/include/ -DRTL_IO_MAP -DRTL_LITTLE_ENDIAN -DRTL_ACT_AS_STA -DRTL8180_DRV_ON_PC -DENABLE_DBG_PRINT -c -o r8180_pci_init.o r8180_pci_init.c
In file included from r8180_pci_init.c:40:
r8180_type.h:62:1: warning: "ENABLE_DBG_PRINT" redefined
<command line>:11:1: warning: this is the location of the previous definition
In file included from r8180_pci_init.c:40:
r8180_type.h:149: error: redefinition of `timer_t'
/usr/src/linux-2.4.21-192/include/linux/timer.h:41: error: `timer_t' previously declared here
make: *** [r8180_pci_init.o] Error 1



hat jemand eine Idee woran das liegen könnte ?

RoRoe
22.02.04, 11:23
hy,

ich glaub es reicht, einfach in der Datei r8180_type.h Zeile, die 3 Zeilen (um die Zeile 149 mit der timer_t-Definition, mit
/*
(1Zeile)
(2Zeile)
(3Zeile)
*/
auszukommentieren -> abspeichern -> make -> fertig!

dile
22.02.04, 17:25
thanx für den Tipp

--> jetzt hat make und make install geklappt

--> kann allerdings das Modul nicht laden


--> bekomme jetzt folgende Fehlermeldung:

linux:~ # modprobe rtl8180_24x
/lib/modules/2.4.21-99-default/kernel/drivers/net/wireless/rtl8180_24x.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.21-99-default/kernel/drivers/net/wireless/rtl8180_24x.o: insmod /lib/modules/2.4.21-99-default/kernel/drivers/net/wireless/rtl8180_24x.o failed
/lib/modules/2.4.21-99-default/kernel/drivers/net/wireless/rtl8180_24x.o: insmod rtl8180_24x failed



unter lspci -v -H1 steht die Belkin WLan Karte aber drin
00:0a.0 Ethernet controller: Belkin: Unknown device 6001 (rev 20)




linux:~ # lspci -v -H1
00:00.0 Host bridge: VIA Technologies, Inc. VT82C585VP [Apollo VP1/VPX] (rev 10)
Flags: bus master, 66Mhz, medium devsel, latency 32

00:07.0 ISA bridge: VIA Technologies, Inc. VT82C586/A/B PCI-to-ISA [Apollo VP] (rev 02)
Flags: bus master, medium devsel, latency 0

00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 02) (prog-if 8a [Master SecP PriP])
Flags: bus master, medium devsel, latency 32
I/O ports at 6000
Memory at e1004000 (32-bit, non-prefetchable)

00:09.0 VGA compatible controller: Matrox Graphics, Inc. MGA 1064SG [Mystique] (rev 02) (prog-if 00 [VGA])
Flags: stepping, medium devsel, IRQ 9
Memory at e1000000 (32-bit, non-prefetchable)
Memory at e0000000 (32-bit, prefetchable)
Memory at e0800000 (32-bit, non-prefetchable)

00:0a.0 Ethernet controller: Belkin: Unknown device 6001 (rev 20)
Subsystem: Belkin: Unknown device 6001
Flags: bus master, medium devsel, latency 32, IRQ 12
I/O ports at 6100
Memory at e1006000 (32-bit, non-prefetchable)
Capabilities: [50] Power Management version 2

00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
Subsystem: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
Flags: medium devsel, IRQ 12
I/O ports at 6200

RoRoe
23.02.04, 15:49
Hy,

lade das Modul mal von Hand, entweder mit insmod -f rtl.....o oder mit dem mitgelieferten Script z.b. ./wlanup infra.

Aber mit den Treibern für rtl8180-Chips is das so ne Sache. Bei mir funktionierts unter SuSE 9.0 aber unter Knoppix 3.4 net!

dile
24.02.04, 00:04
--> durch folgende Lösung konnte ich das Problem lösen


Sie könnten jetzt nach der Installationsanleitung des Treibers vorgehen. Wenn Sie das auch tun haben Sie ein Problem! ;-)
Der Treiber hat zwar ein "Card Detection Feature" auf das die Belkin-Karte aber nicht antworten wird. Dieses "Feature" hat schon so manchen Tuxianer um den Schlaf gebracht. Nun zu den Gegenmassnahmen:

Rufen Sie mit vi die Datei r8180_pci_init.c auf:
vi r8180_pci_init.c

Gehen Sie zur Section PCI Device_ID table. Die Section steuert das angesprochen Feature und sieht so aus:

static struct pci_device_id rtl8180_pci_id_tbl[] = {
{ 0x10EC, 0x8180 /*0x8139*/, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
{0,},
};

Wuerde die Belkin wirklich 0x8180 heissen währe alles kein Problem. Aber sehen Sie doch selbst nach mit cat /proc/pci | grep Belkin. Sie sehen etwas in Form von Ethernet controller: PCI device 1799:XXXX (Belkin) (rev 32).

Schaffen Sie also Abhilfe:
Statt 10EC tragen Sie nun 1799 ein und statt 8180 tragen Sie nun 6001 ein.


--> jetzt hat das wlan funktioniert --> es wurde gefunden --> allerdings hab ich keinen Ping schicken können

--> hab im Internet aber letztendlich gefunden das Kernel Versionen 2.4.18 und 2.4.20 nur von den Realtek treibern unterstützt werden

--> also hab ich jetzt suse 8.2 aufgespielt --> hatte hier zwar die gleichen Probleme wie unter 9.0 mit dem timer und das das modul nicht automaisch geladen wurde --> aber danach hat es funktioniert --> nach 6 Tagen rumprobieren --> endlich läuft das wlan :-)

Lucky_L
16.04.04, 13:13
hy,

ich glaub es reicht, einfach in der Datei r8180_type.h Zeile, die 3 Zeilen (um die Zeile 149 mit der timer_t-Definition, mit
/*
(1Zeile)
(2Zeile)
(3Zeile)
*/
auszukommentieren -> abspeichern -> make -> fertig!

hallo,
ich hab das gleiche problem. aber wenn ich diese zeilen auskommentiere kommt bei mir immer nur ein:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from r8180_pci_init.c:40:
r8180_type.h:62:1: Warnung: "ENABLE_DBG_PRINT" redefined
<command line>:11:1: Warnung: this is the location of the previous definition
make: *** [r8180_pci_init.o] Fehler 1


die zeilen so auszukommentieren war doch korrekt, oder?
" /*
#ifndef timer_t
typedef struct timer_list timer_t;
#endif //#ifndef timer_t
*/ "

AceTheFace
16.04.04, 13:17
hallo,
ich hab das gleiche problem. aber wenn ich diese zeilen auskommentiere kommt bei mir immer nur ein:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from r8180_pci_init.c:40:
r8180_type.h:62:1: Warnung: "ENABLE_DBG_PRINT" redefined
<command line>:11:1: Warnung: this is the location of the previous definition
make: *** [r8180_pci_init.o] Fehler 1


die zeilen so auszukommentieren war doch korrekt, oder?
" /*
#ifndef timer_t
typedef struct timer_list timer_t;
#endif //#ifndef timer_t
*/ "

Ist das Kommentarzeichen bei so Sachen nicht '#'?
Probier mal ein # vor jede Zeile zu setzen.

Gruß,

Ace

theborg
16.04.04, 14:54
hallo,
ich hab das gleiche problem. aber wenn ich diese zeilen auskommentiere kommt bei mir immer nur ein:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from r8180_pci_init.c:40:
r8180_type.h:62:1: Warnung: "ENABLE_DBG_PRINT" redefined
<command line>:11:1: Warnung: this is the location of the previous definition
make: *** [r8180_pci_init.o] Fehler 1


die zeilen so auszukommentieren war doch korrekt, oder?
" /*
#ifndef timer_t
typedef struct timer_list timer_t;
#endif //#ifndef timer_t
*/ "


nim mahl die beiden gensefüschen weg dann geht es auch

ich hab da noch mehr probleme nen make sieht in etwa so aus (das obengenate habe ich schon versucht dardurch ist auch ein fehler weg):


gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -I /usr/src/linux-2.4.21-199-athlon/include/ -DRTL_IO_MAP -DRTL_LITTLE_ENDIAN -DRTL_ACT_AS_STA -DRTL8180_DRV_ON_PC -DENABLE_DBG_PRINT -c -o r8180_pci_init.o r8180_pci_init.c
In file included from /usr/include/linux/module.h:20,
from r8180_pci_init.c:21:
/usr/include/asm/module.h:54:2: #error unknown processor family
In file included from /usr/include/linux/mm.h:205,
from /usr/include/linux/skbuff.h:26,
from /usr/include/linux/netdevice.h:147,
from r8180_pci_init.c:29:
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a constant
In file included from r8180_pci_init.c:29:
/usr/include/linux/netdevice.h:165: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:165: error: requested alignment is not a constant
In file included from /usr/include/linux/irq.h:19,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from r8180_pci_init.c:29:
/usr/include/asm/irq.h:16:25: irq_vectors.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from r8180_pci_init.c:29:
/usr/include/linux/irq.h:67: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:67: error: requested alignment is not a constant
/usr/include/linux/irq.h:69: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:71,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from r8180_pci_init.c:29:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from r8180_pci_init.c:29:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from r8180_pci_init.c:40:
r8180_type.h:62:1: Warnung: "ENABLE_DBG_PRINT" redefined
<command line>:11:1: Warnung: this is the location of the previous definition
make: *** [r8180_pci_init.o] Fehler 1

HXHannes
14.05.04, 17:30
ja diesen fehler habe ich auch

linux:/home/hannes/Desktop/rtl8180_1.5 # make
gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -I /usr/src/linux-2.4.21-99-athlon/include/ -DRTL_IO_MAP -DRTL_LITTLE_ENDIAN -DRTL_ACT_AS_STA -DRTL8180_DRV_ON_PC -DENABLE_DBG_PRINT -c -o r8180_pci_init.o r8180_pci_init.c
In file included from /usr/include/linux/module.h:20,
from r8180_pci_init.c:21:
/usr/include/asm/module.h:54:2: #error unknown processor family
In file included from /usr/include/linux/mm.h:205,
from /usr/include/linux/skbuff.h:26,
from /usr/include/linux/netdevice.h:147,
from r8180_pci_init.c:29:
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a constant
In file included from r8180_pci_init.c:29:
/usr/include/linux/netdevice.h:165: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:165: error: requested alignment is not a constant
In file included from /usr/include/linux/irq.h:19,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from r8180_pci_init.c:29:
/usr/include/asm/irq.h:16:25: irq_vectors.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from r8180_pci_init.c:29:
/usr/include/linux/irq.h:67: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:67: error: requested alignment is not a constant
/usr/include/linux/irq.h:69: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:71,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from r8180_pci_init.c:29:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from r8180_pci_init.c:29:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from r8180_pci_init.c:40:
r8180_type.h:62:1: Warnung: "ENABLE_DBG_PRINT" redefined
<command line>:11:1: Warnung: this is the lo


hat den keiner eine idee

nunja
24.04.05, 20:13
Nunja, schon ziemlich alt die Nachrichten aber zum Aufwärmen seit dem 19.04.2005 gibt es einen Treiber für Kerngeneration 2.6 unter http://www.realtek.com.tw/downloads/downloads1-3.aspx?keyword=RTL8180