#1 Le 25/01/2008, à 13:32
- akoirium
besoin d'aide pour traduction et compilation driver chipset ralink
salut a tous
je viens d'accerir une carte connectlant wifi 802.11n avec un chipset ralink rt2860.
j'ai trouvé les driver sur le net mais j'ai des problémes avec le "readme" en anglais :
* README
*
* Ralink Tech Inc.
*
* http://www.ralinktech.com
*
=======================================================================
ModelName:
===========
RT2860 Wireless Lan Linux Driver
=======================================================================
Driver lName:
=============
rt2860.o/rt2860.ko
=======================================================================
Supporting Kernel:
===================
linux kernel 2.4 and 2.6 series.
Tested in Redhat 7.3 or later.
=======================================================================
Description:
=============
This is a linux device driver for Ralink RT2860 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_RT2860_Linux_STA_x.x.x.x.tgz
go to "./DPB_RT2860_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
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
4> $make # compile driver source code
5> $cp RT2860STA.dat /etc/Wireless/RT2860STA/RT2860STA.dat
# !!!check if it is a binary file before loading !!!
6> load driver
#[kernel 2.4]
# $/sbin/insmod rt2860sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up
#[kernel 2.6]
# $/sbin/insmod rt2860sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up
7> unload driver
$/sbin/ifconfig ra0 down
$/sbin/rmmod rt2860sta
=======================================================================
CONFIGURATION:
====================
RT2860 driver can be configured via following interfaces,
i.e. (i)"iwconfig" command, (ii)"iwpriv" command, (iii) configuration file
i) iwconfig comes with kernel.
ii) iwpriv usage, please refer to file "iwpriv_usage.txt" for details.
iii)modify configuration file "RT2860STA.dat" in /etc/Wireless/RT2860STA/RT2860STA.dat.
Configuration File : RT2860STA.dat
---------------------------------------
# Copy this file to /etc/Wireless/RT2860STA/RT2860STA.dat
# This file is a binary file and will be read on loading rt.o module.
#
# Use "vi -b rt61sta.dat" to modify settings according to your need.
#
# 1.) set NetworkType to "Adhoc" for using Adhoc-mode, otherwise using Infrastructure
# 2.) set Channel to "0" for auto-select on Infrastructure mode
# 3.) set SSID for connecting to your Accss-point.
# 4.) AuthMode can be "WEPAUTO", "OPEN", "SHARED", "WPAPSK", "WPA2PSK", "WPANONE"
# 5.) EncrypType can be "NONE", "WEP", "TKIP", "AES"
# for more information refer to the Readme file.
#
#The word of "Default" must not be removed
Default
CountryRegion=5
CountryRegionABand=7
CountryCode=
SSID=Dennis2860AP
NetworkType=Infra
WirelessMode=9
Channel=0
BasicRate=15
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
WmmCapable=0
AckPolicy=0;0;0;0
AuthMode=OPEN
EncrypType=NONE
WPAPSK=
DefaultKeyID=1
Key1Type=0
Key1Str=
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
PSMode=CAM
FastRoaming=0
RoamThreshold=70
HT_RDG=1
HT_EXTCHA=0
HT_OpMode=1
HT_MpduDensity=4
HT_BW=1
HT_AutoBA=1
HT_AMSDU=0
HT_BAWinSize=64
HT_GI=1
HT_MCS=33
HT_MIMOPSMode=3
-----------------------------------------------
*NOTE:
WMM parameters
WmmCapable Set it as 1 to turn on WMM Qos support
AckPolicy1~4 Ack policy which support normal Ack or no Ack
(AC_BK, AC_BE, AC_VI, AC_VO)
All WMM parameters do not support iwpriv command but ¡¥WmmCapable¡Š¡Š,
please store all parameter to RT2860STA.dat, and restart driver.
-----------------------------------------------
syntax is 'Param'='Value' and describes below.
1. CountryRegion=value
value
0: use 1 ~ 11 Channel
1: use 1 ~ 13 Channel
2: use 10 ~ 11 Channel
3: use 10 ~ 13 Channel
4: use 14 Channel
5: use 1 ~ 14 Channel
6: use 3 ~ 9 Channel
7: use 5 ~ 13 Channel
2. CountryRegionForABand=value
value
0: use 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 Channel
1: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 Channel
2: use 36, 40, 44, 48, 52, 56, 60, 64 Channel
3: use 52, 56, 60, 64, 149, 153, 157, 161 Channel
4: use 149, 153, 157, 161, 165 Channel
5: use 149, 153, 157, 161 Channel
6: use 36, 40, 44, 48 Channel
7: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 Channel
8: use 52, 56, 60, 64 Channel
9: use 34, 38, 42, 46 Channel
10 use 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64 Channel
3. SSID=value
value
0~z, 1~32 ascii characters.
4. WirelessMode=value
value
0: legacy 11b/g mixed
1: legacy 11B only
2: legacy 11A only //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
3: legacy 11a/b/g mixed //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
4: legacy 11G only
5: 11ABGN mixed
6: 11N only
7: 11GN mixed
8: 11AN mixed
9: 11BGN mixed
10: 11AGN mixed
5. Channel=value
value
depends on CountryRegion or CountryRegionForABand
6. BGProtection=value
value
0: Auto
1: Always on
2: Always off
7. TxPreamble=value
value
0:Preamble Long
1:Preamble Short
2:Auto
8. RTSThreshold=value
value
1~2347
9. FragThreshold=value
value
256~2346
10. TxBurst=value
value
0: Disable
1: Enable
11. NetworkType=value
value
Infra: infrastructure mode
Adhoc: adhoc mode
12. AuthMode=value
value
OPEN For open system
SHARED For shared key system
WEPAUTO Auto switch between OPEN and SHARED
WPAPSK For WPA pre-shared key (Infra)
WPA2PSK For WPA2 pre-shared key (Infra)
WPANONE For WPA pre-shared key (Adhoc)
WPA
WPA2
13. EncrypType=value
value
NONE For AuthMode=OPEN
WEP For AuthMode=OPEN or AuthMode=SHARED
TKIP For AuthMode=WPAPSK or WPA2PSK
AES For AuthMode=WPAPSK or WPA2PSK
14. DefaultKeyID=value
value
1~4
15. Key1=value
Key2=value
Key3=value
Key4=value
value
10 or 26 hexadecimal characters eg: 012345678
5 or 13 ascii characters eg: passd
(usage : "iwpriv" only)
16. Key1Type=vaule
Key2Type=value
Key3Type=vaule
Key4Type=vaule
value
0 hexadecimal type
1 assic type
(usage : reading profile only)
17. Key1Str=value
Key2Str=value
Key3Str=vaule
Key4Str=vaule
value
10 or 26 characters (key type=0)
5 or 13 characters (key type=1)
(usage : reading profile only)
18. WPAPSK=value
value
8~63 ASCII or
64 HEX characters
19. WmmCapable=value
value
0: Disable WMM
1: Enable WMM
20. PSMode=value
value
CAM Constantly Awake Mode
Max_PSP Max Power Savings
Fast_PSP Power Save Mode
21. FastRoaming=value
value
0 Disabled
1 Enabled
22. RoamThreshold=value
value
Positive Interger(dBm)
23. HT_RDG=value
value
0 Disabled
1 Enabled
24. HT_EXTCHA=value (Extended Channel Switch Announcement)
value
0 Below
1 Above
25. HT_OpMode=value
value
0 HT mixed format
1 HT greenfield format
26. HT_MpduDensity=value
value (based on 802.11n D2.0)
0: no restriction
1: 1/4 £gs
2: 1/2 £gs
3: 1 £gs
4: 2 £gs
5: 4 £gs
6: 8 £gs
7: 16 £gs
27. HT_BW=value
value
0 20MHz
1 40MHz
28. HT_AutoBA=value
value
0 Disabled
1 Enabled
29. HT_AMSDU=value
value
0 Disabled
1 Enabled
30. HT_BAWinSize=value
value
1 ~ 64
31. HT_GI=value
value
0 long GI
1 short GI
32. HT_MCS=value
value
0 ~ 15
33: auto
33. HT_MIMOPSMode=value
value (based on 802.11n D2.0)
0 Static SM Power Save Mode
1 Dynamic SM Power Save Mode
2 Reserved
3 SM enabled
(not fully support yet)
MORE INFORMATION
=================================================================================
If you want for rt2860 driver to auto-load at boot time:
A) choose ra0 for first RT2860 WLAN card, ra1 for second RT2860 WLAN card, etc.
B) create(edit) 'ifcfg-ra0' file in /etc/sysconfig/network-scripts/,
edit( or add the line) in /etc/modules.conf:
alias ra0 rt2860sta
C) edit(create) the file /etc/sysconfig/network-scripts/ifcfg-ra0
DEVICE='ra0'
ONBOOT='yes'
NOTE:
if you use dhcp, add this line too .
BOOTPROTO='dhcp'
*D) To ease the Default Gateway setting,
add the line
GATEWAY=x.x.x.x
in /etc/sysconfig/network
en voila une bonne partie.
maintenant si il y aurais un pro pour m'expliquer la partie "build instruction" ca m'arrangerais bien
pour le reste j'y vois dejas plus clair donc devrais m'en sortir
merci d'avance.
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#2 Le 25/01/2008, à 15:29
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
Salut. Alors, pour pouvoir te répondre clairement, il faudrait que tu donnes la version du noyau que tu utilises, grà¢ce à la commande suivante :
uname -r -m
.
Ensuite je ne pourrais peut-être pas tout t'expliquer, mais déjà une bonne partie
Hors ligne
#3 Le 25/01/2008, à 15:31
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
2.6.22-14-generic i686
voila
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#4 Le 25/01/2008, à 15:36
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
Ok, alors c'est parti :
1> $tar -xvzf DPB_RT2860_Linux_STA_x.x.x.x.tgz
go to "./DPB_RT2860_Linux_STA_x.x.x.x" directory.
La première ligne, c'est pour décompresser l'archive téléchargée, si tu ne l'as pas déjà fais en graphique.
La deuxième t'indique de te déplacer vers le dossier décompressé, le code est donc :
cd /chemin/vers/le/dossier/nom_du_dossier
, o๠à priori le dossier s'appelle DPB_RT2860_Linux_STA_x.x.x.x, les x étant des chiffres dépendant de la version
Hors ligne
#5 Le 25/01/2008, à 15:38
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
jusque la j'avais compris
c'est aprés que ca coince
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#6 Le 25/01/2008, à 15:49
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
, je m'en doutais un peu, mais au cas oà¹...
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.
Donc maintenant, dans le dossier, tu dois trouver un fichier "makefile".
Tu l'ouvre avec un éditeur de texte quelconque, soit en mode graphique, soit par une commande du type
gedit /chemin/vers/dossier/DPB_RT2860_Linux_STA_x.x.x.x/makefile
Dans ce fichier, tu cherches la ligne "MODE =" et tu la complète comme indiquée, pour obtenir "MODE = STA".
Tu fais la même chose pour la ligne "TARGET =" => "TARGET = LINUX"
Pour la troisième ligne, c'est moins clair pour moi aussi . Apparemment, tu dois avoir une ligne avec "LINUX_SRC", sans doute au début du fichier, sans doute précédé par "#define", est là il faut lui indiquer le chemin vers les sources du noyau.
Hors ligne
#7 Le 25/01/2008, à 15:55
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
un bon copier coller eviteras la prise de tette je pensse
voici mon makefile :
RT2860_MODE = STA
TARGET = LINUX
RT2860_DIR = $(shell pwd)
#PLATFORM = 5VT
PLATFORM = PC
#PLATFORM = SIGMA
#PLATFORM = INIC
#PLATFORM = STAR
#PLATFORM = IXP
#PLATFORM = INF_TWINPASS
ifeq ($(PLATFORM),5VT)
LINUX_SRC = /opt/fvt_11N_SDK_0807/fvt131x_SDK_11n/linux-2.6.17
CROSS_COMPILE = /opt/crosstool/uClibc_v5te_le_gcc_4_1_1/bin/arm-linux-
endif
ifeq ($(PLATFORM),SIGMA)
LINUX_SRC = /root/sigma/smp86xx_kernel_source_2.7.172.0/linux-2.6.15
CROSS_COMPILE = /root/sigma/smp86xx_toolchain_2.7.172.0/build_mipsel_nofpu/staging_dir/bin/mipsel-linux-
endif
ifeq ($(PLATFORM),STAR)
LINUX_SRC = /opt/star/kernel/linux-2.4.27-star
CROSS_COMPILE = /opt/star/tools/arm-linux/bin/arm-linux-
endif
ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4.20-8
CROSS_COMPILE =
endif
ifeq ($(PLATFORM),IXP)
LINUX_SRC = /project/stable/Gmtek/snapgear-uclibc/linux-2.6.x
CROSS_COMPILE = arm-linux-
endif
ifeq ($(PLATFORM),INF_TWINPASS)
# Linux 2.6
#LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
LINUX_SRC = /project/stable/twinpass/release/2.0.1/source/kernel/opensource/linux-2.4.31/
CROSS_COMPILE = mips-linux-
endif
export RT2860_DIR RT2860_MODE LINUX_SRC CROSS_COMPILE PLATFORM
all: build_tools $(TARGET)
build_tools:
make -C tools
$(RT2860_DIR)/tools/bin2h
UCOS:
make -C os/ucos/ MODE=$(RT2860_MODE)
echo $(RT2860_MODE)
LINUX:
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
cp -f os/linux/Makefile.4 os/linux/Makefile
make -C os/linux/
ifeq ($(RT2860_MODE),AP)
cp -f $(RT2860_DIR)/os/linux/rt2860ap.o /tftpboot
else
cp -f $(RT2860_DIR)/os/linux/rt2860sta.o /tftpboot
endif
else
cp -f os/linux/Makefile.6 os/linux/Makefile
make V=1 -C $(LINUX_SRC) SUBDIRS=$(PWD)/os/linux modules
ifeq ($(RT2860_MODE),AP)
cp -f $(RT2860_DIR)/os/linux/rt2860ap.ko /tftpboot
else
cp -f $(RT2860_DIR)/os/linux/rt2860sta.ko /tftpboot
endif
endif
Dernière modification par akoirium (Le 25/01/2008, à 15:57)
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#8 Le 25/01/2008, à 16:04
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
Si, ça m'a l'air pas mal en ce qui concerne le noyau :
ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/$(shell uname -r)/build
Il va chercher dans lib/modules/ puis dans le répertoire qui doit être nommé selon la version de ton noyau, d'o๠le shell uname -r/
Voyons la suite. Je t'avouerai que ça se complique un peu, je suis pas sûr de pouvoir t'apporter une réponse.
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
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
Déjà , y a t'il un dossier "os" dans l'archive que tu as téléchargé ?
Dernière modification par herberts (Le 25/01/2008, à 16:05)
Hors ligne
#9 Le 25/01/2008, à 16:08
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
oui voila le fichier config.mk :
# Support 2860 QA ATE function
HAS_2860_QA=n
# Support LLTD function
HAS_LLTD=n
# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=n
# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
#Support Net interface block while Tx-Sw queue full
HAS_BLOCK_NET_IF=n
CC := $(CROSS_COMPILE)gcc
LD := $(CROSS_COMPILE)ld
WFLAGS := -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT -DLINUX -Wall -Wstrict-prototypes -Wno-trigraphs
ifeq ($(RT2860_MODE),STA)
WFLAGS += -DCONFIG_STA_SUPPORT -DDBG
ifeq ($(HAS_WPA_SUPPLICANT),y)
WFLAGS += -DWPA_SUPPLICANT_SUPPORT
endif
ifeq ($(HAS_NATIVE_WPA_SUPPLICANT_SUPPORT),y)
WFLAGS += -DNATIVE_WPA_SUPPLICANT_SUPPORT
endif
ifeq ($(HAS_ATE),y)
WFLAGS += -DRALINK_ATE
ifeq ($(HAS_2860_QA),y)
WFLAGS += -DRALINK_2860_QA
endif
endif
endif
# endif of ifeq ($(RT2860_MODE),STA)
ifeq ($(PLATFORM),5VT)
#WFLAGS += -DCONFIG_5VT_ENHANCE
endif
ifeq ($(HAS_BLOCK_NET_IF),y)
WFLAGS += -DBLOCK_NET_IF
endif
ifeq ($(HAS_DFS_SUPPORT),y)
WFLAGS += -DDFS_SUPPORT
endif
ifeq ($(HAS_LLTD),y)
WFLAGS += -DLLTD_SUPPORT
endif
ifeq ($(PLATFORM),IXP)
WFLAGS += -DBIG_ENDIAN
endif
ifeq ($(PLATFORM),INF_TWINPASS)
WFLAGS += -DBIG_ENDIAN -DINF_TWINPASS
endif
#kernel build options for 2.4
# move to Makefile outside LINUX_SRC := /opt/star/kernel/linux-2.4.27-star
ifeq ($(PLATFORM),STAR)
CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(RT2860_DIR)/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4 -mshort-load-bytes -msoft-float -Uarm -DMODULE -DMODVERSIONS -include $(LINUX_SRC)/include/linux/modversions.h $(WFLAGS)
export CFLAGS
endif
ifeq ($(PLATFORM),SIGMA)
CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(LINUX_SRC)/include/asm/gcc -I$(LINUX_SRC)/include/asm-mips/mach-tango2 -I$(LINUX_SRC)/include/asm-mips/mach-tango2 -DEM86XX_CHIP=EM86XX_CHIPID_TANGO2 -DEM86XX_REVISION=6 -I$(LINUX_SRC)/include/asm-mips/mach-generic -I$(RT2860_DIR)/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -pipe -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -DMODULE $(WFLAGS)
export CFLAGS
endif
ifeq ($(PLATFORM),5VT)
CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(RT2860_DIR)/include -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm926ej-s --param max-inline-insns-single=40000 -Uarm -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE $(WFLAGS)
export CFLAGS
endif
ifeq ($(PLATFORM),INF_TWINPASS)
CFLAGS := -D__KERNEL__ -DMODULE -I$(LINUX_SRC)/include -I$(RT2860_DIR)/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -march=4kc -mips32 -Wa,--trap -pipe -mlong-calls $(WFLAGS)
export CFLAGS
endif
ifeq ($(PLATFORM),PC)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
# Linux 2.4
CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(RT2860_DIR)/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include $(LINUX_SRC)/include/linux/modversions.h $(WFLAGS)
export CFLAGS
else
# Linux 2.6
EXTRA_CFLAGS := $(WFLAGS) -I$(RT2860_DIR)/include
endif
endif
ifeq ($(PLATFORM),IXP)
EXTRA_CFLAGS := -v $(WFLAGS) -I$(RT2860_DIR)/include -mbig-endian
endif
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#10 Le 25/01/2008, à 16:17
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
Bon, à vu de nez, du haut de ma faible expérience de compilation, je dirais que tu peux tenter sans toucher au GCC et LD, ainsi qu'au CFLAGS.
Ensuite je te conseille de le configurer pour network manager, c'est à dire mettre
'HAS_WPA_SUPPLICANT=y' et 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'
, c'est au début du fichier.
A moins que tu es un cryptage WPA, là il vaut peut être mieux choisir l'autre option, mais sans certitude.
Je vais essayer de ramener quelqu'un qui s'y connait un peu plus.
Hors ligne
#11 Le 25/01/2008, à 16:21
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
merci...
je vais dejas faire ca...
je viens de tenter un make sans rien toucher et ca s'est deroulé sans pb
j'ai egallement copier le fichier rt2860sma.dat la ou il faut mais j'ai le droit a ca quand je charge le driver :
akoirium@Akoiserver:~/2007_0821_RT2860_Linux_STA_v1.3.0.0$ /sbin/insmod rt2860sta.ko
insmod: can't read 'rt2860sta.ko': No such file or directory
akoirium@Akoiserver:~/2007_0821_RT2860_Linux_STA_v1.3.0.0$
c'est peut etre car ma carte n'est pas encore branchée dans le pc ?...
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#12 Le 25/01/2008, à 16:25
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
oups j'ai oublier de faire le make avec sudo
autant pour moi
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#13 Le 25/01/2008, à 16:28
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
Essaye ça, mais en général le make tu peux le faire sans sudo, c'est quand tu fais un make install qu'il le faut
Hors ligne
#14 Le 25/01/2008, à 16:30
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
ben j'avais bien un permission non permise donc oki avec le sudo mais tjs l'erreur au chargement
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#15 Le 25/01/2008, à 16:34
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
Je vais essayer de me pencher plus en profondeur dans le makefile, mais je te promet rien, on atteint les limites de mes connaissances
Hors ligne
#16 Le 25/01/2008, à 17:01
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
Bon, ben je vois pas, désolé, et bonne chance alors. Si j'ai une illumination subite, je repasserai
Hors ligne
#17 Le 25/01/2008, à 17:04
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
bon bhas merci quand meme
enfin je desespére pas, je finirais bien par y arriver
je pensse qu'il doit y avoir des chemin a modifier dans le makefile et / ou dans config.mk pour ubuntu...
reste a savoir lequels
Dernière modification par akoirium (Le 25/01/2008, à 17:14)
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#18 Le 25/01/2008, à 17:09
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
oui, je n'en doute pas, moi j'ai bataillé pendant deux jours avec mon wifi. carte reconnu directement, je vois les réseaux, il y a du trafic, mais impossible d'ouvrir une connexion internet. c'est le driver qui était buggé, j'aurais pu chercher longtemp dans les paramètre !
En ce qui concerne ton problème, as tu essayé avec ndiswrapper sinon ?
Hors ligne
#19 Le 25/01/2008, à 17:12
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
non j'ai pas tester ... jamais en fait
enfin je prefere m'acharner sur les sources plutot qu'utiliser les driv-bug windaube
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#20 Le 25/01/2008, à 17:16
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
ben finalement moi j'ai avec ça pour ma carte wifi, c'est super simple à utiliser, et 5 minutes après j'avais le réseau. Si tu en a marre de batailler à un moment, c'est une solution qui peut se révéler utile
Hors ligne
#21 Le 25/01/2008, à 17:18
- lebossejames
Re : besoin d'aide pour traduction et compilation driver chipset ralink
bonjour,
vérifie si tu as un fichier se nommant : rt2860sta.ko
je pense plutot que c'est un ".o"
Hors ligne
#22 Le 25/01/2008, à 17:21
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
bhen le truc c que ca serais une carte wifi quelconque ca m'irais bien...
mais la c'est du 802.11n et c'est en fait 3 carte 100mbs en une seulle.
et comme windaube me la detecte comme une seulle et unique de 300mbs je suis pas que ca fonctionne comme je le veut...
avec les source je suis senser me retrouver avec 3 carte distincte que je peut configurer comme bon me semble
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#23 Le 25/01/2008, à 17:24
- herberts
Re : besoin d'aide pour traduction et compilation driver chipset ralink
bonjour,
vérifie si tu as un fichier se nommant : rt2860sta.ko
je pense plutot que c'est un ".o"
Oui tiens, c'est peut être juste ça.
Et sinon, vu comme ça, je comprend que tu préfère batailler avec les sources
Hors ligne
#24 Le 25/01/2008, à 17:25
- akoirium
Re : besoin d'aide pour traduction et compilation driver chipset ralink
bonjour,
vérifie si tu as un fichier se nommant : rt2860sta.ko
je pense plutot que c'est un ".o"
meme soucis avec /sbin/insmod RT2860STA.o
"Software is like sex ... It's better when it's free !..." : Linus Torvalds
Hors ligne
#25 Le 25/01/2008, à 17:25
- lebossejames
Re : besoin d'aide pour traduction et compilation driver chipset ralink
fichier .ko jamais entendu les fichier ".o" sont les fichiers exécutables comme les ".exe" sous windows !!
Hors ligne