You are not logged in.

#1 2008-05-12 15:45:49

2k
Member
From: UK
Registered: 2006-02-17
Posts: 76

problems with Atheros AR5007 [solved]

Hi there,

I have been trying to get my new laptop (compaq presario A900) to see the wireless network but I'm having no sucess, I get error messages that disapear to fast when it boots up and no network access the card is an Atheros AR5007.

I thought that I had followed the wiki correctly, but have gone wrong somewhere.

I installed wireless_tools and madwifi

I changed /etc/rc.conf to read like this

eth0="dhcp"
ath0="dhcp"
wlan_ath0="ath0 essid MyEssid key 123ABC....."

has anyone else had experience with this? is there anywhere obvious where I might be going wrong?

Thanks for any help
Mike

Last edited by 2k (2008-05-14 10:55:01)

Offline

#2 2008-05-12 17:16:45

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: problems with Atheros AR5007 [solved]

AFAIK you need to patch madwifi to work with the AR5007. Here's the modified PKGBUILD that works for me:

# $Id: PKGBUILD,v 1.38 2008/03/21 18:46:53 tpowa Exp $
# Originally by kleptophobiac <kleptophobiac@gmail.com>
# Modified by James Rayner for the repositories <iphitus@gmail.com>

_kernver=2.6.24-ARCH;

pkgname=madwifi
pkgver=r3366
pkgrel=1
pkgdesc="Madwifi drivers for Atheros wireless chipsets. For stock arch 2.6 kernel"
arch=(i686 x86_64)
license=('GPL')
url="http://madwifi.org"
depends=('madwifi-utils' 'kernel26>=2.6.24.3-4' 'kernel26<=2.6.25-0')
install=madwifi-ng.install
# subversion source: svn checkout http://svn.madwifi.org/madwifi/trunk madwifi
source=(http://snapshots.madwifi.org/special/madwifi-nr-r3366+ar5007.tar.gz)

build() {
  [ "${CARCH}" == "i686" ] && export ARCH=i386

  #cd $startdir/src/$pkgname-$pkgver
  cd $startdir/src/madwifi-nr-r3366+ar5007
  sed -i -e 's/-Werror//g' Makefile.inc
  make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules|| return 1
  make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules \
       DESTDIR=$startdir/pkg KERNELRELEASE=$_kernver install-modules
  sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install

  # install to wireless kernel directory
  mkdir -p $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
  mv $startdir/pkg/lib/modules/$_kernver/net/* $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
  rm -r $startdir/pkg/lib/modules/$_kernver/net/
}

Offline

#3 2008-05-13 10:10:17

2k
Member
From: UK
Registered: 2006-02-17
Posts: 76

Re: problems with Atheros AR5007 [solved]

sorry if i sound stupid here, what do I do with the above code? or can someone point me towards some instructions about what to do with the above code?

Thanks
Mike

Offline

#4 2008-05-13 15:17:07

tesjo
Member
Registered: 2007-11-30
Posts: 164

Re: problems with Atheros AR5007 [solved]

It is a PKGBUILD. In a new directory save the code as a file named PKGBUILD. Then from that directory as non-root run makepkg. This should build a package. Then install as root by pacman -U 'packagename'.

Alternatively, get source http://snapshots.madwifi.org/special/ma … 007.tar.gz, I used an early version of this r2756 which worked for me, and build yourself using make install. You can then modprobe or add to Modules in /etc/rc.conf ath_pci and wlan_scan_sta.

Last edited by tesjo (2008-05-13 17:23:43)

Offline

#5 2008-05-14 10:54:41

2k
Member
From: UK
Registered: 2006-02-17
Posts: 76

Re: problems with Atheros AR5007 [solved]

Nice one,

Try as i might i couldn't get makepkg to work as i kept getting unknow command errors so I then used your other method and it worked perfectly thanks very much

Mike

Offline

Board footer

Powered by FluxBB