IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Debian Discussion :

Compilation d'un driver pour dongle wlan


Sujet :

Debian

  1. #1
    Futur Membre du Club
    Inscrit en
    Mars 2010
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Mars 2010
    Messages : 16
    Points : 5
    Points
    5
    Par défaut Compilation d'un driver pour dongle wlan
    bonjour à tous,

    config debian lenny 5.0.3 sur pc

    je suis tout nouveau sur linux. je voudrais compiler un driver pour un dongle wlan à partir d'un code source en C, mais je n'y arrive pas. il y a la racine du répertoire les fichiers suivants :

    config
    Makefile
    autoconf.h
    clean (script shell)
    et une ribambelle de sous répertoire avec du code source.

    le fichier readme demande de commencer par makefile. mais je n'arrive pas a le lancer:

    #make Makefile
    make: *** Pas de règle pour fabriquer la cible "makefile". Arrêt.

    #make config
    make: Rien à faire pour "config"

    la littérature du web sur le sujet est beaucoup trop riche pour être exploitable par un non initié.
    quelqu'un peut-il me suggérer un démarche à suivre ou un site pour néophyte.

    merci à tous

  2. #2
    Membre émérite
    Avatar de supersnail
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    1 719
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 719
    Points : 2 793
    Points
    2 793
    Par défaut
    Bonjour,

    Tu as juste à taper la commande

  3. #3
    Rédacteur

    Avatar de ok.Idriss
    Homme Profil pro
    IS Consultant
    Inscrit en
    Février 2009
    Messages
    5 220
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 33
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : IS Consultant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2009
    Messages : 5 220
    Points : 19 450
    Points
    19 450
    Par défaut
    Salut.

    Ton fichier Makefile est un fichier décomposée en cibles de fabrications (ces cibles sont des blocs contenant des commandes, de compilation notamment).

    Pour fabriquer une cible, il faut faire (la ou est placé le Makefile) :

    (tu trouvera le nom des cibles dans le Makefile).

    Pour exécuter la première cible (dont les autres sont en général dépendances), il faut tout simplement faire :

    C'est ce que tu doit faire ici comme dit plus haut

    Cordialement,
    Idriss

  4. #4
    Futur Membre du Club
    Inscrit en
    Mars 2010
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Mars 2010
    Messages : 16
    Points : 5
    Points
    5
    Par défaut
    j'ai déjà essayer make seul voici le résultat :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    LocalHost:/home/user101/driver# make
    make ARCH=i386 CROSS_COMPILE= -C /lib/modules/2.6.26-2-686/build M=/home/user101/driver  modules
    make: *** /lib/modules/2.6.26-2-686/build: Aucun fichier ou répertoire de ce type. Arrêt.
    make: *** [modules] Erreur 2
    mais je n'y comprend rien..

  5. #5
    Futur Membre du Club
    Inscrit en
    Mars 2010
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Mars 2010
    Messages : 16
    Points : 5
    Points
    5
    Par défaut
    voici le fichier Makefile

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    EXTRA_CFLAGS += -O1 -Wno-unused-variable -Wno-unused-value -Wno-unused-label -Wno-unused-parameter -Wno-uninitialized
    EXTRA_CFLAGS += -I$(src)/include  -Wno-unused -Wno-unused-function
     
    CONFIG_BUILT_IN = n
     
    export TOPDIR := $(PWD)
     
    ifeq ($(CONFIG_BUILT_IN), y)
    include $(src)/config
    else
    include $(TOPDIR)/config
    endif
     
    ifeq ($(CONFIG_RTL8711), y)
    RTL871X = rtl8711
    MODULE_NAME = 8711
    endif
     
    ifeq ($(CONFIG_RTL8712), y)
     
    RTL871X = rtl8712
     
    ifeq ($(CONFIG_SDIO_HCI), y)
    MODULE_NAME = 8712s
    endif
    ifeq ($(CONFIG_USB_HCI), y)
    MODULE_NAME = 8712u
    endif
     
    endif
     
    ifeq ($(CONFIG_SDIO_HCI), y)
     
     
    _OS_INTFS_FILES := os_intf/osdep_service.o \
                        os_intf/linux/os_intfs.o \
                        os_intf/osdep_sdio_intf.o \
    		    		os_intf/linux/sdio_intf.o \
     
    _HAL_INTFS_FILES := hal/$(RTL871X)/hal_init.o \
    		    hal/$(RTL871X)/sdio_halinit.o \
    		    hal/$(RTL871X)/sdio_ops.o \
    		    hal/$(RTL871X)/sdio_ops_linux.o    	
     
    endif
     
     
    ifeq ($(CONFIG_USB_HCI), y)
     
    ifeq ($(CONFIG_BUILT_IN), y)
    $(shell cp $(src)/autoconf_$(RTL871X)_usb_linux.h $(src)/include/autoconf.h)
    else
    $(shell cp $(PWD)/autoconf_$(RTL871X)_usb_linux.h $(PWD)/include/autoconf.h)
    endif
     
    _OS_INTFS_FILES := os_intf/osdep_service.o \
    				   os_intf/linux/os_intfs.o \
    				   os_intf/linux/usb_intf.o \
     
     
    _HAL_INTFS_FILES := hal/$(RTL871X)/hal_init.o \
    					hal/$(RTL871X)/usb_ops.o \
    					hal/$(RTL871X)/usb_ops_linux.o \
    					hal/$(RTL871X)/usb_halinit.o \
     
    endif
     
     
    PWD := $(shell pwd)
     
     
    ifeq ($(CONFIG_PLATFORM_I386_PC), y)
    EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
    SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
    ARCH ?= $(SUBARCH)
    CROSS_COMPILE ?=
    KVER  := $(shell uname -r)
    KSRC := /lib/modules/$(KVER)/build
    MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
    INSTALL_PREFIX :=
    endif
     
    ifeq ($(CONFIG_PLATFORM_ARM_S3C), y)
    EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
    ARCH := arm
    CROSS_COMPILE := arm-linux-
    KVER  := 2.6.24.7_$(ARCH)
    KSRC := /usr/src/kernels/linux-$(KVER)
    endif
     
    ifeq ($(CONFIG_PLATFORM_RTD2880B), y)
    EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN -DCONFIG_PLATFORM_RTD2880B
    ARCH:=
    CROSS_COMPILE:=
    KVER:=
    KSRC:=
    endif
     
    ifeq ($(CONFIG_PLATFORM_MIPS_RMI), y)
    EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
    ARCH:=mips
    CROSS_COMPILE:=mipsisa32r2-uclibc-
    KVER:= 
    KSRC:= /root/work/kernel_realtek
    endif
     
    ifeq ($(CONFIG_PLATFORM_DMP), y)
    EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DRTK_DMP_PLATFORM
    ARCH:=mips
    CROSS_COMPILE:=mipsel-linux-
    KVER:= 
    KSRC:= /root/Desktop/Linux_mars/linux-2.6.12
    endif
     
    ifeq ($(CONFIG_PLATFORM_MIPS_PLM), y)
    EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN
    ARCH:=mips
    CROSS_COMPILE:=mipsisa32r2-uclibc-
    KVER:= 
    KSRC:= /root/work/kernel_realtek
    endif
     
    ifeq ($(CONFIG_PLATFORM_MSTAR389), y)
    EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MSTAR389
    ARCH:=mips
    CROSS_COMPILE:= mips-linux-gnu-
    KVER:= 2.6.28.10
    KSRC:= /home/mstar/mstar_linux/2.6.28.9/
    endif
     
    ifneq ($(KERNELRELEASE),)
     
    ifeq ($(CONFIG_BUILT_IN), y)
    obj-y := $(MODULE_NAME).o
    else
    obj-m := $(MODULE_NAME).o
    endif
     
    $(MODULE_NAME)-y += cmd/rtl871x_cmd.o cmd/$(RTL871X)_cmd.o
     
    $(MODULE_NAME)-y += crypto/rtl871x_security.o 
    $(MODULE_NAME)-y += debug/rtl871x_debug.o 
     
    $(MODULE_NAME)-y += eeprom/rtl871x_eeprom.o efuse/rtl8712_efuse.o
     
    $(MODULE_NAME)-y += $(_HAL_INTFS_FILES)
     
    $(MODULE_NAME)-y += io/rtl871x_io.o \
    			io/$(RTL871X)_io.o
     
    $(MODULE_NAME)-y += ioctl/rtl871x_ioctl_query.o \
             			ioctl/rtl871x_ioctl_set.o \	   							
     
    ioctl/rtl871x_ioctl_linux.o \
    					ioctl/rtl871x_ioctl_rtl.o
     
    $(MODULE_NAME)-y += led/rtl8712_led.o
     
    $(MODULE_NAME)-y += mlme/ieee80211.o mlme/rtl871x_mlme.o				
    $(MODULE_NAME)-$(CONFIG_MLME_EXT) += mlme/rtl871x_mlme_ext.o mlme/rtl871x_wlan_mlme.o mlme/rtl871x_wlan_sme.o
     
    $(MODULE_NAME)-$(CONFIG_MP_INCLUDED) += mp/rtl871x_mp.o \
    					mp/rtl871x_mp_ioctl.o
     
    $(MODULE_NAME)-y += os_dep/linux/io_linux.o \
    					os_dep/linux/xmit_linux.o \
    					os_dep/linux/cmd_linux.o \
    					os_dep/linux/mlme_linux.o \								
     
    os_dep/linux/recv_linux.o
     
    $(MODULE_NAME)-y += $(_OS_INTFS_FILES)
     
    $(MODULE_NAME)-y += pwrctrl/rtl871x_pwrctrl.o
     
    $(MODULE_NAME)-y += recv/rtl871x_recv.o recv/$(RTL871X)_recv.o
     
    $(MODULE_NAME)-y += rf/rtl871x_rf.o rf/$(RTL871X)_rf.o
    $(MODULE_NAME)-y += sta_mgt/rtl871x_sta_mgt.o
     
    $(MODULE_NAME)-y += xmit/rtl871x_xmit.o xmit/$(RTL871X)_xmit.o
     
    else
     
    all: modules
     
    modules:
    	$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(PWD)  modules
     
    install:
    	install -p -m 644 $(MODULE_NAME).ko  $(MODDESTDIR)
    	/sbin/depmod -a ${KVER}
     
    uninstall:
    	rm -f $(MODDESTDIR)/$(MODULE_NAME).ko
    	/sbin/depmod -a ${KVER}
     
     
    config_r:
    	@echo "make config"
    	/bin/bash script/Configure script/config.in
     
    .PHONY: modules clean
     
    clean:
    	rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
    	rm .tmp_versions -fr ; rm Module.symvers -fr
    	cd cmd ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd crypto ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd debug ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd eeprom ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd hal/$(RTL871X) ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd io ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd ioctl ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd mlme ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd mp ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd os_intf ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd os_intf/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    	cd pwrctrl ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd recv ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd rf ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd sta_mgt ; rm -fr .mod.c *.mod *.o .*.cmd *.ko 
    	cd xmit; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
    	cd efuse; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
     
    endif
    et le fichier config

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
     
    #
    # Automatically generated make config: don't edit
    #
     
    CONFIG_RTL8711			=	n
    CONFIG_RTL8712			=	y
     
     
    CONFIG_USB_HCI			=	y
    CONFIG_SDIO_HCI			= 	n
     
     
    CONFIG_MP_INCLUDED		=	y
     
    CONFIG_PLATFORM_I386_PC		= 	y
    CONFIG_PLATFORM_ARM_S3C		= 	n
    CONFIG_PLATFORM_ARM_PXA		= 	n
    CONFIG_PLATFORM_MIPS_RMI	= 	n
    CONFIG_PLATFORM_MIPS_PLM	= 	n
    CONFIG_PLATFORM_RTD2880B	=	n
    CONFIG_PLATFORM_MSTAR389	=	n
     
    CONFIG_MLME_EXT			= 	n
    CONFIG_DRVEXT_MODULE	= n

  6. #6
    Membre émérite
    Avatar de supersnail
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    1 719
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 719
    Points : 2 793
    Points
    2 793
    Par défaut
    Bonjour,

    D'après le message d'erreur,tu n'aurais pas les headers du kernel linux (nécessaires à la compilation de drivers).
    Il faudrait donc que tu télécharges ceux de ton noyau

  7. #7
    Futur Membre du Club
    Inscrit en
    Mars 2010
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Mars 2010
    Messages : 16
    Points : 5
    Points
    5
    Par défaut
    salut,
    les headers de mon noyau ? heu... comment je les trouve ? ou je les installe?

    ceci dit il y un header sur la racine du répertoire du driver : autoconf_rtl8712_usb_linux.h
    en voici le contenu :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    /*
     * Automatically generated C config: don't edit
     */
    #define AUTOCONF_INCLUDED
    #define RTL871X_MODULE_NAME "RTL8712U-BGN"
     
    //#define CONFIG_DEBUG_RTL871X 1
     
    #define CONFIG_USB_HCI	1
    #undef  CONFIG_SDIO_HCI
     
    #undef CONFIG_RTL8711
    #define  CONFIG_RTL8712 1
    #undef  CONFIG_RTL8716
     
     
     
    //#define CONFIG_LITTLE_ENDIAN 1
    //#undef CONFIG_BIG_ENDIAN
     
    #undef PLATFORM_WINDOWS
    #undef PLATFORM_OS_XP 
    #undef PLATFORM_OS_CE
     
     
    #define PLATFORM_LINUX 1
     
    #define CONFIG_PWRCTRL	1
    //#define CONFIG_H2CLBK 1
     
    #define CONFIG_MP_INCLUDED
     
    //#undef CONFIG_EMBEDDED_FWIMG
    #define CONFIG_EMBEDDED_FWIMG 1
     
    #define CONFIG_R871X_TEST 1
     
     
    //#define CONFIG_DRVEXT_MODULE 1
     
     
    #ifdef CONFIG_RTL8712
     
    	#define CONFIG_DEBUG_RTL8712 1	
     
    	#define CONFIG_XMIT_ENQUEUE
     
    	//#define CONFIG_XMIT_DIRECT
     
    	#define CONFIG_80211N_HT 1
     
            #define CONFIG_RECV_REORDERING_CTRL 1	
     
    	#ifdef PLATFORM_LINUX
     
    		#define CONFIG_XMIT_BH 1
    		#define CONFIG_SKB_COPY 1
     
    		#define CONFIG_RECV_TASKLET 1		
     
    		#ifndef CONFIG_RECV_TASKLET
    		#define CONFIG_RECV_BH 1
    		#else			
    			#define CONFIG_PREALLOC_RECV_SKB 1
    		#endif
     
    	#endif
     
    	#ifdef CONFIG_R871X_TEST
     
    		#define CONFIG_R8712_TEST 1	
     
                  //#define CONFIG_MLME_EXT 1
    	       //#define CONFIG_AP_MODE 1
                 //#define CONFIG_HOSTAPD_MODE 1	
     
                  #ifdef CONFIG_MLME_EXT
                    #define CONFIG_EVENT_THREAD_MODE 1
                  #endif  
     
                  //#define CONFIG_R8712_TEST_ASTA 1
     
                  #define CONFIG_R8712_TEST_BSTA 1			  
     
    	#endif
     
    	#define CONFIG_RTL8712_TCP_CSUM_OFFLOAD_RX
    	#define CONFIG_REDUCE_USB_TX_INT
     
    #endif
     
    #ifdef CONFIG_DRVEXT_MODULE
     
    	#define INTERNAL_MD5
    	#define INTERNAL_MD4
    	#define INTERNAL_DES
    	#define INTERNAL_SHA1
    	#define CONFIG_CRYPTO_INTERNAL
     
     
    	#define CONFIG_INTERNAL_AES
    	#define CONFIG_INTERNAL_SHA1
    	#define CONFIG_INTERNAL_MD5
    	#define CONFIG_INTERNAL_SHA256
     
    	#define CONFIG_INTERNAL_LIBTOMMATH
     
    	#define OPENSSL_NO_FP_API
    	#define OPENSSL_NO_ENGINE
     
     
     
    	#define CONFIG_NO_STDOUT_DEBUG 1
     
    	#define CONFIG_ETH_INTF	1
     
    	//#define CONFIG_WSC_CRYPTO_TEST	1
    	#ifdef CONFIG_WSC_CRYPTO_TEST
    	//#define CONFIG_WSC_CRYPTO_DH_TEST 1
    	//#define CONFIG_WSC_CRYPTO_SHA256_TEST 1
    	//#define CONFIG_WSC_CRYPTO_AES128_TEST 1
    	#endif
     
     
    	//#define CONFIG_DRVEXT_MODULE_WSC 1
     
    	#ifdef CONFIG_DRVEXT_MODULE_WSC
    		//#define CONFIG_WSCCRYPTO_PREALLOC  1
    	#endif
     
    	//#define CONFIG_WSC_DEBUG 1  //for temmprarily setting debug
    	#ifdef CONFIG_WSC_DEBUG
    		#define allowed_ssid "802.11g-SSID"
    	#endif
     
     
    	#ifdef CONFIG_DEBUG_RTL871X
     
    		#define CONFIG_DEBUG_WSC 1
    		//#define CONFIG_DUMP_WSC_KEY	1
     
     
    		#define CONFIG_DEBUG_WPA 1
    		//#define CONFIG_DUMP_WPA_KEY 1
     
    	#endif	
     
    #endif

  8. #8
    Futur Membre du Club
    Inscrit en
    Mars 2010
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Mars 2010
    Messages : 16
    Points : 5
    Points
    5
    Par défaut
    et voici le fichier readme joint au driver :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
     
    ===============================================================================
    				Software Package - Component 
    ===============================================================================
    	1. readme.txt
     
    	2. Release Notes Document
     
    	3. driver source code
     
    		3.1 Makefile - to build the modules	   
     
    		3.2 Script and configuration for DHCP:
     	   "wlan0dhcp"
     	   "ifcfg-wlan0"
     
    		3.3 Example of supplicant configuration file:
    			"wpa1.conf"
     
    		3.4 Script to run wpa_supplicant
    			"runwpa"
     
    	4. wpa_supplicant-0.6.9.tar.gz - the tool help the wlan network to communicate under the 
    			protection of WPAPSK mechanism (WPA/WPA2)
     
    	5. wpa_supplicant-0.6.9_wps_patch.tar.gz - for wps patch
     
    ==============================================================================================
    			User Guide(1) - connecting wireless networking using "Network Manager" GUI utility
    ==============================================================================================
    			(1) Network Manager is a utility attempts to make use of wireless networking easy.
     
    			(2) Notes: if you want to use the following command-line method to connect wireless networking,
    									please disable the "Network Manager", because "Network Manager" will conflict with method of command line .
     
     
     
    ===============================================================================
    				User Guide(2) - Set wireless lan MIBs in Command Line
    ===============================================================================
    This driver uses Wireless Extension as an interface allowing you to set
    Wireless LAN specific parameters.
     
    Current driver supports "iwlist" to show the device status of nic
            iwlist wlan0 [parameters]
    where
            parameter explaination      	[parameters]    
            -----------------------     	-------------   
           Show available chan and freq	freq / channel  
            Show and Scan BSS and IBSS 	scan[ning]          
            Show supported bit-rate         rate / bit[rate]        
     
    For example:
    	iwlist wlan0 channel
    	iwlist wlan0 scan
    	iwlist wlan0 rate
     
    Driver also supports "iwconfig", manipulate driver private ioctls, to set
    MIBs.
    	iwconfig wlan0 [parameters] [val]
    where
    	parameter explaination      [parameters]        [val] constraints
            -----------------------     -------------        ------------------
            Connect to AP by address    ap              	[mac_addr]
            Set the essid, join (I)BSS  essid             	[essid]
            Set operation mode          mode                {Managed|Ad-hoc}
            Set keys and security mode  key/enc[ryption]    {N|open|restricted|off}
     
    For example:
    	iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
    	iwconfig wlan0 essid "ap_name"
    	iwconfig wlan0 mode Ad-hoc
    	iwconfig wlan0 essid "name" mode Ad-hoc
    	iwconfig wlan0 key 0123456789 [2] open
    	iwconfig wlan0 key off
    	iwconfig wlan0 key restricted [3] 0123456789
            Note: Better to set these MIBS without GUI such as NetworkManager and be sure that our
                  nic has been brought up before these settings. WEP key index 2-4 is not supportted by
                  NetworkManager.
     
    ===============================================================================
    				Getting IP address
    ===============================================================================
    After start up the nic, the network needs to obtain an IP address before
    transmit/receive data.
    This can be done by setting the static IP via "ifconfig wlan0 IP_ADDRESS"
    command, or using DHCP.
    If using DHCP, setting steps is as below:
    	(1)connect to an AP via "iwconfig" settings
    		iwconfig wlan0 essid [name]	or
    		iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
     
    	(2)run the script which run the dhclient
    		./wlan0dhcp
               or 
    		dhcpcd wlan0
                  	(Some network admins require that you use the
                  	hostname and domainname provided by the DHCP server.
                  	In that case, use 
    		dhcpcd -HD wlan0)
     
     
    ===============================================================================
    			WPAPSK/WPA2PSK - using wpa_supplicant
    ===============================================================================
    	Wpa_supplicant helps to secure wireless connection with the protection of 
    WPAPSK/WPA2PSK mechanism. 
     
    	If the version of Wireless Extension in your system is equal or larger than 18, 
    WEXT driver interface is recommended. Otherwise, IPW driver interface is advised.  
    	Note: Wireless Extension is defined us "#define WIRELESS_EXT" in Kernel
    	Note: To check the version of wireless extension, please type "iwconfig -v"
     
     
     	If IPW driver interface is used, it us suggested to follow the steps from 1 to 6. 
    If wpa_supplicant has been installed in your system, only steps 5 and 6 are required 
    to be executed for WEXT driver interface.
     
    	To see detailed description for driver interface and wpa_supplicant, please type
    "man wpa_supplicant".  
     
    	(1)Download latetest source code for wpa supplicant or use wpa_supplicant-0.6.9 
    	   attached in this package. (It is suggested to use default package contained
               in the distribution because there should less compilation issue.)
     
    	   Unpack source code of WPA supplicant:
     
    	  tar -zxvf wpa_supplicant-0.6.9.tar.gz (e.g.) 
    	  cd wpa_supplicant-0.6.9
     
    	(2)Create .config file:
    	  cp defconfig .config
     
    	(3)Edit .config file, uncomment the following line if ipw driver interface 
    	   will be applied:
    	  #CONFIG_DRIVER_IPW=y.
     
    	(4)Build and install WPA supplicant:
    	  make
    	  cp wpa_cli wpa_supplicant /usr/local/bin	
     
    	NOTE:
    	 1. If make error for lack of <include/md5.h>, install the openssl lib(two ways):
    	  (1) Install the openssl lib from corresponding installation disc:
    	      Fedora Core 2/3/4/5(openssl-0.9.71x-xx), 
    	      Mandrake10.2/Mandriva10.2(openssl-0.9.7x-xmdk),
    	      Debian 3.1(libssl-dev), Suse 9.3/10.0/10.1(openssl_devl), 
    	      Gentoo(dev-libs/openssl), etc.
    	  (2) Download the openssl open source package from www.openssl.org, build and 
    	      install it.
    	 2. If make errors happen in RedHat(and also Fedora Core) for kssl.h,
    please add lines below into Makefile
    	      CPPFLAGS+=-I/usr/kerboros/include
     
    	(5)Edit wpa_supplicant.conf to set up SSID and its passphrase.
    	  For example, the following setting in "wpa1.conf" means SSID 
              to join is "BufAG54_Ch6" and its passphrase is "87654321".
     
    	   Example 1: Configuration for WPA-PWK
    	  network={
    			ssid="BufAG54_Ch6"
    			#scan_ssid=1 //see note 3
    			proto=WPA
    			key_mgmt=WPA-PSK
    			pairwise=CCMP TKIP
    			group=CCMP TKIP WEP104 WEP40
    			psk="87654321"
    			priority=2
    		  }
     
    	    Example 2: Configuration for LEAP
    	    network={
    			ssid="BufAG54_Ch6"
    			key_mgmt=IEEE8021X
    			group=WEP40 WEP104
    			eap=LEAP
    			identity="user1"
    			password="1111"
    		  }
    	    Example 3: Linking to hidden ssid given AP's security policy exactly.(see note 3 below)
                ap_scan=2
    	    network={
    		ssid="Hidden_ssid"
    		proto=WPA
    		key_mgmt=WPA-PSK
    		pairwise=CCMP
    		group=CCMP
    		psk="12345678"
    	  	}
     
    	    Example 4: Linking to ad-hoc (see note 4 below)
    	    ap_scan=2
    	    network={
    		ssid="Ad-hoc"
                    mode=1
    		proto=WPA
    		key_mgmt=WPA-NONE
    		pairwise=NONE
    		group=TKIP
    		psk="12345678"
    		}
    	Note: 1. proto=WPA for WPA, proto=RSN for WPA2. 
    	      2. If user needs to connect an AP with WPA or WPA2 mixed mode, it is suggested 
    		 to set the cipher of pairwise and group to both CCMP and TKIP unless you 
    		 know exactly which cipher type AP is configured.
    	      3. When connecting to hidden ssid, explicit security policy should be given with 
    		 ap_scan=2 being setting.
    	      4. It is suggested setting ap_scan to 2 and mode to 1 when linking to or creating an ad-hoc. Group and pairwise
    		 cipher type should also be explicit, always with group setting to TKIP or CCMP and pairwise setting
    		 to NONE. Lower version wpa_supplicant may not allow setting group to CCMP with pairwise setting to NONE.
    		 So if any problem, you may try to set both group and pairwise to CCMP, leaving other setting unchanged, when
    	         connecting to an CCMP-encrypted ad-hoc.
    	      5. More config setting option, please refer to wpa_supplicant.conf in wpa_supplicant.tar.gz that we provide.
     
    	(6)Execute WPA supplicant (Assume driver and related modules had been
               loaded):
               ./runwpa
     
               Note: The script runwpa will check Wireless Extension version automatically.
                     If the version of Wireless Extension is equal or larger than 18, the
                    option of "-D wext" is selected. If the version of Wireless extension
                     is less than 18, the option of "-D ipw" is selected.
     
    ===============================================================================
    			WPS - PIN & PBC methods
    ===============================================================================
     
    		(*) please see the "README-WPS" file in the package "wpa_supplicant-0.6.9.tar.gz"
    				to perform the WPS function.
     
    ===============================================================================
    			Power Saving Mode
    ===============================================================================
     
    		(1) in order to enter PS Mode, you need to add the parameter of "power_mgnt=1" when executing "insmod 8712u.ko" :
    		 		~#insmod 8712u.ko power_mgnt=1
    		 		or
    		 		~#insmod 8712u.ko power_mgnt=2
     
    		(2) Notes: 
    				power_mgnt=0 ;//default, disable PS
    		    power_mgnt=1 ;//enable PS, MIN_PS Mode
    		    power_mgnt=2 ;//enable PS, MAX_PS Mode

  9. #9
    Membre éprouvé Avatar de orfix
    Homme Profil pro
    Inscrit en
    Avril 2007
    Messages
    707
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Maroc

    Informations professionnelles :
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Avril 2007
    Messages : 707
    Points : 1 132
    Points
    1 132
    Par défaut
    Citation Envoyé par debianiste Voir le message
    les headers de mon noyau ? heu... comment je les trouve ? ou je les installe?
    comme suit:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    sudo aptitude install linux-headers-`uname -r`
    Je conseillerais aussi un :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    sudo aptitude install build-essential

  10. #10
    Futur Membre du Club
    Inscrit en
    Mars 2010
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Mars 2010
    Messages : 16
    Points : 5
    Points
    5
    Par défaut
    j'ai lancé les deux commande :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    sudo aptitude install linux-headers-`uname -r`
    sudo aptitude install build-essential
    mais tout était déjà installé donc au lancement de make, même résultat !

  11. #11
    Futur Membre du Club
    Inscrit en
    Mars 2010
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Mars 2010
    Messages : 16
    Points : 5
    Points
    5
    Par défaut
    j'ai essayé encore aujourd'hui.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    aptitude install linux-headers-`uname -r`
    en fait il y a une ligne a laquelle je n'avais pas fait attention, on me demande de choisir la version du kernel. et donc ça a fonctionné avec :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    aptitude install linux-headers-2.6.26-2-686 `uname -r`
    un grand merci à
    ssmario2,
    supersnail,
    ok.Idriss

    pour leur réponses.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. compilation et utilisation d'un driver pour dalle tactile
    Par fredppp dans le forum Administration système
    Réponses: 0
    Dernier message: 22/11/2010, 17h32
  2. [systeme]:compiler un driver pour plusieurs nouyaux
    Par anti-conformiste dans le forum Administration système
    Réponses: 3
    Dernier message: 14/08/2007, 14h13
  3. [UBUNTU] Recherche le driver pour le dongle Wifi
    Par Orian dans le forum Ubuntu
    Réponses: 1
    Dernier message: 14/12/2006, 22h50
  4. Problème d'installation de driver pour une carte réseaux
    Par black is beautiful dans le forum Matériel
    Réponses: 3
    Dernier message: 19/07/2004, 21h33
  5. [Compilation] A quel moment pour une application ?
    Par Rick1602 dans le forum Eclipse Java
    Réponses: 2
    Dernier message: 04/03/2004, 20h36

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo