conf o driver rtl8191Seva do meu note

1. conf o driver rtl8191Seva do meu note

andre pereira teles
johnnyblayzer

(usa Debian)

Enviado em 13/09/2012 - 00:18h

bem pessoal sou iniciante no mundo do linux e estou querendo aprender esse novo mundo como os problemas surgem para serem resolvidos então ja tenho um e preciso que alguém me ajunde.
bem eu tenho um notebook g42-245hp e instalei o debian squeeze mas ele não reconheceu minha placa wirelles não detecta nenhuma rede,então a algum tempo eu testei o debian weenzy e deu o mesmo problema mas eu instalei os headers do linux o gcc eo make e fiz todos os passos e consegui abilitar minha placa wirelles mas infelizmente eu passei para o squeeze e me deparei com o mesmo erro mas quando eu vou compilar o driver ele da o seguinte erro:

assim o driver da minha placa e o rtl8191Seva..


root@server:/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011# make
make -C /lib/modules/2.6.32-5-amd64/build M=/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011 modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.32-5-amd64'
CC [M] /home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.o
In file included from /home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:32:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/wifi.h: In function ‘rtl_find_sta’:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/wifi.h:2094: warning: passing argument 1 of ‘ieee80211_find_sta’ from incompatible pointer type
/usr/src/linux-headers-2.6.32-5-common/include/net/mac80211.h:2091: note: expected ‘struct ieee80211_hw *’ but argument is of type ‘struct ieee80211_vif *’
In file included from /home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:34:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.h: At top level:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.h:143: warning: ‘enum ieee80211_smps_mode’ declared inside parameter list
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.h:143: warning: its scope is only this definition or declaration, which is probably not what you want
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c: In function ‘_rtl_init_mac80211’:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:322: error: ‘IEEE80211_HW_CONNECTION_MONITOR’ undeclared (first use in this function)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:322: error: (Each undeclared identifier is reported only once
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:322: error: for each function it appears in.)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c: In function ‘rtl_tx_agg_start’:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:991: warning: passing argument 1 of ‘ieee80211_start_tx_ba_cb_irqsafe’ from incompatible pointer type
/usr/src/linux-headers-2.6.32-5-common/include/net/mac80211.h:2038: note: expected ‘struct ieee80211_hw *’ but argument is of type ‘struct ieee80211_vif *’
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c: In function ‘rtl_tx_agg_stop’:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1020: warning: passing argument 1 of ‘ieee80211_stop_tx_ba_cb_irqsafe’ from incompatible pointer type
/usr/src/linux-headers-2.6.32-5-common/include/net/mac80211.h:2079: note: expected ‘struct ieee80211_hw *’ but argument is of type ‘struct ieee80211_vif *’
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c: In function ‘rtl_watchdog_wq_callback’:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1274: error: implicit declaration of function ‘ieee80211_connection_loss’
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c: At top level:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1332: warning: ‘enum ieee80211_smps_mode’ declared inside parameter list
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1332: error: parameter 2 (‘smps’) has incomplete type
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c: In function ‘rtl_make_smps_action’:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1352: error: ‘WLAN_HT_ACTION_SMPS’ undeclared (first use in this function)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1354: error: ‘IEEE80211_SMPS_AUTOMATIC’ undeclared (first use in this function)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1355: error: ‘IEEE80211_SMPS_NUM_MODES’ undeclared (first use in this function)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1357: error: ‘IEEE80211_SMPS_OFF’ undeclared (first use in this function)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1359: error: ‘WLAN_HT_SMPS_CONTROL_DISABLED’ undeclared (first use in this function)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1361: error: ‘IEEE80211_SMPS_STATIC’ undeclared (first use in this function)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1363: error: ‘WLAN_HT_SMPS_CONTROL_STATIC’ undeclared (first use in this function)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1365: error: ‘IEEE80211_SMPS_DYNAMIC’ undeclared (first use in this function)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1367: error: ‘WLAN_HT_SMPS_CONTROL_DYNAMIC’ undeclared (first use in this function)
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c: At top level:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1376: warning: ‘enum ieee80211_smps_mode’ declared inside parameter list
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1376: error: parameter 3 (‘smps’) has incomplete type
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c: In function ‘rtl_send_smps_action’:
/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:1404: error: type of formal parameter 2 is incomplete
make[4]: ** [/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.o] Erro 1
make[3]: ** [_module_/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011] Erro 2
make[2]: ** [sub-make] Erro 2
make[1]: ** [all] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.32-5-amd64'
make: ** [all] Erro 2
root@server:/home/andre/Downloads/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011#

alguem pode me ajudar com esse problema? agradeço desde já..


  


2. Re: conf o driver rtl8191Seva do meu note

Perfil removido
removido

(usa Nenhuma)

Enviado em 13/09/2012 - 01:15h

Não precisa compilar, a não ser que queria mesmo. acesse o link abaixo e siga as instruções. pois este módulo esta presente nos repositórios do debian squeeze:

http://wiki.debian.org/rtl819x


3. não consegui.

andre pereira teles
johnnyblayzer

(usa Debian)

Enviado em 14/09/2012 - 22:16h

olha so me perdoe a minha ignorância mas eu fiz exatamente tudo oque vc me passou mas não deu muito certo não,so não entendo uma coisa quando eu instalei o debian weenzy,eu entrei no driver e digitei o seguinte comando:
#make
#make install

pronto minha placa ja tinha subido a interface porque no meu debian squeeze não acontece o mesmo?
meu sistema é debian 2.6.32-5-amd64 e a placa wirelles é Realtek Semiconductor Co., Ltd. RTL8191SEvA Wireless LAN Controller (rev 10).
a aproveitanto a oportunidade,o meu som não sai no som do notebook só apenas nos fones oque será ?
olha só eu gosto de quebrar a cabeça mas dessa vez já tentei de tudo e estou aqui pedindo a ajuda da comunidade me ajudem e se não for pedir muito me explique o por que desses acontecimentos com o meu sistema.
tenho uma arquivo README não sei se ajuda tentei fazer tudo oque ele pede mas não consegui executar nada,segue a descrição dele abaixo:


Release Date: 2011-12-30, ver 0005
Realtek Linux mac80211 based driver:
--This driver supports follwing RealTek PCIE Wireless LAN NICs:
RTL8188CE/RTL8192CE
RTL8191SE/RTL8192SE
RTL8192DE

--This driver supports follwing Linux OS:
Fedora Core
Debian
Mandriva
Open SUSE
Gentoo
MeeGo
android 2.2 (froyo-x86), etc.

--This driver supports follwing kernel versions:
1) kernel version >=2.6.35
you can build & install drvier use II.


2) kernel version [2.6.24, 2.6.34]
you can build & install drvier use III.


========================================================================================
I. Component
========================================================================================
The driver is composed of several parts:
1. Firmare to make nic work
1.1 firmare/rtlwifi

2. Module source code
2.1 ./*
2.2 rtl8192ce
2.2 rtl8192se
2.2 rtl8192de

3. Script to build the modules
3.1 Makefile

4. compat-wireless
4.1 compat-wireless*.tar.bz2
4.2 compat

========================================================================================
II. Compile & Installation & uninstall
========================================================================================
You can enter top-level directory of driver and execute follwing command to
Compile, Installation, or uninstall the driver:

1. Change to Super User
sudo su

2. Compile driver from the source code
make

3. Install the driver to the kernel
make install
reboot

4. uninstall driver
make uninstall

========================================================================================
III. Compile & Installation & uninstall [2.6.24, 2.6.34]
========================================================================================
We don't support kernel 2.6.24-2.6.34 directly, Because there are
lots of issues in mac80211 from kernel 2.6.24-2.6.34,
So we suggest you to use the latest kernel >= 2.6.35.

but if you want to use our driver in an old kernel,
you can use compat-wireless. this methord can support all kernel
versions higher than 2.6.24, and you can use all functions
of our driver like you use it in the latest kernel version.

You can get more informations of compat-wireless from:
http://wireless.kernel.org/en/users/Download/stable

you should use the following commands to Compile, Installation, or uninstall the driver:

1. Change to Super User
sudo su

2. install compat-wireless driver
./compat/script/compat-install.sh

3. reboot
reboot

4. uninstall driver
./compat/script/compat-uninstall.sh

5. you can get more information form follwing webset for how to use compat-wireless:
http://wireless.kernel.org/en/users/Download/stable

NOTICE:
1. Maybe you can not use other vendors wireless after you install compat wireless,
in this situation, you can uninstall compat-wireless use step 4 to recover it.

2. This install methord can support all versions of kernel, not just 2.6.24-2.6.34,
you can also use it in the kernel higher than 2.6.35.
========================================================================================
IV. Start Up Wireless
========================================================================================
You can use two methord to start up wireless:

1. Install driver like II. and reboot OS, Wireless will be brought
up by GUI, such as NetworkManager

2. If Wireless is not brought up by GUI, you can use:
ifconfig wlan0 up

Note: some times when you have two wireless NICs on your computer,
interface "wlan0" may be changed to "wlan1" or "wlan2", etc.
So before "ifconfig wlan0 up", you can use "iwconfig" to check
which interface our NIC is.

Note: Don't try to down driver by "ifconfig wlan0 down" when
NetworkManager id opened, because NetworkManager will up
driver automatically.

========================================================================================
V. Wireless UI & NetworkManager
========================================================================================
1. All latest distributions have UI & NetworkManager to like with AP.
And it's more easy to link with AP than commandline,
So we suggest you use UI to link with AP.

2. Don't try to like with AP use commandline with UI or NetworkManager opened.

3. If you still used commandline to link with AP, Please check if
NetworkManager & wpa_supplicant is killed by follwing command:

ps -x | grep NetworkManager
ps -x | grep wpa_supplicant

4. Follwing commandlines(V-VII) are all used under Linux without UI.

========================================================================================
VI. Set wireless lan MIBs
========================================================================================
This driver uses Wireless Extension as an interface allowing you to set
Wireless LAN specific parameters.

1. Current driver supports "iwlist" to show the device status of nic

iwlist wlan0 [parameters]

you can use follwing parameters:

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

2. Driver also supports "iwconfig", manipulate driver private ioctls,
to set MIBs.

iwconfig wlan0 [parameters] [val]

you can use follwing parameters:

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
iwconfig wlan0 key s:12345

Note: There are two types of key, "hex" code or "ascii" code. "hex" code
only contains hexadecimal characters, "ascii" code is consist of
"ascii" characters. Assume the "hex" code key is "0123456789", you
are suggested to use command like this "iwconfig wlan0 key 0123456789".
Assume the "ascii" code key is "12345", you should enter command
like this "iwconfig wlan0 key s:12345".

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.

========================================================================================
VII. Getting IP address (For OS without UI)
========================================================================================
Before transmit/receive data, you should obtain an IP address use one of
the follwing method:

1. static IP address:

ifconfig wlan0 IP_ADDRESS

2. dynamic IP address using DHCP:

dhclient wlan0


========================================================================================
VIII. WPAPSK/WPA2PSK (For OS without UI)
========================================================================================
Wpa_supplicant helps you to link with WPA/WPA2(include WPA Enterprise) AP,
in Linux with NetworkManger & UI, UI will help you to link with AP,
But if there is no UI & Networkmanger in your Linux, you can use
follwing method to link with WPA/WPA2 AP.

1. we suppose that your Linux have installed wpa_supplicant &
kernel build with WIRELESS_EXT, In fact, lots of distributions
have done like this.

But if some distribution not install wpa_supplicant,
please download wpa_supplicant from webset and install it.

2. Edit wpa1.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".

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
}

You can download wpa_supplicant and read wpa_supplicant.conf
for more examples.

3. Execute WPA supplicant:

wpa_supplicant -D wext -c wpa1.conf -i wlan0

4. To see detailed description for driver interface and wpa_supplicant,
please type:

man wpa_supplicant

agradeço desde já.



4. Re: conf o driver rtl8191Seva do meu note

Perfil removido
removido

(usa Nenhuma)

Enviado em 14/09/2012 - 22:22h

No link que te passei anteriormente tem toda a descrição de como instalar o módulo para sua placa de rede wireless, entendeu agora ?






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts