Wifi Atheros AR5007EG a Debian

Fa poc vaig comprar un ordinador MSI vr201, i hi vaig posar Kubuntu. En aquesta pàgina hi vaig trobar el manual per a fer funcionar el wifi (un atheros AR5007EG) sota ubuntu i tot va anar perfecte. Es tracta de descarregar els drivers modificats de madwifi, compilar-los i carregar-los.

Però veient que kubuntu acumulava bugs sense resoldre, vaig decidir canviar a Debian testing. Com que kubuntu es basa en Debian creia que aquest manual també funcionaria però no va ser així.

Per a fer-lo funcionar sota Debian és necessari modificar els arxius font del driver, la solució la vaig trobar aquí: http://kerneltrap.org/mailarchive/madwifi-devel/2008/1/31/667739

Modificant els arxius indicats amb les línies que comencen amb un +, i compilant-lo després, el mòdul es carrega sense problemes i ja tenim l’atheros funcionant perfectament!

Les modificacions són aquestes:

Index: scripts/get_arch.mk
===================================================================
--- scripts/get_arch.mk	(revision 3316)
+++ scripts/get_arch.mk	(working copy)
@@ -36,6 +36,13 @@
 $(Cannot determine ARCH)
 endif

+# Allow ARCH to be x86
+ifneq (,$(CONFIG_X86))
+ifeq (x86,$(ARCH))
+ARCH-y = $(ARCH)
+endif
+endif
+
 # Don't allow ARCH to be overridden by a different value.
 ifeq (,$(ARCH))
 ARCH = $(ARCH-y)
Index: ath_hal/ah_target.inc
===================================================================
--- ath_hal/ah_target.inc	(revision 3316)
+++ ath_hal/ah_target.inc	(working copy)
@@ -25,6 +25,8 @@

 # Determine the target (i.e. which HAL to use).
 # The default is $(ARCH)-elf
+TARGET-$(CONFIG_X86) = i386-elf
+TARGET-$(CONFIG_X86_64) = x86_64-elf
 TARGET-$(CONFIG_CPU_32v4) = armv4-$(ENDIAN)-elf
 TARGET-$(CONFIG_CPU_MIPS32_R1) = mips1-$(ENDIAN)-elf
 TARGET-$(CONFIG_CPU_MIPS32_R2) = mips-$(ENDIAN)-elf

Només recordar que hem de tenir instal·lats els següents paquets:

build-essential, madwifi-source i madwifi-tools

Un cop modificat els arxius seguim els passos del blog abans citat.

Ara tinc algun problema amb la bateria i l’acpi… a veure si hi trobo la solució aviat :(

Discussion Area - Leave a Comment




*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word