PCI/USB não reconhece minha antena wireless como dispositivo de rede [Resolvido]

Iniciado por joaowiciuk, 20 de Julho de 2012, 18:53

tópico anterior - próximo tópico

joaowiciuk

Salve pessoal, tudo tranquilo?

Meu problema é o seguinte, instalei uma PCI to USB 4 + 1 Port Card com chipset da VIA (http://i01.i.aliimg.com/photo/v0/277486187/PCI_USB_CARD_4_1_PORT_VIA.jpg) para conectar-se à internet por meio de uma antena wireless externa Ralink USB 2510 com chipset Realtek RT8187 (http://www.aquario.com.br/?action=produto&id=5) mas essa não é reconhecida como dispositivo de rede!

OBS.: Conecto minha antena na placa através do cabo USB; Uso Lubuntu 12.04 (Ubuntu com LXDE); Meu kernel é versão 3.2.0-23.36;

Alguém pode ajudar-me?

Aqui vão algumas saídas úteis:


lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0951:1607 Kingston Technology DataTraveler 100
Bus 001 Device 004: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 002 Device 003: ID 1e3d:2093 Chipsbank Microelectronics Co., Ltd
Bus 002 Device 002: ID 148f:2070 Ralink Technology, Corp. RT2070 Wireless Adapter
Bus 004 Device 002: ID 03f0:7804 Hewlett-Packard DeskJet D1360
----------------------------------------------------------------------------------------------------------------------------------
lspci -k
[1] 3719

00:00.0 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge
Subsystem: ASUSTeK Computer Inc. Device 81ce
Kernel driver in use: agpgart-via
00:00.1 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge
00:00.5 PIC: VIA Technologies, Inc. P4M890 I/O APIC Interrupt Controller
00:00.6 Host bridge: VIA Technologies, Inc. P4M890 Security Device
00:00.7 Host bridge: VIA Technologies, Inc. P4M890 Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237/VX700 PCI Bridge
Kernel modules: shpchp
00:0f.0 IDE interface: VIA Technologies, Inc. Device 5337 (rev 80)
Subsystem: ASUSTeK Computer Inc. Device 81cf
Kernel driver in use: sata_via
Kernel modules: sata_via
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 07)
Subsystem: ASUSTeK Computer Inc. Device 81cf
Kernel driver in use: pata_via
Kernel modules: pata_via
00:10.0 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
Subsystem: ASUSTeK Computer Inc. Device 81cf
Kernel driver in use: uhci_hcd
00:10.1 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
Subsystem: ASUSTeK Computer Inc. Device 81cf
Kernel driver in use: uhci_hcd
00:10.2 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
Subsystem: ASUSTeK Computer Inc. Device 81cf
Kernel driver in use: uhci_hcd
00:10.3 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
Subsystem: ASUSTeK Computer Inc. Device 81cf
Kernel driver in use: uhci_hcd
00:10.4 USB controller: VIA Technologies, Inc. USB 2.0 (rev 86)
Subsystem: ASUSTeK Computer Inc. Device 81cf
Kernel driver in use: ehci_hcd
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237A PCI to ISA Bridge
Subsystem: ASUSTeK Computer Inc. Device 81cf
Kernel modules: i2c-viapro
00:11.7 Host bridge: VIA Technologies, Inc. VT8237/8251 Ultra VLINK Controller
Subsystem: VIA Technologies, Inc. Device 337e
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 7c)
Subsystem: ASUSTeK Computer Inc. Device 086c
Kernel driver in use: via-rhine
Kernel modules: via-rhine
00:13.0 Host bridge: VIA Technologies, Inc. VT8237A Host Bridge
00:13.1 PCI bridge: VIA Technologies, Inc. VT8237A PCI to PCI Bridge
01:00.0 VGA compatible controller: VIA Technologies, Inc. P4M890 [S3 UniChrome Pro] (rev 01)
Subsystem: ASUSTeK Computer Inc. Device 81ce
Kernel modules: viafb
04:03.0 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 62)
Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
Kernel driver in use: uhci_hcd
04:03.1 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 62)
Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
Kernel driver in use: uhci_hcd
04:03.2 USB controller: VIA Technologies, Inc. USB 2.0 (rev 65)
Subsystem: VIA Technologies, Inc. USB 2.0
Kernel driver in use: ehci_hcd
80:01.0 Audio device: VIA Technologies, Inc. VT8237A/VT8251 HDA Controller (rev 10)
Subsystem: ASUSTeK Computer Inc. Device 81b3
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel
[1]+  Concluído              clear
----------------------------------------------------------------------------------------------------------------------------------
dmesg (com o cabo conectado)
[...]

[   49.060967] phy0 -> rt2800usb_write_firmware: Error - Failed to write Firmware to device.
[   55.105683] phy0 -> rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x0400 with error -71.
----------------------------------------------------------------------------------------------------------------------------------------
dmesg (após a retirada do cabo)
[...]
[   49.060967] phy0 -> rt2800usb_write_firmware: Error - Failed to write Firmware to device.
[   55.105683] phy0 -> rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x0400 with error -71.
[  244.712044] INFO: task irqbalance:2018 blocked for more than 120 seconds.
[  244.712049] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  244.712054] irqbalance      D c129db5d     0  2018      1 0x00000000
[  244.712064]  f4a77e98 00000086 f4a77e24 c129db5d f4a77e44 c17ca020 c18e43c0 c18e43c0
[  244.712078]  12abe1db 00000009 f5c073c0 f71a9940 f4290000 c10e8ef3 000000d0 f4a77e88
[  244.712091]  c112201d f73d5aa8 00000340 f68ebbbc f4a77e7c c102c9bc f73d5aa8 f69b7ea0
[  244.712105] Call Trace:
[  244.712120]  [<c129db5d>] ? radix_tree_lookup_slot+0xd/0x10
[  244.712129]  [<c10e8ef3>] ? filemap_fault+0xe3/0x370
[  244.712137]  [<c112201d>] ? kmem_cache_alloc+0x11d/0x140
[  244.712144]  [<c102c9bc>] ? kmap_atomic_prot+0x4c/0x100
[  244.712150]  [<c10e67d2>] ? unlock_page+0x42/0x50
[  244.712157]  [<c11046c0>] ? __do_fault+0x3a0/0x4d0
[  244.712164]  [<c1575135>] schedule+0x35/0x50
[  244.712172]  [<c1575cd6>] __mutex_lock_slowpath+0xc6/0x120
[  244.712180]  [<c1575984>] mutex_lock+0x24/0x40
[  244.712188]  [<c14889d2>] rtnl_lock+0x12/0x20
[  244.712196]  [<c147f2f8>] dev_ioctl+0x1a8/0x2f0
[  244.712205]  [<c157a090>] ? vmalloc_fault+0xee/0xee
[  244.712214]  [<c14ce270>] ? udp_poll+0x70/0x70
[  244.712223]  [<c146996a>] sock_ioctl+0x8a/0x290
[  244.712229]  [<c14698e0>] ? move_addr_to_user+0x90/0x90
[  244.712236]  [<c1142c19>] do_vfs_ioctl+0x79/0x2d0
[  244.712244]  [<c1142edf>] sys_ioctl+0x6f/0x80
[  244.712251]  [<c1576ed4>] syscall_call+0x7/0xb
[  244.712258]  [<c1570000>] ? encode+0x26/0x2b
[  244.712263] INFO: task ntpd:2076 blocked for more than 120 seconds.
[  244.712266] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  244.712270] ntpd            D 00000000     0  2076      1 0x00000004
[  244.712278]  ee465e98 00000086 00000000 00000000 00000096 f54c8ca0 c18e43c0 c18e43c0
[  244.712291]  d49ddef3 00000006 f5d073c0 f457a5e0 f47dcbc0 f6723020 00000001 f735fb6c
[  244.712304]  ee465e64 c12998e1 c1825c00 f735fb6c ee465e78 f6723020 f6723020 f4493ec8
[  244.712317] Call Trace:
[  244.712325]  [<c12998e1>] ? cpumask_any_but+0x21/0x40
[  244.712332]  [<c10f145a>] ? lru_cache_add_lru+0x2a/0x50
[  244.712342]  [<c110ebcc>] ? page_add_new_anon_rmap+0x8c/0xa0
[  244.712351]  [<c1575135>] schedule+0x35/0x50
[  244.712359]  [<c1575cd6>] __mutex_lock_slowpath+0xc6/0x120
[  244.712369]  [<c1575984>] mutex_lock+0x24/0x40
[  244.712381]  [<c14889d2>] rtnl_lock+0x12/0x20
[  244.712391]  [<c147f3b5>] dev_ioctl+0x265/0x2f0
[  244.712402]  [<c1107c18>] ? handle_mm_fault+0x108/0x210
[  244.712413]  [<c157a090>] ? vmalloc_fault+0xee/0xee
[  244.712422]  [<c14ce270>] ? udp_poll+0x70/0x70
[  244.712432]  [<c146996a>] sock_ioctl+0x8a/0x290
[  244.712444]  [<c14698e0>] ? move_addr_to_user+0x90/0x90
[  244.712456]  [<c1142c19>] do_vfs_ioctl+0x79/0x2d0
[  244.712467]  [<c1142edf>] sys_ioctl+0x6f/0x80
[  244.712479]  [<c1003904>] ? math_state_restore+0x44/0x60
[  244.712492]  [<c1576ed4>] syscall_call+0x7/0xb
[  355.646963] usb 2-1: [color=red]USB disconnect, device number 2[/color]
[  355.647689] phy0 -> rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x0400 with error -19.
[  356.076032] phy0 -> rt2800_load_firmware: Error - PBF system register not ready.
[  356.076286] ADDRCONF(NETDEV_UP): wlan0: link is not ready
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
dmesg (com o cabo conectado novamente)
[...]
[  529.624039] usb 2-1: new high-speed USB device number 3 using ehci_hcd
[  529.888047] usb 2-1: reset high-speed USB device number 3 using ehci_hcd
[  530.545497] cfg80211: Updating information on frequency 2412 MHz for a 20 MHz width channel with regulatory rule:
[  530.545508] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  530.545515] cfg80211: Updating information on frequency 2417 MHz for a 20 MHz width channel with regulatory
[  530.546014] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[  530.548381] Registered led device: rt2800usb-phy1::radio
[  530.548451] Registered led device: rt2800usb-phy1::assoc
[  530.548515] Registered led device: rt2800usb-phy1::quality
[  530.597340] udevd[3797]: renamed network interface wlan0 to wlan1
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
dmesg (com o cabo conectado em outras portas usb que não são da placa PCI to USB)
[ 1421.904989] wlan3: authenticate with 00:24:01:f9:01:18 (try 1)
[ 1422.104050] wlan3: authenticate with 00:24:01:f9:01:18 (try 2)
[ 1422.304109] wlan3: authenticate with 00:24:01:f9:01:18 (try 3)
[ 1422.504042] wlan3: authentication with 00:24:01:f9:01:18 timed out
[ 1436.202532] ADDRCONF(NETDEV_UP): wlan3: link is not ready
[ 1582.782119] cfg80211: Found new beacon on frequency: 2472 MHz (Ch 13) on phy3
[ 1582.991976] wlan3: direct probe to 00:24:01:f9:01:18 (try 1/3)
[ 1583.000231] wlan3: direct probe responded
[ 1583.000308] wlan3: authenticate with 00:24:01:f9:01:18 (try 1)
[ 1583.015502] wlan3: authenticated
[ 1583.019851] wlan3: associate with 00:24:01:f9:01:18 (try 1)
[ 1583.026869] wlan3: RX ReassocResp from 00:24:01:f9:01:18 (capab=0x401 status=0 aid=5)
[ 1583.026878] wlan3: associated
[ 1583.035505] ADDRCONF(NETDEV_CHANGE): wlan3: link becomes ready
[ 1593.688031] wlan3: no IPv6 routers present

/* O problema aqui é que a conexão fica caindo o tempo todo */
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(Tentei compilar o driver para Linux que veio junto com a minha antena, mas não deu muito certo...)
make
make -C tools
make[1]: Entrando no diretório `/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/tools'
gcc -g bin2h.c -o bin2h
make[1]: Saindo do diretório `/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/tools'
/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/tools/bin2h
cp -f os/linux/Makefile.6 /home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/Makefile
make  -C  /lib/modules/3.2.0-23-generic/build SUBDIRS=/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux modules
make[1]: Entrando no diretório `/usr/src/linux-headers-3.2.0-23-generic'
 CC [M]  /home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/crypt_md5.o
 CC [M]  /home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/crypt_sha2.o
 CC [M]  /home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/crypt_hmac.o
 CC [M]  /home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/mlme.o
/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/mlme.c: Na função 'BssTableSetEntry':
/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/mlme.c:4238:39: aviso: operation on 'Tab->BssOverlapNr' may be undefined [-Wsequence-point]
/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/mlme.c: Na função 'BssTableSortByRssi':
/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/mlme.c:4691:1: aviso: the frame size of 1572 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 CC [M]  /home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/cmm_wep.o
 CC [M]  /home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/action.o
 CC [M]  /home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/cmm_data.o
 CC [M]  /home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/rtmp_init.o
/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/rtmp_init.c: Na função 'RtmpRaDevCtrlInit':
/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/rtmp_init.c:4498:2: erro: implicit declaration of function 'init_MUTEX' [-Werror=implicit-function-declaration]
/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/rtmp_init.c:4499:2: aviso: passing argument 2 of 'os_alloc_mem' from incompatible pointer type [habilitado por padrão]
/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/include/rtmp.h:6246:13: nota: expected 'UCHAR **' but argument is of type 'UCHAR *'
cc1: some warnings being treated as errors
make[2]: ** [/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux/../../common/rtmp_init.o] Erro 1
make[1]: ** [_module_/home/lubuntu/2009_0416_RT2070_Linux_STA_v2.1.0.0/os/linux] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-3.2.0-23-generic'
make: ** [LINUX] Erro 2
Ad immortalitatem, hic et ubique.

zekkerj

Olá João,

Que rolo, hein?

Seu PC tem algumas portas USB "onboard", certo? Se tiver, tente mover os dispositivos pras portas onboard. Depois de fazer isso, poste novamente a saída do "lsusb".
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D

joaowiciuk

Oi zekkerj! Obrigado por responder, cara.
Felizmente eu consegui resolver meu problema.

Segui este tutorial aqui:
http://victorazzi.wordpress.com/2010/09/18/instalando-e-configurando-dispositivo-usb-para-linux-ubuntu-10-04/, só que ao invés de baixar o arquivo que ele recomenda eu baixei este aqui http://www.ralinktech.com/en/04_support/license.php?sn=5016 e compilei. Depois foi só desativar os drivers nativos (os problemáticos) e subir o novo módulo.

Não usava o Linux antes porque não conseguia acessar a internet. Agora que tudo deu certo sou o mais usuário do pinguim! HEHE
Ad immortalitatem, hic et ubique.