|
|
|
|
Bonjour, étant désespéré et ayant cherché sur google pendant un certaint temps, je vous expose mon (gros?) problème:
Je suis sous Mandriva 2008 Spring, et je viens d'acheter une antenne Wifi et la carte qui va avec. Le materiel est reconnu, sur ce point, aucun problème.
Le cd fourni avec le produit contient le driver Linux, et m'indique qu'il faut compiler.
J'ai les sources qui correspondent à mon kernel (2.6.24.7-desktop586-1mnb)
Le fichier README, inclut avec le pilote m'indique la marche à suivre:
For 2.6 series kernel:
a. run 'cd STA/Module'
'cp ./2.6.x/Makefile .'
'cp ./2.6.x/load .'
b. $make -C /path/to/source SUBDIRS=$PWD modules
Where /path/to/source is the path to the source directory for the (configured and built) target kernel.
c. run '/sbin/insmod rt2500.ko' (as root)
'/sbin/ifconfig ra0 inet YOUR_IP up'
make -C /usr/src/linux-2.6.24.7-desktop-1mnb/ SUBDIRS=$PWD modules
[root@localhost Module]# make -C /usr/src/linux-2.6.24.7-desktop-1mnb/ SUBDIRS=$PWD modules
make: entrant dans le répertoire « /usr/src/linux-2.6.24.7-desktop-1mnb »
CC [M] /home/fabien/Desktop/OVISLINJ/Module/rtmp_main.o
Dans le fichier inclus à partir de /home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:38:
/home/fabien/Desktop/OVISLINJ/Module/rt_config.h:53:40: erreur: linux/config.h : Aucun fichier ou répertoire de ce type
Dans le fichier inclus à partir de /home/fabien/Desktop/OVISLINJ/Module/mlme.h:39,
à partir de /home/fabien/Desktop/OVISLINJ/Module/rtmp.h:41,
à partir de /home/fabien/Desktop/OVISLINJ/Module/rt_config.h:138,
à partir de /home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:38:
/home/fabien/Desktop/OVISLINJ/Module/oid.h:98:5: attention : « RT2500_DBG » n'est pas défini
In file included from /home/fabien/Desktop/OVISLINJ/Module/mlme.h:39,
from /home/fabien/Desktop/OVISLINJ/Module/rtmp.h:41,
from /home/fabien/Desktop/OVISLINJ/Module/rt_config.h:138,
from /home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:38:
/home/fabien/Desktop/OVISLINJ/Module/oid.h:276: attention : ‘packed’ attribute ignored
/home/fabien/Desktop/OVISLINJ/Module/oid.h:277: attention : ‘packed’ attribute ignored
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c: In function ‘RT2500_probe’:
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:121: erreur: ‘struct pci_dev’ has no member named ‘slot_name’
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:134: erreur: implicit declaration of function ‘SET_MODULE_OWNER’
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:163: attention : passing argument 1 of ‘readl’ makes pointer from integer without a cast
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:164: attention : passing argument 1 of ‘readl’ makes pointer from integer without a cast
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:182: erreur: ‘struct net_device’ has no member named ‘get_wireless_stats’
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:198: erreur: ‘dev_base’ undeclared (first use in this function)
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:198: erreur: (Each undeclared identifier is reported only once
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:198: erreur: for each function it appears in.)
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:198: erreur: ‘struct net_device’ has no member named ‘next’
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c: In function ‘RT2500_open’:
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:269: erreur: ‘SA_SHIRQ’ undeclared (first use in this function)
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:269: attention : passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c: In function ‘RTMPIsr’:
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:465: attention : passing argument 1 of ‘readl’ makes pointer from integer without a cast
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:466: attention : passing argument 2 of ‘writel’ makes pointer from integer without a cast
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c: In function ‘rt2500_init_module’:
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:782: erreur: implicit declaration of function ‘pci_module_init’
make[1]: *** /home/fabien/Desktop/OVISLINJ/Module/rtmp_main.o Erreur 1
make: *** [_module_/home/fabien/Desktop/OVISLINJ/Module] Erreur 2
make: quittant le répertoire « /usr/src/linux-2.6.24.7-desktop-1mnb »
/home/fabien/Desktop/OVISLINJ/Module/rt_config.h:53:40: erreur: linux/config.h : Aucun fichier ou répertoire de ce type
#ifndef __RT_CONFIG_H__ #define __RT_CONFIG_H__ #define PROFILE_PATH "/etc/Wireless/RT2500STA/RT2500STA.dat" #define NIC_DEVICE_NAME "RT2500STA" /* Operational parameters that are set at compile time. */ #if !defined(__OPTIMIZE__) || !defined(__KERNEL__) #warning You must compile this file with the correct options! #warning See the last lines of the source file. #error You must compile this driver with "-O". #endif #include <linux/config.h> //can delete <= Ligne qui apparament cause l'erreur #include <linux/module.h> #include <linux/version.h> #include <linux/kernel.h> #include <linux/string.h> #include <linux/timer.h> #include <linux/errno.h> //can delete #include <linux/ioport.h> // can delete #include <linux/slab.h> #include <linux/interrupt.h> #include <linux/pci.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/skbuff.h> #include <linux/init.h> //can delete #include <linux/delay.h> // can delete #include <linux/ethtool.h> #include <linux/wireless.h> #include <linux/proc_fs.h> #include <linux/delay.h> #include <linux/if_arp.h> #include <linux/ctype.h>
[root@localhost Module]# make -C /usr/src/linux-2.6.24.7-desktop-1mnb/ SUBDIRS=$PWD modules
make: entrant dans le répertoire « /usr/src/linux-2.6.24.7-desktop-1mnb »
CC [M] /home/fabien/Desktop/OVISLINJ/Module/rtmp_main.o
Dans le fichier inclus à partir de /home/fabien/Desktop/OVISLINJ/Module/mlme.h:39,
à partir de /home/fabien/Desktop/OVISLINJ/Module/rtmp.h:41,
à partir de /home/fabien/Desktop/OVISLINJ/Module/rt_config.h:138,
à partir de /home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:38:
/home/fabien/Desktop/OVISLINJ/Module/oid.h:98:5: attention : « RT2500_DBG » n'est pas défini
In file included from /home/fabien/Desktop/OVISLINJ/Module/mlme.h:39,
from /home/fabien/Desktop/OVISLINJ/Module/rtmp.h:41,
from /home/fabien/Desktop/OVISLINJ/Module/rt_config.h:138,
from /home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:38:
/home/fabien/Desktop/OVISLINJ/Module/oid.h:276: attention : ‘packed’ attribute ignored
/home/fabien/Desktop/OVISLINJ/Module/oid.h:277: attention : ‘packed’ attribute ignored
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c: In function ‘RT2500_probe’:
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:121: erreur: ‘struct pci_dev’ has no member named ‘slot_name’
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:134: erreur: implicit declaration of function ‘SET_MODULE_OWNER’
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:163: attention : passing argument 1 of ‘readl’ makes pointer from integer without a cast
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:164: attention : passing argument 1 of ‘readl’ makes pointer from integer without a cast
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:182: erreur: ‘struct net_device’ has no member named ‘get_wireless_stats’
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:198: erreur: ‘dev_base’ undeclared (first use in this function)
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:198: erreur: (Each undeclared identifier is reported only once
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:198: erreur: for each function it appears in.)
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:198: erreur: ‘struct net_device’ has no member named ‘next’
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c: In function ‘RT2500_open’:
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:269: erreur: ‘SA_SHIRQ’ undeclared (first use in this function)
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:269: attention : passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c: In function ‘RTMPIsr’:
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:465: attention : passing argument 1 of ‘readl’ makes pointer from integer without a cast
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:466: attention : passing argument 2 of ‘writel’ makes pointer from integer without a cast
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c: In function ‘rt2500_init_module’:
/home/fabien/Desktop/OVISLINJ/Module/rtmp_main.c:782: erreur: implicit declaration of function ‘pci_module_init’
make[1]: *** /home/fabien/Desktop/OVISLINJ/Module/rtmp_main.o Erreur 1
make: *** [_module_/home/fabien/Desktop/OVISLINJ/Module] Erreur 2
make: quittant le répertoire « /usr/src/linux-2.6.24.7-desktop-1mnb »
[root@localhost Module]# ICE default IO error handler doing an exit(), pid = 3129, errno = 11
Configuration: Linux Mandriva Firefox 2.0.0.13
Mouais, tu sais quoi, oublie ce driver qu'ils t'ont filé par cd.
wget http://rt2x00.serialmonkey.com/rt2500-cvs-daily.tar.gz tar xvzf rt2500-cvs-daily.tar.gz cd rt2500-cvs-machinbidulechouettezizitagada cd Module make su make installLe gâteau est un mensonge! |
J'ai réussi:
[root@localhost fabien]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:DA:3A:47:DF
inet adr:192.168.1.21 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::250:daff:fe3a:47df/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1912 errors:0 dropped:0 overruns:0 frame:0
TX packets:2169 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:1182067 (1.1 MiB) TX bytes:478632 (467.4 KiB)
Interruption:11 Adresse de base:0x6800
lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:158 errors:0 dropped:0 overruns:0 frame:0
TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:11896 (11.6 KiB) TX bytes:11896 (11.6 KiB)
|
eth0 Link encap:Ethernet HWaddr 00:50:DA:3A:47:DF
inet adr:192.168.1.21 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::250:daff:fe3a:47df/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4545 errors:0 dropped:0 overruns:0 frame:0
TX packets:5140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:2798545 (2.6 MiB) TX bytes:1182050 (1.1 MiB)
Interruption:11 Adresse de base:0x6800
lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:158 errors:0 dropped:0 overruns:0 frame:0
TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:11896 (11.6 KiB) TX bytes:11896 (11.6 KiB)
wlan0 Link encap:Ethernet HWaddr 00:1D:1A:02:83:51 <= Le nom de mon interface wifi,
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wmaster0 Link encap:UNSPEC HWaddr 00-1D-1A-02-83-51-58-26-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Voila, en sachant que lsmod ne donne rien
|
phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. Et ca pendant plus de 500 lignes... Un problème du même genre apparait pendant le démarage de Mandriva! |
Mot de passe : [root@localhost fabien]# urpmi firmware-ralink Pas de paquetage nommé firmware-ralink [root@localhost fabien]# lspci 00:00.0 Host bridge: Advanced Micro Devices [AMD] AMD-751 [Irongate] System Controller (rev 23) 00:01.0 PCI bridge: Advanced Micro Devices [AMD] AMD-751 [Irongate] AGP Bridge (rev 01) 00:03.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 64) 00:04.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07) 00:04.1 Input device controller: Creative Labs SB Live! Game Port (rev 07) 00:06.0 USB Controller: NEC Corporation USB (rev 41) 00:06.1 USB Controller: NEC Corporation USB (rev 41) 00:06.2 USB Controller: NEC Corporation USB 2.0 (rev 02) 00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 14) 00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) 00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 06) 00:07.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 06) 00:07.4 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 10) 00:09.0 Network controller: RaLink RT2561/RT61 802.11g PCI 00:0c.0 FireWire (IEEE 1394): Texas Instruments TSB12LV23 IEEE-1394 Controller 01:05.0 VGA compatible controller: ATI Technologies Inc Rage 128 RF/SG AGP [root@localhost fabien]# [root@localhost fabien]# Ce que me donne la commande lspci.
|