AR242x 802.11abg Wireless PCI Express Adapter [168c:001c] (rev 01) not working in Ubuntu 8.04

Asked by antonesimon

i have an asus X80N series laptop. it has a ATHEROS Wireless. it is not detecting any wireless network in Ubuntu operating system. BUT it is working in windows. pls help me

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Rijckenberg
Solved:
Last query:
Last reply:
Revision history for this message
Ernest Yang (ernest-atheros) said :
#1

1. It seems to be Atheros AR5007EG wireless Network Adapter, can you post "lspci -nnn" and "lshw -C network" output?
2. Does the in-kernel ath5k cannot bringup the card?

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

Hi,

Please first connect your network card to the wireless router using a LAN cable.

Then please follow this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Run the following commands (copy-paste each line below to the Terminal then hit <enter> after each line)

sudo iwlist scanning
nm-tool
iwconfig
ifconfig
sudo lshw -C network
lspci -nn
lsusb
uname -a
dmesg | grep ound
dmesg | grep witch

Step 3: Post results (cut/paste terminal output from each command) here

Regards,

Mark

Revision history for this message
antonesimon (antonesimon) said :
#3

antonesimon@antonesimon-laptop:~$ lshw -c network
Hardware Lister (lshw) - B.02.12.01
usage: lshw [-format] [-options ...]
       lshw -version

 -version print program version (B.02.12.01)

format can be
 -html output hardware tree as HTML
 -xml output hardware tree as XML
 -short output hardware paths
 -businfo output bus information

options can be
 -class CLASS only show a certain class of hardware
 -C CLASS same as '-class CLASS'
 -disable TEST disable a test (like pci, isapnp, cpuid, etc. )
 -enable TEST enable a test (like pci, isapnp, cpuid, etc. )
 -quiet don't display status
 -sanitize sanitize output (remove sensitive information like serial numbers, etc.)

antonesimon@antonesimon-laptop:~$ lspci - nnn
Usage: lspci [<switches>]

-v Be verbose
-n Show numeric ID's
-nn Show both textual and numeric ID's (names & numbers)
-b Bus-centric view (PCI addresses and IRQ's instead of those seen by the CPU)
-x Show hex-dump of the standard portion of config space
-xxx Show hex-dump of the whole config space (dangerous; root only)
-xxxx Show hex-dump of the 4096-byte extended config space (root only)
-s [[[[<domain>]:]<bus>]:][<slot>][.[<func>]] Show only devices in selected slots
-d [<vendor>]:[<device>] Show only selected devices
-t Show bus tree
-m Produce machine-readable output
-i <file> Use specified ID database instead of /usr/share/misc/pci.ids.gz
-D Always show domain numbers
-M Enable `bus mapping' mode (dangerous; root only)
-P <dir> Use specified directory instead of /proc/bus/pci
-H <mode> Use direct hardware access (<mode> = 1 or 2)
-F <file> Read configuration data from given file
-G Enable PCI access debugging
antonesimon@antonesimon-laptop:~$

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#4

Hi,

Please copy-paste the 10 commands into the Terminal. No need to type the commands.

Then send us the output.

Regards,

Mark

Revision history for this message
antonesimon (antonesimon) said :
#5

hai
sorry for late. i didn't have a lan

antonesimon@antonesimon-laptop:~$ sudo iwlist scanning
sudo: unable to resolve host antonesimon-laptop
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.
antonesimon@antonesimon-laptop:~$ nm-tool

NetworkManager Tool

State: connected

- Device: eth0 ----------------------------------------------------------------
  NM Path: /org/freedesktop/NetworkManager/Devices/eth0
  Type: Wired
  Driver: forcedeth
  Active: yes
  HW Address: 00:1F:C6:EB:07:5F

  Capabilities:
    Supported: yes
    Carrier Detect: yes
    Speed: 100 Mb/s

  Wired Settings
    Hardware Link: yes

  IP Settings:
    IP Address: 172.16.2.215
    Subnet Mask: 255.255.240.0
    Broadcast: 172.16.15.255
    Gateway: 172.16.0.1
    Primary DNS: 0.0.0.0
    Secondary DNS: 0.0.0.0
antonesimon@antonesimon-laptop:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

antonesimon@antonesimon-laptop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1f:c6:eb:07:5f
          inet addr:172.16.2.215 Bcast:172.16.15.255 Mask:255.255.240.0
          inet6 addr: fe80::21f:c6ff:feeb:75f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:32477 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3672 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7793089 (7.4 MB) TX bytes:598907 (584.8 KB)
          Interrupt:221 Base address:0x6000

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:384 errors:0 dropped:0 overruns:0 frame:0
          TX packets:384 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:23232 (22.6 KB) TX bytes:23232 (22.6 KB)
antonesimon@antonesimon-laptop:~$ sudo lshw -C network
sudo: unable to resolve host antonesimon-laptop
  *-network
       description: Ethernet interface
       product: MCP67 Ethernet
       vendor: nVidia Corporation
       physical id: a
       bus info: pci@0000:00:0a.0
       logical name: eth0
       version: a2
       serial: 00:1f:c6:eb:07:5f
       size: 100MB/s
       capacity: 1GB/s
       width: 32 bits
       clock: 66MHz
       capabilities: pm msi ht bus_master cap_list ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=forcedeth driverversion=0.61 duplex=full ip=172.16.2.215 latency=0 link=yes maxlatency=20 mingnt=1 module=forcedeth multicast=yes port=MII speed=100MB/s
  *-network UNCLAIMED
       description: Ethernet controller
       product: AR242x 802.11abg Wireless PCI Express Adapter
       vendor: Atheros Communications Inc.
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix cap_list
       configuration: latency=0
antonesimon@antonesimon-laptop:~$ lspci -nn
00:00.0 RAM memory [0500]: nVidia Corporation MCP67 Memory Controller [10de:0547] (rev a2)
00:01.0 ISA bridge [0601]: nVidia Corporation MCP67 ISA Bridge [10de:0548] (rev a2)
00:01.1 SMBus [0c05]: nVidia Corporation MCP67 SMBus [10de:0542] (rev a2)
00:01.3 Co-processor [0b40]: nVidia Corporation MCP67 Co-processor [10de:0543] (rev a2)
00:02.0 USB Controller [0c03]: nVidia Corporation MCP67 OHCI USB 1.1 Controller [10de:055e] (rev a2)
00:02.1 USB Controller [0c03]: nVidia Corporation MCP67 EHCI USB 2.0 Controller [10de:055f] (rev a2)
00:04.0 USB Controller [0c03]: nVidia Corporation MCP67 OHCI USB 1.1 Controller [10de:055e] (rev a2)
00:04.1 USB Controller [0c03]: nVidia Corporation MCP67 EHCI USB 2.0 Controller [10de:055f] (rev a2)
00:06.0 IDE interface [0101]: nVidia Corporation MCP67 IDE Controller [10de:0560] (rev a1)
00:07.0 Audio device [0403]: nVidia Corporation MCP67 High Definition Audio [10de:055c] (rev a1)
00:08.0 PCI bridge [0604]: nVidia Corporation MCP67 PCI Bridge [10de:0561] (rev a2)
00:09.0 IDE interface [0101]: nVidia Corporation MCP67 AHCI Controller [10de:0550] (rev a2)
00:0a.0 Ethernet controller [0200]: nVidia Corporation MCP67 Ethernet [10de:054c] (rev a2)
00:0c.0 PCI bridge [0604]: nVidia Corporation MCP67 PCI Express Bridge [10de:0563] (rev a2)
00:0e.0 PCI bridge [0604]: nVidia Corporation MCP67 PCI Express Bridge [10de:0563] (rev a2)
00:12.0 VGA compatible controller [0300]: nVidia Corporation GeForce 7000M (rev a2) [10de:0533] (rev a2)
00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration [1022:1100]
00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map [1022:1101]
00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller [1022:1102]
00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control [1022:1103]
01:06.0 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd R5C832 IEEE 1394 Controller [1180:0832] (rev 05)
01:06.1 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 22)
01:06.2 System peripheral [0880]: Ricoh Co Ltd R5C843 MMC Host Controller [1180:0843] (rev 12)
01:06.3 System peripheral [0880]: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter [1180:0592] (rev 12)
01:06.4 System peripheral [0880]: Ricoh Co Ltd xD-Picture Card Controller [1180:0852] (rev ff)
02:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter [168c:001c] (rev 01)
antonesimon@antonesimon-laptop:~$ lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 003: ID 04f2:b028 Chicony Electronics Co., Ltd
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 004: ID 0b05:1712 ASUSTek Computer, Inc.
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046d:c019 Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
antonesimon@antonesimon-laptop:~$ uname -a
Linux antonesimon-laptop 2.6.24-23-generic #1 SMP Mon Jan 26 00:13:11 UTC 2009 i686 GNU/Linux
antonesimon@antonesimon-laptop:~$ dmesg | grep ound
[ 0.000000] found SMP MP-table at 000ff780
[ 11.986149] ACPI: Looking for DSDT in initramfs... error, file /DSDT.aml not found.
[ 12.134898] ACPI: EC: EC description table is found, configuring boot EC
[ 12.354376] pnp: PnP ACPI: found 15 devices
[ 13.173976] assign_interrupt_mode Found MSI capability
[ 13.174079] assign_interrupt_mode Found MSI capability
[ 13.526583] isapnp: No Plug & Play device found
[ 13.569727] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 15.795326] hub 1-0:1.0: USB hub found
[ 15.955007] hub 2-0:1.0: USB hub found
[ 16.212600] hub 3-0:1.0: USB hub found
[ 16.328357] hub 4-0:1.0: USB hub found
[ 28.538947] ricoh-mmc: Ricoh MMC controller found at 0000:01:06.2 [1180:0843] (rev 12)
[ 28.642841] uvcvideo: Found UVC 1.00 device USB2.0 0.3M UVC WebCam (04f2:b028)
[ 28.682665] sdhci: SDHCI controller found at 0000:01:06.1 [1180:0822] (rev 22)
[ 30.637782] lp: driver loaded but no devices found
[ 33.060255] No dock devices found.
[ 33.320293] powernow-k8: Found 1 AMD Turion(tm) 64 X2 Mobile Technology TL-58 processors (2 cpu cores) (version 2.20.00)
[ 34.082211] apm: BIOS not found.
antonesimon@antonesimon-laptop:~$ dmesg | grep witch
[ 11.667917] SMP alternatives: switching to UP code
[ 11.992143] SMP alternatives: switching to SMP code
[ 12.390935] Clockevents: could not switch to one-shot mode: lapic is not functional.
[ 12.390938] Could not switch to high resolution mode on CPU 0
[ 12.394967] Clockevents: could not switch to one-shot mode: lapic is not functional.
[ 12.394974] Could not switch to high resolution mode on CPU 1
[ 14.800802] ACPI: EC: non-query interrupt received, switching to interrupt mode
[ 27.157181] input: Lid Switch as /devices/virtual/input/input6
[ 27.160482] ACPI: Lid Switch [LID]

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#6

Hi,

Please try this Atheros driver installation procedure:

First under System/Administration/HardwareDrivers, disable both the Atheros HAL and the Atheros wireless thing and then reboot.

Then from a terminal type (press enter key after each line)

sudo aptitude update

sudo aptitude install build-essential subversion

cd ~

mkdir madwifi

cd madwifi

svn co https://217.24.1.142/madwifi/branches/madwifi-hal-0.10.5.6

cd madwifi-hal-0.10.5.6

make

sudo make install

sudo gedit /etc/modules

Now add the Atheros kernel module ath_pci to the list of modules to be automatically loaded at boot by adding

ath_pci

to the end of the /etc/modules file. (Gedit editor automatically opens)

Now you can reboot and it should work.

Hope this helps,

Regards,

Mark

Revision history for this message
antonesimon (antonesimon) said :
#7

hai mark
this is what happened when i typed.
antonesimon@antonesimon-laptop:~/madwifi$ svn co https://217.24.1.142/madwifi/branches/madwifi-hal-0.10.5.6
svn: PROPFIND request failed on '/madwifi/branches/madwifi-hal-0.10.5.6'
svn: PROPFIND of '/madwifi/branches/madwifi-hal-0.10.5.6': could not connect to server (https://217.24.1.142)
antonesimon@antonesimon-laptop:~/madwifi$
pls help me
antony simon

Revision history for this message
antonesimon (antonesimon) said :
#8

hai mark
also i can't hear any music or log on or log off sound in ubuntu.video is working, but no sound is coming.
pls help me
antony simon

Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#9

Hi,

The procedure that I gave you, works for everybody else, so it is strange that it does not work this time. You might have some proxy connection issues or other types of connection problems.

Please try this alternative procedure instead:

*Preparing your system*

sudo aptitude install build-essential

This will install all the required compilers.

*Method 1*

Now you need to download the latest wireless drivers from
here<http://wireless.kernel.org/download/compat-wireless-2.6/>using
the following command

wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2

Now you have compat-wireless-2.6.tar.bz2 file you need to extract this file
using the following command from the terminal

sudo tar -jxvf compat-wireless-2.6.tar.bz2

Move to the directory you extracted in terminal

cd directoryname

Run the following commands

make

sudo make install

sudo make unload

sudo make load

*Uninstall drivers*

If you want to uninstall cd in to the wireless drivers directory path and
use the following commands

sudo make unload

sudo make uninstall

*Method 2*

if you are on Intrepid and still cannot use wifi with an Atheros card , you
need to do two things, 1) install linux-backport-modules and 2) blacklist
ath_pci and ath_hal.

To install the backport modules, just search for it on Synaptic or use
apt-get or aptitude, it’s called linux-backports-modules-intrepid. Then on
System/Administration/Hardware Drivers make sure Atheros driver is
activated.

sudo aptitude install linux-backports-modules-intrepid

To blacklist the old modules, do this:

gksudo gedit /etc/modprobe.d/blacklist

And add the following lines At the bottom of the file save and exit

blacklist ath_hal
blacklist ath_pci

Now you need to reboot your system.

IF after this steps you still cannot make it work, you probably have
something left still blacklisting ath5k, thus making it not to load. You
should search all the files on /etc/modprobe.d for all lines that had:

blacklist ath5k

And add a # before the start of the line, thus making it into a comment so
the above one becomes

# blacklist ath5k

Save and exit the file

Regards,

Mark

Revision history for this message
Ernest Yang (ernest-atheros) said :
#10

Hi, antonesimon:

here is the log that i use to check of madwifi, please check if you type "t" when connection prompts question.

$ svn co https://217.24.1.142/madwifi/branches/madwifi-hal-0.10.5.6
Error validating server certificate for 'https://217.24.1.142:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
 - The certificate hostname does not match.
Certificate information:
 - Hostname: svn.madwifi-project.org
 - Valid: from Mon, 03 Nov 2008 22:23:59 GMT until Sat, 02 May 2009 22:23:59 GMT

 - Issuer: http://www.cacert.org, Root CA
 - Fingerprint: 27:04:cd:a3:d2:93:2c:72:00:cc:17:8f:c5:85:95:96:fb:df:83:54
(R)eject, accept (t)emporarily or accept (p)ermanently? t
A madwifi-hal-0.10.5.6/tools/man/athstats.8
A madwifi-hal-0.10.5.6/tools/man/athctrl.8
A madwifi-hal-0.10.5.6/tools/man/80211debug.8
A madwifi-hal-0.10.5.6/tools/man/athdebug.8
A madwifi-hal-0.10.5.6/tools/man/athkey.8
A madwifi-hal-0.10.5.6/tools/man/wlanconfig.8
A madwifi-hal-0.10.5.6/tools/athstats.c
A madwifi-hal-0.10.5.6/tools/Makefile

Revision history for this message
antonesimon (antonesimon) said :
#11

hai mark
the method 1 you suggested works
thanks a lot
and sorry for the dealy
now i am able to get wireless
antony simon

Revision history for this message
antonesimon (antonesimon) said :
#12

Thanks Mark Rijckenberg, that solved my question.