Accesos rápidos: Foro | Lista de Correo | IRC | Launchpad | ArgentinaTeam Wiki | Planet Ubuntu-ar
WI-FI Atheros Communications Inc. AR242x (AR5007EG)
Introducción:
El procedimiento definido en el tutorial asiste al usuario a la configuración de la placa de red WI-FI Atheros Communications Inc. AR242x, también conocida como AR5007EG. El proceso utiliza las herramientas madwifi(http://www.madwifi.org/) y las incluidas en cualquier GNU/Linux.
Procedimiento:
Primero deshabilita desde controladores restringidos todo lo que tenga que ver con wifi y tira en una terminal:
< lsmod | grep ath
eso lo que hace es listar el contenido de todos los modulos cargados en el sistema que contengan la palabra "ath". te va a salir algo parecido a esto:
> wlan 207728 1 ath_pci > ath_pci 101024 0
digo parecido por que pueden cambiar los números.
si esto no te sale, no hay nada que bajar de memoria, segui leyendo.
si esto te sale, entonces los bajamos con:
< sudo rmmod wlan < sudo rmmod ath_pci
y luego:
< sudo modprobe -r wlan < sudo modprobe -r ath_pci
y no te tiene que tirar ningún cartel de nada.
Entonces ahora si tenemos los módulos bajados y lo que tenemos que hacer es setearle que no se cargue de vuelta cuando reinicie la pc, tonces editamos un archivo:
< sudo nano /etc/default/linux-restricted-modules-common
y te aparece:
# This file is sourced from the linux-restricted-modules-common init # script and is used to disable the link-on-boot feature, one module # at a time. This can be useful if you want to use hand-compiled # versions of one or more modules, but keep linux-restricted-modules # installed on your system, or just to disable modules you don't use # and speed up your boot process by a second or two. # # Use a space-separated list of modules you wish to not have linked # on boot. The following example shows a (condensed) list of all # modules shipped in the linux-restricted-modules packages: # # DISABLED_MODULES="ath_hal fc fglrx ltm nv" # # Note that disabling "fc" disables all fcdsl drivers, "ltm" disables # ltmodem and ltserial, and "nv" disables the three nvidia drivers. # You can also name each module individually, if you prefer a subset. DISABLED_MODULES=""
y te tiene que quedar asi: (le agregamos el modulo que no queremos que cargue al final)
# This file is sourced from the linux-restricted-modules-common init # script and is used to disable the link-on-boot feature, one module # at a time. This can be useful if you want to use hand-compiled # versions of one or more modules, but keep linux-restricted-modules # installed on your system, or just to disable modules you don't use # and speed up your boot process by a second or two. # # Use a space-separated list of modules you wish to not have linked # on boot. The following example shows a (condensed) list of all # modules shipped in the linux-restricted-modules packages: # # DISABLED_MODULES="ath_hal fc fglrx ltm nv" # # Note that disabling "fc" disables all fcdsl drivers, "ltm" disables # ltmodem and ltserial, and "nv" disables the three nvidia drivers.# You can also name each module individually, if you prefer a subset.
DISABLED_MODULES="ath_hal"
guardamos (CTRL + O) y salimos (CTRL + X).
Ahora lo mandamos a lista negra de los módulos con:
< echo "blacklist ath_pci" | sudo tee -a /etc/modprobe.d/blacklist
Luego debemos eliminar rastros de la versión vieja:
< sudo apt-get remove madwifi-tools --purge
Nunca esta de mas tener las herramientas de compilacion a mano:
< sudo apt-get update && sudo aptitude install build-essential gcc binutils autoconf automake
Ahora si arrancamos el proceso de instalacion, para esto nos bajamos el driver:
< wget http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r3835-20080801.tar.gz
descomprimimos:
< tar xzf madwifi-hal-0.10.5.6-r3835-20080801.tar.gz
entramos en el directorio:
< cd madwifi-hal-0.10.5.6-r3835-20080801
compilamos (NO hace falta SUDO):
< make
Algo así se ve la compilación, lo compilé para ver si tenia problemas pero compiló bien
faktorqm@the-edge:~$ wget http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r... --22:48:35-- http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r... => `madwifi-hal-0.10.5.6-r3835-20080801.tar.gz' Resolviendo snapshots.madwifi.org... 217.24.1.134 Conectando a snapshots.madwifi.org|217.24.1.134|:80... conectado. Petición HTTP enviada, esperando respuesta... 200 OK Longitud: 4.417.874 (4.2M) [application/x-gzip] 100%[====================================>] 4.417.874 60.83K/s ETA 00:00 22:49:56 (54.02 KB/s) - `madwifi-hal-0.10.5.6-r3835-20080801.tar.gz' guardado [4417874/4417874] faktorqm@the-edge:~$ tar xzf madwifi-hal-0.10.5.6-r3835-20080801.tar.gz faktorqm@the-edge:~$ cd madwifi-hal-0.10.5.6-r3835-20080801 faktorqm@the-edge:~/madwifi-hal-0.10.5.6-r3835-20080801$ make Checking requirements... ok. Checking kernel configuration... ok. make -C /lib/modules/2.6.24-19-generic/build SUBDIRS=/home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801 modules make[1]: Entering directory `/usr/src/linux-headers-2.6.24-19-generic' CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath/if_ath.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath/if_ath_radar.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath/if_ath_hal_extensions.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath/if_ath_pci.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath/ath_pci.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_hal/ah_os.o HOSTCC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_hal/uudecode UUDECODE /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_hal/i386-elf._hal.o UNMANGLE /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_hal/i386-elf.hal.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_hal/ath_hal.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/amrr/amrr.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/amrr/ath_rate_amrr.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/minstrel/minstrel.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/minstrel/ath_rate_minstrel.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/onoe/onoe.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/onoe/ath_rate_onoe.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/sample/sample.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/sample/ath_rate_sample.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/if_media.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_skb.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_beacon.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_crypto.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_crypto_none.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_input.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_node.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_output.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_power.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_proto.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_scan.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_wireless.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_linux.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_monitor.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_rate.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_acl.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_crypto_ccmp.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_scan_ap.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_scan_sta.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_crypto_tkip.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_crypto_wep.o CC [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/ieee80211_xauth.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_wep.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_tkip.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_ccmp.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_acl.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_xauth.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_scan_sta.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_scan_ap.o Building modules, stage 2. MODPOST 14 modules CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath/ath_pci.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath/ath_pci.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_hal/ath_hal.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_hal/ath_hal.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/amrr/ath_rate_amrr.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/amrr/ath_rate_amrr.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/minstrel/ath_rate_minstrel.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/minstrel/ath_rate_minstrel.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/onoe/ath_rate_onoe.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/onoe/ath_rate_onoe.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/sample/ath_rate_sample.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/ath_rate/sample/ath_rate_sample.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_acl.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_acl.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_ccmp.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_ccmp.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_scan_ap.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_scan_ap.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_scan_sta.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_scan_sta.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_tkip.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_tkip.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_wep.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_wep.ko CC /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_xauth.mod.o LD [M] /home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/net80211/wlan_xauth.ko make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic' make -C ./tools all || exit 1 make[1]: Entering directory `/home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/tools' for d in ath_info; do \ make -C $d || exit 1; \ done make[2]: Entering directory `/home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/tools/ath_info' gcc -g -O2 -W -Wall -c ath_info.c gcc -g -O2 -W -Wall -o ath_info ath_info.o make[2]: Leaving directory `/home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/tools/ath_info' gcc -o athstats -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal -I../ath athstats.c gcc -o 80211stats -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal 80211stats.c gcc -o athkey -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athkey.c gcc -o athchans -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athchans.c gcc -o athctrl -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athctrl.c gcc -o athdebug -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athdebug.c gcc -o 80211debug -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal 80211debug.c gcc -o wlanconfig -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal wlanconfig.c gcc -o wpakey -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal wpakey.c make[1]: Leaving directory `/home/faktorqm/madwifi-hal-0.10.5.6-r3835-20080801/tools' faktorqm@the-edge:~/madwifi-hal-0.10.5.6-r3835-20080801$
Instalamos:
< sudo make install
Ahora levantamos los modulos a memoria:
< sudo modprobe -a ath_pci wlan_scan_sta
Ahora levantamos la interfaz:
< sudo ifconfig ath0 up
y teoricamente ya deberias estar conectado. Ahora, asegurate de que la conexion a la cual te estes conectando ande y etcetcetc.
Ahora lo ultimo, hay que poner el modulo nuevo a /etc/modules para que lo levante cada vez que arranca:
< echo "ath_pci" | sudo tee -a /etc/modules
y ¡¡listo!!
bibliografia consultada:
post original (ubuntu-argentina): http://ubuntuforums.org/showpost.php?p=5633150&postcount=36
OBVIO: http://madwifi.org/wiki/UserDocs/FirstTimeHowTo
http://snapshots.madwifi.org/special/
bug en launchpad: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/196843
ubuntu chile: http://foros.ubuntu-cl.org/viewtopic.php?p=31909
ubuntu españa: http://www.ubuntu-es.org/index.php?q=node/83598
ubuntu en ingles: http://ubuntuforums.org/showthread.php?t=766529
lista de chipsets reconocidos por el kernel: http://kerneltrap.org/mailarchive/madwifi-devel/2008/2/18/890124
blogs: http://chamangt.wordpress.com/2008/05/08/activar-wireless-atheros-en-ubu...

