Ajuda, Wireless Atheros

Iniciado por Shindy, 07 de Fevereiro de 2008, 22:50

tópico anterior - próximo tópico

Shindy

olá pessoal sou novo no forum e um pouco leigo ainda de linux. Pois bem, gostaria de saber se alguem poderia me ajudar num probleminha com a configuração da minha placa Wireless.
Tenho um laptop Acer5100-5033 a placa wireless é ATHEROS. Rodando o Ubuntu 7.10 32bits
Me parece que o sistema reconheceu a placa mas ela não aparece no meu gerenciador de redes só consigo enxergar a minha placa Eth0 e o moden...
dei o comando lspci -nn e ela aparece como listada abaixo:

02:00.0 Ethernet controller [0200]: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter [168c:001c] (rev 01)

Executando o comando lsmod

wlan                  206660  1 ath_pci

ifconfig

eth0       Encapsulamento do Link: Ethernet  Endereço de HW 00:16:D4:D6:8C:CA 
          inet end.: 192.168.1.105  Bcast:192.168.1.127  Masc:255.255.255.128
          endereço inet6: fe80::216:d4ff:fed6:8cca/64 Escopo:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Métrica:1
          pacotes RX:49934 erros:0 descartados:0 excesso:0 quadro:0
          Pacotes TX:40854 erros:0 descartados:0 excesso:0 portadora:0
          colisões:0 txqueuelen:1000
          RX bytes:60926229 (58.1 MB) TX bytes:4949773 (4.7 MB)
          IRQ:19 Endereço de E/S:0xc000

lo         Encapsulamento do Link: Loopback Local 
          inet end.: 127.0.0.1  Masc:255.0.0.0
          endereço inet6: ::1/128 Escopo:Máquina
          UP LOOPBACK RUNNING  MTU:16436  Métrica:1
          pacotes RX:0 erros:0 descartados:0 excesso:0 quadro:0
          Pacotes TX:0 erros:0 descartados:0 excesso:0 portadora:0
          colisões:0 txqueuelen:0
          RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


o que eu faço para que ela apareça ??

Desculpem como sou meio novo de linux ainda não estou habituado a dar todos os comandos para mostras os dispositivos de hardware, caso precise de mais algum detalhe me fale que eu faço ok!
Desde já agradeço...

csat

Citação de: Shindy online 07 de Fevereiro de 2008, 22:50

dei o comando lspci -nn e ela aparece como listada abaixo:

02:00.0 Ethernet controller [0200]: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter [168c:001c] (rev 01)

Humm.... você é novo no Linux e já está dando esses comandos imagine quando ficar mais velho e experiente...  Vai criar uma distribuição campeã!!!   ;D

Tenho uma informação para sua placa, mas está em Ingles.

Caso você se interesse procure =>aqui<= pela solução ou possível solução.

Se funcionar, edite seu tópico com a palavra =resolvido=.

Boa sorte.

Csat (Ubuntu 8.04)

Linux User #205394 ** Ubuntu User #19086

Shindy

Olá, me desculpa a demora para responder, mas eu estava quebrando a cabeça aqui... Segui o tutorial que vc me mandou, mas não consegui instalar o ndiswrapper.

quando executo o comando "make" aparece esse monte de erros abaixo, tem alguma coisa que esta faltando para eu poder instalar esse software??? desde já agradeço a ajuda...

root@shindy-laptop:/home/shindy/ndiswrapper-1.51# make
make -C driver
make[1]: Entrando no diretório `/home/shindy/ndiswrapper-1.51/driver'
make -C /usr/src/linux-headers-2.6.22-14-generic SUBDIRS=/home/shindy/ndiswrapper-1.51/driver
make[2]: Entrando no diretório `/usr/src/linux-headers-2.6.22-14-generic'
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/crt.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/hal.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/iw_ndis.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/loader.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/ndis.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/ntoskernel.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/ntoskernel_io.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/pe_linker.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/pnp.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/proc.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/rtl.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/wrapmem.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/wrapndis.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/wrapper.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/usb.o
  CC [M]  /home/shindy/ndiswrapper-1.51/driver/divdi3.o
  LD [M]  /home/shindy/ndiswrapper-1.51/driver/ndiswrapper.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/shindy/ndiswrapper-1.51/driver/ndiswrapper.mod.o
  LD [M]  /home/shindy/ndiswrapper-1.51/driver/ndiswrapper.ko
make[2]: Saindo do diretório `/usr/src/linux-headers-2.6.22-14-generic'
make[1]: Saindo do diretório `/home/shindy/ndiswrapper-1.51/driver'
make -C utils
make[1]: Entrando no diretório `/home/shindy/ndiswrapper-1.51/utils'
gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
loadndisdriver.c:15:20: erro: stdlib.h: Arquivo ou diretório inexistente
loadndisdriver.c:16:19: erro: stdio.h: Arquivo ou diretório inexistente
loadndisdriver.c:17:19: erro: errno.h: Arquivo ou diretório inexistente
loadndisdriver.c:18:20: erro: string.h: Arquivo ou diretório inexistente
loadndisdriver.c:19:20: erro: libgen.h: Arquivo ou diretório inexistente
loadndisdriver.c:21:22: erro: sys/mman.h: Arquivo ou diretório inexistente
loadndisdriver.c:23:23: erro: sys/types.h: Arquivo ou diretório inexistente
loadndisdriver.c:24:23: erro: sys/ioctl.h: Arquivo ou diretório inexistente
loadndisdriver.c:25:22: erro: sys/stat.h: Arquivo ou diretório inexistente
loadndisdriver.c:26:20: erro: unistd.h: Arquivo ou diretório inexistente
loadndisdriver.c:27:19: erro: fcntl.h: Arquivo ou diretório inexistente
Em arquivo incluído de /usr/lib/gcc/i486-linux-gnu/4.1.3/include/syslimits.h:7,
                 do /usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:11,
                 do loadndisdriver.c:28:
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:122:61: erro: limits.h: Arquivo ou diretório inexistente
loadndisdriver.c:29:19: erro: ctype.h: Arquivo ou diretório inexistente
loadndisdriver.c:30:20: erro: dirent.h: Arquivo ou diretório inexistente
loadndisdriver.c:31:20: erro: syslog.h: Arquivo ou diretório inexistente
loadndisdriver.c:34:25: erro: linux/major.h: Arquivo ou diretório inexistente
loadndisdriver.c:35:25: erro: linux/ioctl.h: Arquivo ou diretório inexistente
In file included from loadndisdriver.c:37:
../driver/loader.h:24: error: expected specifier-qualifier-list before 'size_t'
loadndisdriver.c: In function 'load_file':
loadndisdriver.c:67: error: 'size_t' undeclared (first use in this function)
loadndisdriver.c:67: error: (Each undeclared identifier is reported only once
loadndisdriver.c:67: error: for each function it appears in.)
loadndisdriver.c:67: error: expected ';' before 'size'
loadndisdriver.c:68: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:69: error: storage size of 'statbuf' isn't known
loadndisdriver.c:71: warning: implicit declaration of function 'basename'
loadndisdriver.c:71: warning: initialization makes pointer from integer without a cast
loadndisdriver.c:73: warning: implicit declaration of function 'open'
loadndisdriver.c:73: error: 'O_RDONLY' undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function 'syslog'
loadndisdriver.c:75: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:75: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function 'strerror'
loadndisdriver.c:75: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:76: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:79: warning: implicit declaration of function 'fstat'
loadndisdriver.c:81: warning: implicit declaration of function 'close'
loadndisdriver.c:84: error: 'size' undeclared (first use in this function)
loadndisdriver.c:86: warning: implicit declaration of function 'mmap'
loadndisdriver.c:86: error: 'PROT_READ' undeclared (first use in this function)
loadndisdriver.c:86: error: 'MAP_PRIVATE' undeclared (first use in this function)
loadndisdriver.c:86: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:87: error: 'MAP_FAILED' undeclared (first use in this function)
loadndisdriver.c:93: warning: implicit declaration of function 'strncpy'
loadndisdriver.c:93: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:95: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c:96: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:69: warning: unused variable 'statbuf'
loadndisdriver.c: In function 'parse_setting_line':
loadndisdriver.c:109: warning: implicit declaration of function 'isspace'
loadndisdriver.c:115: warning: implicit declaration of function 'strchr'
loadndisdriver.c:115: warning: incompatible implicit declaration of built-in function 'strchr'
loadndisdriver.c:115: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:117: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:117: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:118: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:138: warning: implicit declaration of function 'strlen'
loadndisdriver.c:138: warning: incompatible implicit declaration of built-in function 'strlen'
loadndisdriver.c: In function 'read_conf_file':
loadndisdriver.c:150: error: storage size of 'statbuf' isn't known
loadndisdriver.c:151: error: 'FILE' undeclared (first use in this function)
loadndisdriver.c:151: error: 'config' undeclared (first use in this function)
loadndisdriver.c:157: warning: implicit declaration of function 'lstat'
loadndisdriver.c:158: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:158: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:158: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:160: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:163: warning: implicit declaration of function 'sscanf'
loadndisdriver.c:163: warning: incompatible implicit declaration of built-in function 'sscanf'
loadndisdriver.c:178: warning: implicit declaration of function 'fopen'
loadndisdriver.c:178: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:182: warning: implicit declaration of function 'fgets'
loadndisdriver.c:194: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:205: warning: implicit declaration of function 'fclose'
loadndisdriver.c:150: warning: unused variable 'statbuf'
loadndisdriver.c: In function 'load_bin_file':
loadndisdriver.c:217: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:217: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:219: warning: implicit declaration of function 'tolower'
loadndisdriver.c:221: warning: implicit declaration of function 'chdir'
loadndisdriver.c:222: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:224: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:230: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:232: warning: implicit declaration of function 'ioctl'
loadndisdriver.c:232: warning: implicit declaration of function '_IOW'
loadndisdriver.c:232: error: expected expression before 'struct'
loadndisdriver.c: In function 'load_driver':
loadndisdriver.c:249: error: 'DIR' undeclared (first use in this function)
loadndisdriver.c:249: error: 'driver_dir' undeclared (first use in this function)
loadndisdriver.c:251: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:255: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:255: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:257: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:259: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:261: warning: implicit declaration of function 'opendir'
loadndisdriver.c:267: warning: implicit declaration of function 'malloc'
loadndisdriver.c:267: warning: incompatible implicit declaration of built-in function 'malloc'
loadndisdriver.c:271: warning: implicit declaration of function 'memset'
loadndisdriver.c:271: warning: incompatible implicit declaration of built-in function 'memset'
loadndisdriver.c:272: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:280: warning: implicit declaration of function 'readdir'
loadndisdriver.c:280: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:282: error: storage size of 'statbuf' isn't known
loadndisdriver.c:284: error: dereferencing pointer to incomplete type
loadndisdriver.c:287: warning: implicit declaration of function 'stat'
loadndisdriver.c:287: error: dereferencing pointer to incomplete type
loadndisdriver.c:288: warning: implicit declaration of function 'S_ISREG'
loadndisdriver.c:289: error: dereferencing pointer to incomplete type
loadndisdriver.c:294: warning: incompatible implicit declaration of built-in function 'strlen'
loadndisdriver.c:294: error: dereferencing pointer to incomplete type
loadndisdriver.c:296: warning: implicit declaration of function 'strcasecmp'
loadndisdriver.c:296: error: dereferencing pointer to incomplete type
loadndisdriver.c:299: error: dereferencing pointer to incomplete type
loadndisdriver.c:302: error: dereferencing pointer to incomplete type
loadndisdriver.c:303: error: dereferencing pointer to incomplete type
loadndisdriver.c:305: error: dereferencing pointer to incomplete type
loadndisdriver.c:311: error: dereferencing pointer to incomplete type
loadndisdriver.c:312: error: dereferencing pointer to incomplete type
loadndisdriver.c:313: warning: implicit declaration of function 'strcpy'
loadndisdriver.c:313: warning: incompatible implicit declaration of built-in function 'strcpy'
loadndisdriver.c:314: error: dereferencing pointer to incomplete type
loadndisdriver.c:317: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c:318: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:321: error: dereferencing pointer to incomplete type
loadndisdriver.c:282: warning: unused variable 'statbuf'
loadndisdriver.c:344: error: expected expression before 'struct'
loadndisdriver.c:346: warning: implicit declaration of function 'closedir'
loadndisdriver.c:348: warning: implicit declaration of function 'free'
loadndisdriver.c:355: warning: implicit declaration of function 'munmap'
loadndisdriver.c:355: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:355: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c:357: error: 'struct load_driver_file' has no member named 'data'
loadndisdriver.c:357: error: 'struct load_driver_file' has no member named 'size'
loadndisdriver.c: In function 'get_device':
loadndisdriver.c:367: error: storage size of 'statbuf' isn't known
loadndisdriver.c:370: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:370: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:373: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:374: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:376: warning: implicit declaration of function 'snprintf'
loadndisdriver.c:376: warning: incompatible implicit declaration of built-in function 'snprintf'
loadndisdriver.c:407: warning: incompatible implicit declaration of built-in function 'strncpy'
loadndisdriver.c:367: warning: unused variable 'statbuf'
loadndisdriver.c: In function 'load_device':
loadndisdriver.c:419: error: 'DIR' undeclared (first use in this function)
loadndisdriver.c:419: error: 'dir' undeclared (first use in this function)
loadndisdriver.c:423: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:423: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:424: warning: incompatible implicit declaration of built-in function 'memset'
loadndisdriver.c:426: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:427: error: 'EINVAL' undeclared (first use in this function)
loadndisdriver.c:429: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:434: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:435: error: dereferencing pointer to incomplete type
loadndisdriver.c:436: error: dereferencing pointer to incomplete type
loadndisdriver.c:439: error: dereferencing pointer to incomplete type
loadndisdriver.c:447: error: expected expression before 'struct'
loadndisdriver.c: In function 'get_ioctl_device':
loadndisdriver.c:464: error: 'FILE' undeclared (first use in this function)
loadndisdriver.c:464: error: 'proc_misc' undeclared (first use in this function)
loadndisdriver.c:472: warning: implicit declaration of function 'strstr'
loadndisdriver.c:472: warning: incompatible implicit declaration of built-in function 'strstr'
loadndisdriver.c:473: warning: implicit declaration of function 'strtol'
loadndisdriver.c:473: error: 'NULL' undeclared (first use in this function)
loadndisdriver.c:483: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:483: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:488: warning: implicit declaration of function 'unlink'
loadndisdriver.c:489: warning: implicit declaration of function 'mknod'
loadndisdriver.c:489: error: 'S_IFCHR' undeclared (first use in this function)
loadndisdriver.c:489: error: 'MISC_MAJOR' undeclared (first use in this function)
loadndisdriver.c:490: error: 'errno' undeclared (first use in this function)
loadndisdriver.c:495: error: 'O_RDONLY' undeclared (first use in this function)
loadndisdriver.c: In function 'main':
loadndisdriver.c:511: warning: implicit declaration of function 'openlog'
loadndisdriver.c:511: error: 'LOG_PERROR' undeclared (first use in this function)
loadndisdriver.c:511: error: 'LOG_CONS' undeclared (first use in this function)
loadndisdriver.c:511: error: 'LOG_KERN' undeclared (first use in this function)
loadndisdriver.c:511: error: 'LOG_DEBUG' undeclared (first use in this function)
loadndisdriver.c:513: error: 'LOG_INFO' undeclared (first use in this function)
loadndisdriver.c:515: warning: implicit declaration of function 'strncmp'
loadndisdriver.c:517: warning: implicit declaration of function 'printf'
loadndisdriver.c:517: warning: incompatible implicit declaration of built-in function 'printf'
loadndisdriver.c:527: warning: implicit declaration of function 'atoi'
loadndisdriver.c:542: warning: implicit declaration of function 'atof'
loadndisdriver.c:549: warning: implicit declaration of function 'strcmp'
loadndisdriver.c:556: warning: incompatible implicit declaration of built-in function 'sscanf'
loadndisdriver.c:590: warning: implicit declaration of function 'closelog'
make[1]: ** [loadndisdriver] Erro 1
make[1]: Saindo do diretório `/home/shindy/ndiswrapper-1.51/utils'
make: ** [all] Erro 2

Evaristo

Não seria necessário habilitar ela no gerenciador de drivers restritos?

Abs.

csat

Voce seguiu os passos detalhadamente sem erro nenhum antes de tentar a compilação com o uso do make?

Esse tipo de erro é para falta de bibliotecas. 

O que deu o comando abaixo?

sudo aptitude update && sudo aptitude install linux-headers-$(uname -r) build-essential
Csat (Ubuntu 8.04)

Linux User #205394 ** Ubuntu User #19086