WiFi problem on Acer Aspire 5520

Asked by MupKoo

I have installed ubuntu7.10 on my acer aspire 5520 laptop with a Atheros AR5007EG WiFI card and i can't get it to work.. can some one help me by givin me step by step instructions cause this is the first time i am on Linux and i dont know a thing
Thx

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
MupKoo
Solved:
Last query:
Last reply:
Revision history for this message
Gabriel (xgammax) said :
#1

Welcome to the Atheros-Problem-Club :-)
Your Atheros should work with the madwifi-driver.
First of all open "/etc/modprobe.d/aliases" and look if there is "alias net-pf-10 xxx" set to "alias net-pf-10 off".
Download the latest version from http://snapshots.madwifi.org/madwifi-ng/ (scroll down for the latest entry)
Extract the downloaded file (tar xzvf xxx.tar.gz)
change to the generated directory
then:

make
make install
modprobe ath_pci

then there should be a device calld "ath0" when you type iwconfig

REBOOT

now your atheros should be activated and you can configure it by the networkmanager in the upper right corner.
if not you have to use wpa_supplicant - infos if needed

Hope this helps

Greetings
Gabriel

Revision history for this message
MupKoo (mupkoo) said :
#2

mupkoo@mupkoo-laptop:~/Desktop/Opa/madwifi-ng-r3117-20080105$ make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  CC [M] /home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath/if_ath.o
  CC [M] /home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath/if_ath_pci.o
  LD [M] /home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath/ath_pci.o
  CC [M] /home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/ah_os.o
  HOSTCC /home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:26:19: error: stdio.h: No such file or directory
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:27:19: error: errno.h: No such file or directory
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:28:20: error: getopt.h: No such file or directory
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:29:20: error: string.h: No such file or directory
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:30:20: error: stdlib.h: No such file or directory
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:32:23: error: sys/fcntl.h: No such file or directory
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:33:22: error: sys/stat.h: No such file or directory
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c: In function 'uudecode_usage':
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:37: warning: implicit declaration of function 'printf'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:37: warning: incompatible implicit declaration of built-in function 'printf'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c: At top level:
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:40: error: expected ')' before '*' token
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:70: error: expected ')' before '*' token
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c: In function 'main':
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:121: error: 'FILE' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:121: error: (Each undeclared identifier is reported only once
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:121: error: for each function it appears in.)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:121: error: 'src_stream' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:122: error: 'dst_stream' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:122: error: 'NULL' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:130: warning: implicit declaration of function 'getopt'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:134: error: 'optarg' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:138: warning: implicit declaration of function 'exit'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:138: warning: incompatible implicit declaration of built-in function 'exit'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:141: error: 'optind' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:142: error: 'stdin' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:144: warning: implicit declaration of function 'fopen'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:146: warning: implicit declaration of function 'fprintf'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:146: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:146: error: 'stderr' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:147: warning: implicit declaration of function 'strerror'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:147: error: 'errno' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:147: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:148: warning: incompatible implicit declaration of built-in function 'exit'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:152: warning: incompatible implicit declaration of built-in function 'exit'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:156: warning: implicit declaration of function 'get_line_from_file'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:156: warning: assignment makes pointer from integer without a cast
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:157: warning: implicit declaration of function 'strncmp'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:164: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:165: warning: incompatible implicit declaration of built-in function 'exit'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:168: warning: implicit declaration of function 'strtoul'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:170: warning: implicit declaration of function 'strchr'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:170: warning: incompatible implicit declaration of built-in function 'strchr'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:172: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:173: warning: incompatible implicit declaration of built-in function 'exit'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:178: warning: implicit declaration of function 'strcmp'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:179: error: 'stdout' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:182: error: 'O_WRONLY' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:182: error: 'O_CREAT' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:182: error: 'O_TRUNC' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:186: error: 'O_EXCL' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:188: warning: implicit declaration of function 'open'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:189: error: 'S_IRWXU' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:189: error: 'S_IRWXG' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:189: error: 'S_IRWXO' undeclared (first use in this function)
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:191: warning: implicit declaration of function 'fdopen'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:193: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:194: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:195: warning: incompatible implicit declaration of built-in function 'exit'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:199: warning: implicit declaration of function 'read_stduu'
/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode.c:201: warning: implicit declaration of function 'fclose'
make[3]: *** [/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal/uudecode] Error 1
make[2]: *** [/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105/ath_hal] Error 2
make[1]: *** [_module_/home/mupkoo/Desktop/Opa/madwifi-ng-r3117-20080105] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [modules] Error 2

Gives me an error... can some one help to solve it?

Revision history for this message
Gabriel (xgammax) said :
#3

check if you have the C-Compiler installed.
I think the easiest way to install all needed files is to install a C programming environment like "geany".
Alternative you can search and install the files manually.
This should be:
- make
- g++
- gpp
- libc6
- libgcc

When installed type "make clean" in the madwifi folder before "make" and "make install"

Revision history for this message
MupKoo (mupkoo) said :
#4

Can you give me the codes cause i am newbie with ubuntu and linux at all

Revision history for this message
Gabriel (xgammax) said :
#5

in the gnome-mainmenue click on "system" -> "system settings" -> "Synaptic-Packages" (sorry, i have the german ubuntu version and i dont know the english menue items exactly)
here you can search for the files and install it

Revision history for this message
MupKoo (mupkoo) said :
#6

Ok i got the first code MAKE is ok but the rest...

mupkoo@mupkoo-laptop:~/Desktop/New/madwifi-ng-r2756-20071018$ make install
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/mupkoo/Desktop/New/madwifi-ng-r2756-20071018 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  Building modules, stage 2.
  MODPOST 14 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
sh scripts/find-madwifi-modules.sh -r 2.6.22-14-generic
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/wlan_scan_sta.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/wlan_wep.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/ath_pci.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/wlan_xauth.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/ath_rate_sample.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/ath_rate_amrr.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/wlan_ccmp.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/wlan_tkip.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/wlan_acl.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/wlan_scan_ap.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/wlan.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/madwifi/ath_rate_onoe.ko': Permission denied
rm: cannot remove `/lib/modules/2.6.22-14-generic/volatile/ath_hal.ko': Permission denied
for i in ./ath ./ath_hal ./ath_rate ./net80211; do \
                make -C $i install || exit 1; \
        done
make[1]: Entering directory `/home/mupkoo/Desktop/New/madwifi-ng-r2756-20071018/ath'
test -d //lib/modules/2.6.22-14-generic/net || mkdir -p //lib/modules/2.6.22-14-generic/net
mkdir: cannot create directory `//lib/modules/2.6.22-14-generic/net': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/mupkoo/Desktop/New/madwifi-ng-r2756-20071018/ath'
make: *** [install-modules] Error 1
mupkoo@mupkoo-laptop:~/Desktop/New/madwifi-ng-r2756-20071018$ modprode ath_pci
bash: modprode: command not found
mupkoo@mupkoo-laptop:~/Desktop/New/madwifi-ng-r2756-20071018$

Revision history for this message
MupKoo (mupkoo) said :
#7

Ops... and the second code MAKE INSTALL is done.. i just write SUDO MAKE INSTALL and every thing was ok.. but now the MODPRODE ATH_PCI is not ok

mupkoo@mupkoo-laptop:~$ modprode ath_pci
bash: modprode: command not found

Revision history for this message
MupKoo (mupkoo) said :
#8

OK the WiFi is working now without the MODPRODE ATH_PCI code..
Thank U so much for helping :)

Revision history for this message
Gabriel (xgammax) said :
#9

you're welcome :-)

Revision history for this message
Giuseppe Leone (shalashaska-gl) said :
#10

Hi, have you got ubuntu 32 bit or 64 bit?
Thanks.

Revision history for this message
MupKoo (mupkoo) said :
#11

32bit Ubuntu..