installation driver usb WIFI

Post Reply
Message
Author
L@urent
Posts: 8
Joined: Sun 18 Nov 2012, 19:07

installation driver usb WIFI

#1 Post by L@urent »

Bonjour, je dois pas etre le 1er à poster un message de ce type mais je n'ai rien trouver de satisfaisant pour l'instant Je débute sur Toutou et là j'essaye d'installer une clef wifi usb dont je possède le cd d'installation avec les pilotes linux. J'ai donc décompressé l'archive et ensuite je ne sais pas du tout quoi faire j'ai lu le readme et le makefile mais ça m'aide pas beaucoup, voila une copie du début du readme :

ModelName:
===========
RT2870 Wireless Lan Linux Driver


=======================================================================
Driver lName:
===========
rt2870.o/rt2870.ko


=======================================================================
Supporting Kernel:
===================
linux kernel 2.4 and 2.6 series.
Tested in Redhat 7.3 or later.


=======================================================================
Ralink Hardware:
===================
Ralink 802.11n Wireless LAN Card.


=======================================================================
Description:
=============
This is a linux device driver for Ralink RT2870 USB ABGN WLAN Card.


=======================================================================
Contents:
=============
Makefile : Makefile
*.c : c files
*.h : header files


=======================================================================
Features:
==========
This driver implements basic IEEE802.11. Infrastructure and adhoc mode with
open or shared or WPA-PSK or WPA2-PSK authentication method.
NONE, WEP, TKIP and AES encryption.


=======================================================================
Build Instructions:
====================

1> $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz
go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.

2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.

3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager or wpa_supplicant wext functions
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
=> #>cd wpa_supplicant-0.5.7
=> #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d

4> $make
# compile driver source code
# To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
=> $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c

5> $cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat

6> load driver, go to "os/linux/" directory.
#[kernel 2.4]
# $/sbin/insmod rt2870sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up

#[kernel 2.6]
# $/sbin/insmod rt2870sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up

Ps: je ne sais pas comment trouver la version de mon kernel qui est peut être une info importante.
En vous remerciant !

Médor

#2 Post by Médor »

Bonsoir l@urent,

Pour connaitre la version du noyau, faire cette commande dans la console :

Code: Select all

uname -r
(Donc pour Toutou-4.3.1 => 2.6.30.5).

Pour être bien sûr de l'identification exact de la clé USB, faire la commande :

Code: Select all

cat /proc/bus/usb/devices
et dans la liste des périphériques USB existants (si il y en a plusieurs) et il faut trouver celui du WiFi pour pouvoir relever les numéros des identifiants :
Vendor xxxx, ProdID xxxx, Rev xxxx


Puppy/Toutou-4.3.1 possède déjà les modules propriétaires Ralink : rt2860sta et rt2870sta

D'autres modules pour Puppy/Toutou 4.3.1 sont disponibles sur ce lien :
Extras for Puppy 4.3 with 2.6.30.5 kernel
Voir plus précisément ce fil : Ralink wifi suivant le cas et faire attention entre les périphériques WiFi USB et ceux en PCI qui sont totalement différents !


Cordialement,
Médor.

L@urent
Posts: 8
Joined: Sun 18 Nov 2012, 19:07

#3 Post by L@urent »

Ok merci je vais jeter un oeil. Dsl pr cette reponse tardive ca metait sorti de la tête

Post Reply