PDA

View Full Version : [ubuntu] [SOLVED] Atheros AR5007 not working on 8.04 Hardy


jdv1800
April 25th, 2008, 08:21 AM
I have an Atheros AR5007 wireless network adapter that isn't turning on with Hardy 8.04. There is one of those unsupported drivers that shows up in system. Any ideas?

ToM-X
April 25th, 2008, 08:45 AM
I'm working on Atheros AR5007EG, I'l get back to you if I get anywhere.

Same situation I bet.

Farivan
April 25th, 2008, 08:59 AM
I'm having the same problem, and as an absolute new-comer to ubuntu I'd appreciate any advice anyone could offer...

ophion
April 25th, 2008, 09:26 AM
I have the same problem on an Asus F3KA-A1 notebook (AR5007EG).

ophion
April 25th, 2008, 10:05 AM
There is a lot of information on the problem at the URL below. Things do not look promising for those running 64-bit systems.

http://madwifi.org/ticket/1679

IndyGUnFreak
April 25th, 2008, 10:36 AM
I just setup my AR5007EG... Here's how I got it working in Gutsy, and it worked just fine in Hardy also, with some minor modifications...

http://ubuntuforums.org/showthread.php?t=680209


For what its worth, my device is a AR5007EG, but it is misdetected as

06:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)


I went to Hardware drivers, and disabled HAL, but left "Support for Atheros 802.11 wireless Lan cards" enabled. This option was never there in Gutsy. Then I restarted and used the instructions and patch for the madwifi driver in the link above, and plugged in my network settings. Works fine w/ WPA, etc.

Edit: As mentioned, Not sure how this will work on 64bit, it worked fine on 32bit. Laptop is a Acer Aspire 5315-2153

IGF

ToM-X
April 25th, 2008, 12:23 PM
Right, I'm back now like I promised.

Atheros AR5007EG for hardy.

First of all go to "System/Administration/Hardware Drivers" and disable by un-ticking the box.:

Atheros Hardware Access Layor (Hal)

Then Reboot

Then open the terminal "Applications/Accessories/Terminal" and copy the following:

wget http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz

sudo apt-get install build-essential

tar xfz madwifi-ng-r2756+ar5007.tar.gz

cd madwifi-ng-r2756+ar5007

make

sudo make install

sudo modprobe ath_pci

sudo reboot

Then thats it :D Enjoy!

raiwo
April 25th, 2008, 04:23 PM
my atheros 5007 card worked fine with above instructions in gutsy but now its recognized in hardy as AR242x card!?!

04:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

And yes, it really is a atheros 5007, not atheros 5006 as gutsy thought or AR242X card as hardy thinks... now I am using ndiswrapper to get wireless as madwifi patch refuses to compile.
:confused:

:(

ToM-X
April 25th, 2008, 04:41 PM
my atheros 5007 card worked fine with above instructions in gutsy but now its recognized in hardy as AR242x card!?!

04:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

And yes, it really is a atheros 5007, not atheros 5006 as gutsy thought or AR242X card as hardy thinks... now I am using ndiswrapper to get wireless as madwifi patch refuses to compile.
:confused:

:(


What error did you get when trying to compile? and did you disable HAL?

ophion
April 25th, 2008, 05:16 PM
ToM-X, does your procedure work for 64-bit systems?

Pinoy915
April 25th, 2008, 05:51 PM
This procedure did not work for me. I am running Ubuntu 8.04 AMD64.

IndyGUnFreak
April 25th, 2008, 06:28 PM
I am running Ubuntu 8.04 AMD64.

Thats probably why. Read the rest of the thread, I believe someone posted a link that details the issues this device has w/ 64bit.

IGF

major_rocks
April 25th, 2008, 07:18 PM
just curious if tomx is running 64bit hardware and 32bit ubuntu or, 64bit ubuntu on (obviously) 64bit hardware.

Let us know...Please

Pinoy915
April 25th, 2008, 08:16 PM
Success!!! I have my wireless card working! I am using ndiswrapper with 64 bit drivers. Here is the thread I used to get mine working. http://ubuntuforums.org/showthread.php?t=512828

Here are the only steps I used. I did not disable anything in the restricted drivers menu.

Go to System/Administration/Hardware Drivers. Disable the default drivers by unchecking "Atheros Hardware Access Layer(HAL)" and "Support for Atheros 802.11 Wireless LAN cards." Reboot if necessary.

Blacklist the default driver:

echo "blacklist ath_pci" | sudo tee -a /etc/modprobe.d/blacklist

Get the 64 bit driver:
wget http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz

Extract driver:
tar xvf ar5007eg-*.tar.gz
tar xvf ndiswrapper-newest.tar.gz

Ensure you have your kernel headers and the build essential package.
sudo aptitude update && sudo aptitude install linux-headers-$(uname -r) build-essential

Install ndisgtk:

sudo apt-get install ndisgtk

Either use ndisgtk to install the driver or:

sudo ndiswrapper -i net5211.inf

Load up ndiswrapper every time Linux is loaded:
sudo modprobe ndiswrapper
echo "ndiswrapper" | sudo tee -a /etc/modules

Restart:
sudo reboot

My card was detected and shows available networks but if it does not, try sudo iwlist scan

My laptop is a Compaq C751NR. lspci gives me:
01:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

I am running Ubuntu AMD64 8.04. Oh and by the way, the button for my wireless network is orange(off) and will not turn blue(on) but it is indeed working. It just will not change colors. The actual button works though.

ToM-X
April 25th, 2008, 09:25 PM
Nice, we have the card working in 32bit and 64bit.Just out of curiosity Pinoy915, does the WIFI card find networks after reboot. That was the problem with 32bit.

Either way, Nice work. Good to see the card working so everyone has wifi :)

See you later.

CPImmanuel
April 25th, 2008, 09:53 PM
I get stuck on the build:
paul@paul-laptop:~$ cd madwifi-ng-r2756+ar5007
paul@paul-laptop:~/madwifi-ng-r2756+ar5007$ make
cd: 1: can't cd to /lib/modules/2.6.24-16-386/build
Makefile.inc:66: *** /lib/modules/2.6.24-16-386/build is missing, please set KERNELPATH. Stop.
paul@paul-laptop:~/madwifi-ng-r2756+ar5007$

any ideas? What do I set KERNALPATH to?

I assume that somewhow I need to add a string to indicate where the build code is...

Paul

ToM-X
April 25th, 2008, 11:09 PM
I get stuck on the build:
paul@paul-laptop:~$ cd madwifi-ng-r2756+ar5007
paul@paul-laptop:~/madwifi-ng-r2756+ar5007$ make
cd: 1: can't cd to /lib/modules/2.6.24-16-386/build
Makefile.inc:66: *** /lib/modules/2.6.24-16-386/build is missing, please set KERNELPATH. Stop.
paul@paul-laptop:~/madwifi-ng-r2756+ar5007$

any ideas? What do I set KERNALPATH to?

I assume that somewhow I need to add a string to indicate where the build code is...

Paul


Try:

sudo apt-get install linux-headers-$(uname -r)

Pinoy915
April 26th, 2008, 01:27 AM
Yes, it auto connects me to my wifi after reboot.

major_rocks
April 26th, 2008, 01:40 AM
nice job pinoy... I followed those same intructions for Gutsy, however it seems as though they dont quite work for me in Hardy...... i followed your abbreviated instructions, and the card see's my wireless network as well as others but it will not connect.

Did you by chance blacklist "ath_pci" ?

what you have posted should work for me, for some reason something small is different from Gutsy to Hardy.

Pinoy915
April 26th, 2008, 02:16 AM
nice job pinoy... I followed those same intructions for Gutsy, however it seems as though they dont quite work for me in Hardy...... i followed your abbreviated instructions, and the card see's my wireless network as well as others but it will not connect.

Did you by chance blacklist "ath_pci" ?

what you have posted should work for me, for some reason something small is different from Gutsy to Hardy.

Oh man, sorry for that. I forgot to add that. Yes, I did blacklist it so the driver that came with Ubuntu did not load and uses ndiswrapper instead.

major_rocks
April 26th, 2008, 03:07 AM
right on !!

wireless is working for me now after following your instructions, just need to add the blacklist of "ath_pci",

echo "blacklist ath_pci" | sudo tee -a /etc/modprobe.d/blacklist

however i also had to disable support for "atheros wireless lan" & "hal" in the restricted drivers: System > Administration > Hardware Drivers.

Gonna reboot now and see if it atomatically reconnects.

Thanks Dude !

_godbout_
April 26th, 2008, 04:09 AM
Everything was working fine with the beta of Hardy. Then, I crashed the system and install the fresh new release, but cannot make the wireless work anymore! As a long time ago, I've compiled and installed ndiwrapper, the 64bit driver, wicd, get the led working and so on, but no connection.

Maybe I'll give a shot to madwifi?
Let you know.

sanctified-x
April 26th, 2008, 04:12 AM
Thanks for all the help guys. I can't wait to try this out. :D

major_rocks
April 26th, 2008, 12:27 PM
Gonna reboot now and see if it atomatically reconnects.

ok, it got a bit late last night........anyways. After a reboot i ran into issues of network manager seeing wireless networks but again not being able to connect. This morning i made the switch from Network-Manager to Wicd, and BADA-BING! no more problems.

Just thought i'd post that for anyone else having the same issues .=)

Pinoy915
April 26th, 2008, 02:15 PM
The led color problem can be solved with newer drivers I presume. When I was on Gutsy, I do not remember which driver I used but I had the network working with a driver and had the led problem. I switched to a different driver and the led problem was fixed. I am afraid to touch my setup at the moment to get the led working. The madwifi fix may work with Hardy 32 bit. I am running x64 so x64 drivers are needed.

gnicko
April 26th, 2008, 10:59 PM
[QUOTE=ToM-X;4791500]Right, I'm back now like I promised.

Atheros AR5007EG for hardy.

First of all go to "System/Administration/Hardware Drivers" and disable by un-ticking the box.:

Atheros Hardware Access Layor (Hal)

Thanks!!

Wanted to point out that I had to disable "Support for Atheros 802.11 Wireless Cards" in order for this to work (Actually in order to get my system to even boot the new kernel)

I'm running an Acer Extensa 5420 w/AR5007EG...

Once I did that, everything was good!!

lanruisen
April 26th, 2008, 11:17 PM
ToM-X, Thank You! Your post (#7) got my wireless back up.

_godbout_
April 28th, 2008, 12:44 AM
Ok, I've played with ndiswrapper, madwifi and Hardy 32 and 64bits. I was previously running on Hardy beta with ndiswrapper and everything worked, even the led and the option of controlling how the led was blinking!
This time, I couldn't get ndiswrapper works correctly, so I decided to try the madwifi. Under the 64bits, impossible to make it work, so I went back to the 32bits version. Madwifi is working great, and I can even now monitor my wireless card how I want. Pretty cool, just missing the led :p

kevdog
April 28th, 2008, 01:02 AM
Just want to clarify that the patched madwifi driver for the ar5007 chipset does not work on 64 bit systems. I think its pretty clear by the responses in the thread it does not work on 64 bit systems, however this knowledge has also been officially published on the madwifi website. Hopefully a patched 64 bit driver will be available soon, but as of right now -- there is no 64 bit patched driver available.

rellai
April 28th, 2008, 01:51 AM
HI ALL
I have bought a loptop and disided to install Ubuntu
I installed drivers on wifi (Atheros 5007) modem. I installed them following to all the instructions in the post №7. Everything was ok but it was impossible to turn into waiting mode and hybernation: it threw out into the console and it doesn't work.
In pm-suspend.log the following is written:

Sat Apr 26 13:34:35 MSD 2008: running suspend hooks.
===== Sat Apr 26 13:34:35 MSD 2008: running hook: /usr/lib/pm-utils/sleep.d/00clear =====
===== Sat Apr 26 13:34:35 MSD 2008: running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== Sat Apr 26 13:34:36 MSD 2008: running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
===== Sat Apr 26 13:34:36 MSD 2008: running hook: /usr/lib/pm-utils/sleep.d/20video =====
kernel.acpi_video_flags = 0
===== Sat Apr 26 13:34:36 MSD 2008: running hook: /usr/lib/pm-utils/sleep.d/49bluetooth =====
===== Sat Apr 26 13:34:36 MSD 2008: running hook: /usr/lib/pm-utils/sleep.d/50modules =====
/usr/lib/pm-utils/functions: line 200: 6681 Segmentation fault modprobe -r $1
# could not unload 'ath_pci', usage count was 0

If you turn off the modem drivers everything is ok
Is it possible to solve this problem?
Thank you for your help

logrusmage
April 28th, 2008, 03:12 AM
-snip-

Thank you. I've been trying for at least 5 days to get this thing to work and this finally did it!

Now I can actually see wireless networks and click on em!

Unfortunately, they won't connect. It SAYS they have full strength, but it can't connect to them. Just attempts to for awhile before stopping, whence the tiny symbol changes into its "You have an errorlol" form.

Anyone have any ideas why this could be happening?

Here's what I get when I try to connect via the terminal:

beowolf@beowolf-laptop:~$ sudo dhclient wlan0
There is already a pid file /var/run/dhclient.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan0/00:1f:3a:8e:f4:d2
Sending on LPF/wlan0/00:1f:3a:8e:f4:d2
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.


So... what gives?

Pinoy915
April 28th, 2008, 12:14 PM
Mine stopped connecting a few days ago. I added to the instructions to disable the default drivers by going to System/Administration/Hardware Drivers and unchecking both the Atheros drivers. For some strange reason, it would connect me again now. Also, do not forget to blacklist the default drivers.

danstever
April 28th, 2008, 12:54 PM
Thanks ToM-X! This worked perfectly verbatim. For reference, I am using a Sony VAIO VGN-NR110E/S.

Props!

dwinstonm
April 28th, 2008, 11:26 PM
Thanks Tom-X for posting that solution, it seems to work just fine.

nicedude
April 28th, 2008, 11:45 PM
To anyone with AR5007EG Atheros wifi, If you use ndiswrapper + XP drivers you won't be able to put your wireless chip set into the neat modes like monitor or promiscuous mode. I am using gutsy 32bit with a 2.6.24 kernel which I pulled from the hardy repository together with patched MadWifi version "madwifi-nr-r3366+ar5007.tar.gz" drivers. Madwifi drivers blow the other solutions out of the water. If all you want to do is surf the web then you might be just fine, But I wouldn't trade my "monitor mode" for anything :-) Well if anyone here still has ar5007eg problems then drop me a PM and I will try to help ya.

abhilashkumar
April 29th, 2008, 12:11 AM
r.gz" drivers. Madwifi drivers blow the other solutions out of the water. If all you want to do is surf the web then you might be just fine, But I wouldn't trade my "monitor mode" for anything :-) Well if anyone here still has ar5007eg problems then drop me a PM and I will try to help ya.

I sorta agree.
Ndiswrapper was always a little buggy on my laptop. Requiring a recompile quite a few times.
Now I use the madwifi drivers and WICD. WICD is really easy to use and configuring your wifi network to connect is also really easy through it.

FredB
April 29th, 2008, 01:26 AM
Well, as I am using this horrible chipset under Hardy 64 bits, I had no other choice but to use windows XP 64 bits driver and ndiswrapper.

It worked without a lot of trouble. Sometimes, I have to remove / reload by hard ndiswrapper kernel module to go online with my wifi connection.

Besides this, no problem with that hardware. Gutsy was harder to set up with that wifi hardware.

Pinoy915
April 29th, 2008, 03:27 AM
Well, as I am using this horrible chipset under Hardy 64 bits, I had no other choice but to use windows XP 64 bits driver and ndiswrapper.

It worked without a lot of trouble. Sometimes, I have to remove / reload by hard ndiswrapper kernel module to go online with my wifi connection.

Besides this, no problem with that hardware. Gutsy was harder to set up with that wifi hardware.

I, too, will have to this sometimes. It will show the networks but will not connect. I just had to reload the driver. Madwifi patch is for the 32-bit version, correct? I will not go back to 32-bit and I will stick with 64-bit regardless of little things here and there with the wifi.

Anabolic_OMEN
April 29th, 2008, 06:29 AM
i had an acer 5315 with this exact wireless card.
i was unable to get it to work with the instructions in this post - so i post what did work for me :)

[information from bassetss or something like that on #ubuntu-uk, laptoptestingteam]

gksudo gedit /etc/default/linux-restricted-modules-common

Add ath_hal to the DISABLED_MODULES="" section so the file looks like this

# 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 both the nvidia drivers.
# You can also name each module individually, if you prefer a subset.

DISABLED_MODULES="ath_hal"

Now we need to install build-essential, download and extract the madwifi snapshot and patch, patch the snapshot and then install the patched driver

sudo apt-get install build-essential
wget 'http://madwifi.org/attachment/ticket/1679/madwifi-ng-0933.ar2425.20071130.i386.patch?format=raw'
wget http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz
tar zxvf madwifi-ng-r2756+ar5007.tar.gz
cd madwifi-ng-r2756+ar5007
patch -p0 < ../madwifi-ng-0933.ar2425.20071130.i386.patch\?format\=raw
make clean
make
sudo make install
sudo reboot

*note : http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r2756-20071018.tar.gz - link was down so i used
**note : patch has already been applied to the snapshot - but i have patch over it.


ubuntu 7.10 with all updates installed, should work with hardy since i was having problems with hardy and decided to use 7.10 but ran into the same problem. this time i had it fixed.

monitor mode works
adapter works as ath0 with wifi0 - no ndis wrapper, no mess.

louisiana84
April 29th, 2008, 06:44 AM
I know nothing about Linux, but I'm anti-windows. So, I bought a Toshiba a215-s5829 specifically for the purpose of having a decent Ubuntu laptop. Well, this whole atheros 5007 deal has soured me completely. If I have to go into terminal to fix this and start typing this 'code' in, well, screw it! That's ridiculous for someone with as little computing experience as me. I love Ubuntu. Had it on my previous Toshiba, but... All I want is the freakin' wireless to work. Otherwise, all I have is another desktop machine.

Anabolic_OMEN
April 29th, 2008, 08:42 AM
Well, these commands can be made into a script, so you could double click and it does it all for you.
I think nobody will bother to write a script for this.

Also doing this isnt too difficult and its a great way to learn.

Too many people are brought up in this gui sanbox, scared of text, manuals and the terminal :).

Pinoy915
April 29th, 2008, 01:01 PM
The command line is pretty powerful. Also, this "code" is just basically copying and pasting into the terminal. We have to do what we have to do to get it working and keep Windows off our laptops...lol.

ToM-X
April 29th, 2008, 01:11 PM
louisiana84

Sorry, this topic is for getting the Atheros AR5007 chipset working. We have the card working with simple commands. If you are not capable of doing such things then linux is not for you.

Stop complaining, this topic is not the place.

I will look into making a script but it will not be on my first priority due to coursework and the simplicity of the current commands to have the chip working.

ophion
April 29th, 2008, 01:26 PM
louisiana84

Sorry, this topic is for getting the Atheros AR5007 chipset working. We have the card working with simple commands. If you are not capable of doing such things then linux is not for you.

Stop complaining, this topic is not the place.

I will look into making a script but it will not be on my first priority due to coursework and the simplicity of the current commands to have the chip working.

This is why GNU/Linux fails, year after year. The onus of hardware support forever falls upon the vendor, never upon the user.

lemming465
April 29th, 2008, 01:31 PM
I know nothing about Linux, but I'm anti-windows. ... this whole atheros 5007 deal has soured me completely. If I have to go into terminal to fix this and start typing this 'code' in,

Unfortunately, not all vendors reflexively ship high quality open source drivers yet, and Atheros is among the worst, though that may be changing. In the interim, there only 3 solutions:

1. Buy hardware certified to work with Linux, e.g. from Dell.
2. Learn to be comfortable with the command line.
3. Wait 6-12 months for support to mature. I'm pretty sure the '5007s will be supported OK in ubuntu 8.10 this fall.

If you already bought a Toshiba satellite (I just got one recently too), #1 is out. You're rejecting #2; that only leaves #3.

It could be worse; you could be trying to get 64-bit windows support for devices. Now there is a real nightmare ...

logrusmage
April 29th, 2008, 04:26 PM
I've ran XP 64. Horrible support and no way around it.

Anyway, still can't ******* connect. It seems to be working, I can see multiple nets, I just can't connect.

louisiana84
April 29th, 2008, 06:43 PM
Okay, I fired up a terminal got in there, posted the code and VOILA!

It works. I feel like a moron for whining. THis was a piece of cake and the damn thing worked like a charm. Thank you so much!!!

suoko
April 29th, 2008, 06:44 PM
this howto worked perfectly for an acer 5715Z

Thanks man

Spartacus84
April 30th, 2008, 02:37 AM
I have no Linux experience, and I have a Copmaq Presario f756nr with an AMD 64 processor and an Atheros AR5007 that can't connect to the internet. I've been following Post #14 exactly trying to get it to work, but I keep getting an error at the part where I extract ndiswrapper (tar xvf ndiswrapper-newest.tar.gz) and when I try to install the driver with ndiswrapper (sudo ndiswrapper -i net5211.inf). Anybody know what I'm doing wrong?

ToM-X
April 30th, 2008, 06:20 AM
I have no Linux experience, and I have a Copmaq Presario f756nr with an AMD 64 processor and an Atheros AR5007 that can't connect to the internet. I've been following Post #14 exactly trying to get it to work, but I keep getting an error at the part where I extract ndiswrapper (tar xvf ndiswrapper-newest.tar.gz) and when I try to install the driver with ndiswrapper (sudo ndiswrapper -i net5211.inf). Anybody know what I'm doing wrong?

Ok,Lets try:

wget http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz

tar xvf ar5007eg-64-0.2.tar.gz

sudo aptitude update && sudo aptitude install linux-headers-$(uname -r) build-essential

echo "blacklist ath_pci" | sudo tee -a /etc/modprobe.d/blacklist

sudo apt-get install ndiswrapper

pushd ar5007eg-64-0.2/ar5007eg/ this bit may be wrong, I'm on windows so I can't test. If it is wrong then you just need to point it to your extracted folder directory.

sudo ndiswrapper -i net5211.inf

popd

sudo modprobe ndiswrapper

echo "ndiswrapper" | sudo tee -a /etc/modules

sudo reboot

Spartacus84
April 30th, 2008, 11:48 AM
When I get to the part where I enter "sudo apt-get install ndiswrapper", I get the following error: "E: Couldn't find package ndiswrapper". What do I do now?

ToM-X
April 30th, 2008, 11:59 AM
Ok try this...

download ndiswrapper and save to your Home folder.

http://wifix.sourceforge.net/software.php?title=ndiswrapper

Then open the terminal:

tar xvf ndiswrapper-1.51.tar.gz

pushd ndiswrapper-1.51

sudo make uninstall

make

sudo make install

popd

Then Ndiswrapper should be installed.

Spartacus84
April 30th, 2008, 01:11 PM
I did that, and everything worked! I installed wicd, and can see the networks and configure them, but I cannot connect. Any idea what's wrong?

Tuxseak
April 30th, 2008, 02:03 PM
Can someone explain to me why get this error? I have an Atheros AR5007EG with Hardy 8.04
i'm running an i386 copy instead of 64 bit (my laptop has an AMD 64 Athlon X2) because 64 bit wont install - does it have an impact?
-Please I'd appreciate a response as I'm getting very frustrated over this wifi business.
- Is it better if I get an USB wifi card that is known to work? can you recommend one?
Sorry this is so long - Thank you all in advance]


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

Spartacus84
April 30th, 2008, 06:26 PM
When I attemt to connect to the internet on wicd, it says I am "Connected to none at 0 (IP: 192.168.X.X), and my internet doesn't work. Am I doing the static IP adress wrong? I just put in my regular IP adress. What should I do?

Spartacus84
April 30th, 2008, 08:04 PM
Hmm... when I try it without a static IP, it goes between saying "<SSID>: Obtaining IP adress..." and "None: Obtaining IP adress...", and it ends up with "Not connected". Any ideas?

Spartacus84
April 30th, 2008, 09:05 PM
Below the "Auotmatically connect to this network" box is the following: "90% Secured WEP 00:18:01:F3:E1:27 Managed Channel 6".

In preferences, my WPA supplicant driver is set to ndiswrapper, my wireless interface is wlan0, and my wired interface is eth0.

What do I have to do to get it to connect?

troach
April 30th, 2008, 09:33 PM
These instructions are useless to me. Why? I don't have any network access. Just a wireless card.

Any idea how I can download on another machine and load everything on my Ubuntu?

You'd think Ubuntu would have had most of this worked out by now.

major_rocks
May 1st, 2008, 12:48 AM
Below the "Auotmatically connect to this network" box is the following: "90% Secured WEP 00:18:01:F3:E1:27 Managed Channel 6".

In preferences, my WPA supplicant driver is set to ndiswrapper, my wireless interface is wlan0, and my wired interface is eth0.

What do I have to do to get it to connect?

try setting the wpa supplicant driver to "wext" instead, you may need to reboot as well.

zeba
May 1st, 2008, 04:52 AM
I tried to install those things I was told at ubuntu forums, mad wifi, the wrapper, cant remmeber itś exact name, and a windowsdriver i dl from acer, but also should be availeble at atheros site. I did nt get it to work and no wireless connection in my list of connection options.

Then I installed the package in synaptic called hostapd and suddenly I could see the wireless networks. I don t really know how I did but maybe u can get some help out of it?
this is the program I installed last and suddenly everything worked..

but I dl both my driver in windows version, madwifi, wrapper and Im not sure what is the key for it all..I dont dare to test it either ...what if I cant get it right again..lol...

The current version includes support for other drivers, an integrated
EAP authenticator (i.e., allow full authentication without requiring
an external RADIUS authentication server), and RADIUS authentication
server for EAP authentication.

hostapd works with the following drivers:

* Host AP driver for Prism2/2.5/3,
* Prism54 driver for Intersil/Conexant Prism GT/Duette/Indigo,
* madwifi driver for cards based on Atheros chip set (ar521x),
* Any wired Ethernet driver for wired IEEE 802.1X authentication.

Spartacus84
May 1st, 2008, 05:43 PM
Now it says "Connected to <SSID> at 90 (IP: 192.168.X.X)", but I still am not connected!

Am I doing the DNS right? I didn't know what to do so I just put my normal IP adress.

major_rocks
May 1st, 2008, 07:08 PM
Now it says "Connected to <SSID> at 90 (IP: 192.168.X.X)", but I still am not connected!

Am I doing the DNS right? I didn't know what to do so I just put my normal IP adress.

hmm typically if it is showing how strong the signal(90) is, it usually means you are connected.

is your wirless network "hidden"?

dns is not the same as your internet ip or your local ip, dns is the ip addresses that are used to connect to your isp. Usually you can find those in your router setup/information: for example i have a linksys router, when i go to 192.168.1.1 it brings me to the router configuration. Under "status" it shows my dns servers that my isp provides. Typically it's two ip addys that are similar.

The only reason you should need your dns server ip's are if your assigning a static ip to your machine, otherwise those setting should be blank, meaning you are letting the router assign the ip to the machine via DHCP.

hope this bit of info helps.

Rotarychainsaw
May 1st, 2008, 08:02 PM
It's so weird, the first 2 days of 8.04 I had ndiswrapper going fine, on reboots I would connect to my AP no problem. Now on reboot I have to rmmod and modprobe ndiswrapper to jumpstart my wireless. It's a real bummer. Does this happen for others? Abit airpace amd 64.

Spartacus84
May 1st, 2008, 08:28 PM
How would I find out a working DNS? Also, what are these "Global DNS Servers" in preferences? Could I use those?

Rotarychainsaw
May 1st, 2008, 10:38 PM
http://ubuntuforums.org/showpost.php?p=4829624&postcount=345

I think this fixed my problems.... /knock on wood/

edit- the realtime kernel seems to make things worse as well, so if you're running ubuntu-studio, good luck... It was constantly resetting wlan0.

_godbout_
May 2nd, 2008, 12:17 AM
It's so weird, the first 2 days of 8.04 I had ndiswrapper going fine, on reboots I would connect to my AP no problem. Now on reboot I have to rmmod and modprobe ndiswrapper to jumpstart my wireless. It's a real bummer. Does this happen for others? Abit airpace amd 64.
I got the same problem with ndiswrapper and the amd64 version. Sometimes I could connect without any problem, but pretty rare. Usually I had to modprobe -r ndiswrapper and modprobe again. I've never found any valable reason for that :/

Tuxseak
May 2nd, 2008, 12:48 AM
Ok,Lets try:

wget http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz

tar xvf ar5007eg-64-0.2.tar.gz

sudo aptitude update && sudo aptitude install linux-headers-$(uname -r) build-essential

echo "blacklist ath_pci" | sudo tee -a /etc/modprobe.d/blacklist

sudo apt-get install ndiswrapper

pushd ar5007eg-64-0.2/ar5007eg/ this bit may be wrong, I'm on windows so I can't test. If it is wrong then you just need to point it to your extracted folder directory.

sudo ndiswrapper -i net5211.inf

popd

sudo modprobe ndiswrapper

echo "ndiswrapper" | sudo tee -a /etc/modules

sudo reboot

I followed these instructions until the part when it came to installing the driver then I followed the instruction on the following page:

http://www.ginad.org.uk/NDISwrapper.html

And now my wireless works! Thanks TomX and every good person that has posted a reply.
Thanks to Ubuntu I'm tasting 64bit computing-- my windows version of course is running a 32bit on a 64 bit machine.:confused:
UBUNTU Rocks!:guitar:

prylux
May 2nd, 2008, 02:59 PM
After following all the instructions here I got the wireless up and running
I could even get online using Wicd. But it kept dropping the connection around 5 to 10 seconds. It would also disconnect if I closed the Wicd Manager window.
So I tried connecting using other Wifi connection managers. They all recognize the wireless and see all the local access points, some even said I was connected.
But every time I tried to use firefox I could not access a webpage.
I reinstalled Network Manager and that didn't help.
Went back to Wicd and now it says I'm "Connected to None at 0dBm (192.168.0.194)" I'm sitting right beside the router.
I can connect with the wired connection but it sometimes drops the connection now. ](*,)

burunji
May 2nd, 2008, 06:16 PM
ToM-X
thank you so much...you are a life saver i followed you instructions now i can see for the first time in ubuntu my wireless connection.
all i have to do now is to set it up.
Thank you so much
:):):)

major_rocks
May 2nd, 2008, 06:50 PM
How would I find out a working DNS? Also, what are these "Global DNS Servers" in preferences? Could I use those?

Spartacus....are you using a router?

Spartacus84
May 2nd, 2008, 06:58 PM
Spartacus....are you using a router?

Yes.

major_rocks
May 2nd, 2008, 07:15 PM
ok, you should see your dns server ips if you go to:

main menu > system > administration > network

click the "DNS" tab and that should show the dns ips, again you only need those if you are going to assign a static ip to your machine.

Global DNS settings in Wicd tells Wicd to use the DNS ips' for the wireless, and wired connections.

prylux
May 3rd, 2008, 01:27 AM
Okay... I feel silly... The reason I was getting those problems was this:

System>Administration>Network
In network settings make sure ONLY Wireless or Wired networks are checked.
When both were checked they were both trying to connect and throwing the other off.

That's why I could see wireless connection points but was connected to "Connected to None at 0dBm (192.168.0.***)"

Set locations up for Wired and Wireless now it works fine.\\:D/

burunji
May 3rd, 2008, 05:49 PM
Hi I installed my drive following this instructions but i can see my connections and other connections,

I also installed wicd, but I can't get it to connect.

When I try it without a static IP address, I get the message "Connected to <SSID> at 0 (IP: 192.168.X.X)".

When I try it with a static IP address, I still get the message "Connected to <SSID> at 0 (IP: 192.168.X.X)".

Please help:confused:

liquerLOVER
May 4th, 2008, 09:38 AM
im doing dual boot winXP & ubuntu since my ubuntu cannot connect to internet during my wireless problem. im using Acer Aspire 4520 which is really famous & cheap. the wireless driver is atheros AR5007EG. ok... this all start when the first time using linux & ubuntu 8 hardy was my 1st linux. i had been settle this problem for 2 times but stuck for d 3rd time until now.

my first trial, im able to settle network problem by follow all the threads that i coppied from ubuntu forums. however, sudenlly, my ubuntu having problem with sound just after i settle withmy network. maybe after 1/2 o more then that. so, i decide 2 re-install ubuntu for the 2nd time to make sure that i have a PERFECT ubuntu because im thinking off get rid winXP.

after that, i try to set up the wireless, AGAIN with steps that given in the threads that i coppied from ubuntu forums. i follow & read all the process step by step carefully. & once again, im able to settle my network for the 2nd time. and after that, im online using ubuntu since i want to update & install movie & audio codec from internet. after settle with codec & few things, i feel relief so i finally decide to decrease the size of my winXP.

so, i resize the partition from winXP using partition magic 8 which i had installed before i resize my partition & install ubuntu. after that, there is a warning that saying error in resizing partition so i quit.

so...i decide to give a check on my beloved ubuntu & U know what??? GRUB LOADING ERROR!!! so, i set WinXP as an active partition so that i can get in my winXP.

after that, i decide to install ubuntu for the 3rd time. this is where i stuck & everything turn to ****.no matter what i use, madwifi-ng-r2756+ar5007 or madwifi-nr-r3366+ar5007 even ndiswrapper, all i got is fail. below is one of error that i got from madwifi-ng-r2756+ar5007.


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

i follow all the steps given but still the terminal reply my command like above. i dont know whether i miss a steps or spelling error. it's impossible to make a mistake cos after few times i found failure, i just copy & paste because tired & want to ensure that i follow the steps.

what i want to say here is, HELP me all ubuntu experienced user. i really want to use linux as my no 1 OS. maybe you all can help me by reply me with a full complete step because im very new to linux & this my 1st time to linux. to be frank, i dont know wat does the command mean. im very attract to ubuntu since i heard wat does ubuntu mean. so, im one of human being that want to learn ubuntu. help me...

p/s:sorry for being a loser in this forum. i really hope ubuntu community can help me. thank you.

Spartacus84
May 4th, 2008, 05:11 PM
I actually got it to connect and I could go on the internet (connecting without a static IP address), however, after I rebooted my computer, it no longer works. Anybody know what could be causing this?

prylux
May 5th, 2008, 01:48 AM
I kept running into a new problem. Like some of you here, I had problems where I was able to see networks, and it would look like I was connected to them, even showed the signal strength I was connected at. But I couldn't connect to anything else like browsers or updates. Other times everything would work.
I was using Wicd and while it was not this program that was giving me problems wlan0:avahi was giving me sporadic connection problems
I found it when I added the "Network Monitor" to my panel. When I opened it one of the selections was wlan0:avahi
It was competing for resources with wlan0 is my bet and so I removed it
I fixed this problem by doing the following in this order:

Open Synaptic Package manager
Select to completely remove Wicd
Install Network Manager
Reboot

Open a terminal and input
sudo ip link set wlan0:avahi down

Open network settings
Set static IP address

Check /etc/network/interfaces
should look like this
---------------------------------
auto lo
iface lo inet loopback





iface wlan0 inet static
address 192.168.0.139
netmask 255.255.255.0
gateway 192.168.0.1
wireless-key 1234567891
wireless-essid linksys
---------------------------------
or whatever you setup

This worked for me on my C751NR laptop
I have not gone anywhere else and tried to setup another connection but it works for me at home.

_godbout_
May 6th, 2008, 11:51 AM
Hi again there,

Previously in the topic, I wrote that I could use the madwifi drivers given with Ubuntu Hardy. That's true, partially. Actually, I can't connect any protected network, WEP or WPA :D
I'm using a non-protected network now, but I would like to protect it. Is there something that I've missed somewhere? Anything to install?

FastZ
May 6th, 2008, 11:58 AM
You can't protect a non-protected network via your laptop. The WAP has to be configured for WEP or WPA/WPA2 for the network to be protected. If you want to make all your surfing annonymous, you can read up on the Tor project (http://www.torproject.org/).

logrusmage
May 6th, 2008, 11:04 PM
Thank you. I've been trying for at least 5 days to get this thing to work and this finally did it!

Now I can actually see wireless networks and click on em!

Unfortunately, they won't connect. It SAYS they have full strength, but it can't connect to them. Just attempts to for awhile before stopping, whence the tiny symbol changes into its "You have an errorlol" form.

Anyone have any ideas why this could be happening?

Here's what I get when I try to connect via the terminal:



So... what gives?

Bump.

For the love of god please help me! (OK, I'm being dramatic)

auto lo
iface lo inet loopback

Is the only thing in my etc/network/interfaces file/ Is this a problem?

Help

_godbout_
May 6th, 2008, 11:04 PM
Oh oh oh, sorry, there is a misunderstanding here. What I meant is that I want to re-configure my router to enable the WPA protection. I have to disable it now if I want to connect to my router.
Actually, after several tests yesterday and a bit of work, I succeeded to connect it, but not always, I don't know the reason.

TheWhatkin
May 7th, 2008, 11:41 AM
Aargh. Help, please?

I had my Aspire 3680 working with Madwifi on 7.10 prior to upgrading to 8.04.

I've tried the instructions in post #7, but my computer then refuses to reboot cleanly.

ameseisch
May 7th, 2008, 06:35 PM
I am using a 32-bit install, so i used post #7 and the wireless card is working. A good step! I can see all the networks available and I can even connect to unsecured ones, but I cannot connect to secure networks. it just trys for a while and then keeps asking for the passphrase. and I am as sure as I can be that I have the passphrase correct. any ideas?

shootermk
May 8th, 2008, 08:56 AM
Okay... I feel silly... The reason I was getting those problems was this:

System>Administration>Network
In network settings make sure ONLY Wireless or Wired networks are checked.
When both were checked they were both trying to connect and throwing the other off.

That's why I could see wireless connection points but was connected to "Connected to None at 0dBm (192.168.0.***)"

Set locations up for Wired and Wireless now it works fine.\\:D/

I have my wireless card installed, but can't manage to uncheck the wired connection. Everytime I access the network manager both connections are checked. Any help please!?!

ameseisch
May 8th, 2008, 10:27 AM
Same problem of not being able to connect to secure netoworks with Wicd. Help please!!! its been almost 2 weeks that I have been at this wireless issue, and I am so close I can almost taste it...

shootermk
May 8th, 2008, 11:13 AM
OK, I somehow managed to get connected. For those who still have problems with connecting..

1. Check your DNS Servers.
2. Check your host name.
3. Make separate locations for wired and wireless connections and make sure in every location you have just one connection type checked.
4. Good Luck to you all, I worked 2 days on getting connected.

And forgot to say, I didn't try WPA encryption, managed to connect through WEP.

Pinoy915
May 8th, 2008, 01:50 PM
What is wicd? Is it for 32-bit versions? I cannot seem to find it on x64 and I never used it to make my card work.

abhilashkumar
May 8th, 2008, 02:23 PM
What is wicd? Is it for 32-bit versions? I cannot seem to find it on x64 and I never used it to make my card work.



Wicd is an open source wired and wireless network manager for Linux. If your original network manager is not detecting the wireless network, maybe WICD will be better.

HitRefresh
May 8th, 2008, 09:32 PM
Thanks Tom-X! Your short how-to post (#7) worked, and have wireless working now on HP DV6704nr laptop.

Just one question for anyone whom also followed the post, I disabled "HAL" from the restricted drivers but I have enabled "Support for Atheros 802.11 Wireless LAN Cards." Is that correct configuration ? I was not sure.

drlisacuddy
May 9th, 2008, 12:02 AM
Hey, guys! I followed post 7, and my wireless now works, the only thing is that the computer used to hibernate and suspend properly, but now with the wireless the computer refuses to hibernate or suspend. Any ideas as to why?

Darkendes
May 9th, 2008, 03:20 AM
I was successful in configuring this wireless adapter with ndiswrapper. I had to get rid of madwifi and the old ndiswrapper before mine would work.

I'm using ndiswrapper 1.52, and used 64-bit XP drivers for it (I'm running Hardy 64-bit). It installed fine and was able to see access points, but not connect to them at first.

I then went into the console and typed:

sudo ifconfig wlan0 down
sudo ifconfig wlan0 hw ether xxxxxxxx <replace x's with your MAC address>

And viola, I was able to acquire an IP address from the router.

After that, I installed wifi-radar, and set it up to use those ifconfig commands before it auto-connects to the access point, and now I'm automatically connected to my home network at bootup.

I'll leave it to you to find instructions and XP drivers for ndiswrapper, since from the looks of it, even though it's the same wireless card, people are having different kinds of luck with different drivers, depending on the laptop model. I'm using a Toshiba Satellite A215-S5837.

If you want to try the method I used anyway, here's the link: http://ubuntuforums.org/showthread.php?t=527619 Go to post #2 and start from there. You'll have to find XP driver yourself, but one that worked for me: ftp://ftp.work.acer-euro.com/notebook/aspire_5100/driver/Wireless_Atheros_V5.3.0.67_XP_XB63_XB62(WHQL).zip (use 32-bit if you're running 32-bit Linux, 64-bit for 64-bit).

He used ndiswrapper 1.47, but mine worked with 1.52 with no problems at all.

The ifconfig stuff is on page 4, I believe. Post #38, if you'd like to see it for yourself.

Good luck!

cubastreet
May 10th, 2008, 12:04 PM
Wireless card working now thanks :)
However, cannot switch it off, probably not great for battery life.

longboneslinger
May 10th, 2008, 02:42 PM
I am using a 32-bit install, so i used post #7 and the wireless card is working. A good step! I can see all the networks available and I can even connect to unsecured ones, but I cannot connect to secure networks. it just trys for a while and then keeps asking for the passphrase. and I am as sure as I can be that I have the passphrase correct. any ideas?

Try this: Go to the set-up for your router. If its a linksys, just type 198.168.1.1 into your browser. Look for the WPA shared key. It's under Wireless-->Wireless Security. Copy down the key and put it in as the passphrase.
I hope this helps someone.
Later taters and God bless,
bone

pcaulder
May 10th, 2008, 07:44 PM
The original post worked perfect for me. Acer 3680-2682 with the atheros 5700 chipset in 8.04

longboneslinger
May 10th, 2008, 10:05 PM
Boy oh boy. I'm trying to get madwifi to work on an Acer Aspire 5315 with the afore mentioned AR5007EG on a clean install of 8.04 (32 bit). It just wont work.
When I run /etc/init.d/networking restart it gives the following:
* Reconfiguring network interfaces... RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.eth0.pid with pid 134519072
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/eth0/00:1b:38:63:36:f8
Sending on LPF/eth0/00:1b:38:63:36:f8
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
There is already a pid file /var/run/dhclient.eth0.pid with pid 134519072
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/eth0/00:1b:38:63:36:f8
Sending on LPF/eth0/00:1b:38:63:36:f8
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPOFFER of 192.168.1.103 from 192.168.1.1
DHCPREQUEST of 192.168.1.103 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.103 from 192.168.1.1
bound to 192.168.1.103 -- renewal in 38214 seconds.


Notice the widi0: unknown hardware address type 801
I checked /etc/network/interfaces and changed 'wext' to 'madwifi' but it made no difference. I tried changing ath0 to wifi0 in /interfaces but no joy.
I just checked /interfaces again and most the add-ins are gone including the wext line. My pid is gone to. this is nuts. I put it in like it was in 7.10. I went back into NM and added the PID there and it's back in /interfaces. I had to reboot since I lost my eth0 connection. This is insane.
Sigh. I hope someone can make sense of this. I really want to use madwifi. I really don't want any Winblows junk on my lappy. So TIA to all who try to help.
bone

longboneslinger
May 11th, 2008, 12:10 AM
Small update. I dumped Network Manager for wicd. It says "No wireless networks found." I played in preferences and changed wpa supplicant driver from wext to madwifi with no results. I also tried wifi-radar and it saw the network and by giving it a static IP I was able to get it to claim it was connected. It wasn't. ping google.com -c 3 just timed out with unknown host.
I'll even add a copy of /etc/network/interfaces just for the fun of it:

GNU nano 2.0.7 File: /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto ath0
iface ath0 inet dhcp

wpa-pairwise TKIP
wpa-group TKIP
wpa-psk XXXXXX
wpa-driver madwifi
wpa-key-mgmt WPA-PSK
wpa-proto WPA
wpa-ssid bOnEs_YaRd
wireless-keymode open

I'm still on TKIP cuz on 7.10 AES wouldn't connect but TKIP would. Go figure. Now on a fresh install my wireless is connectionless no matter what I try.
Here's to hoping someone can figure this out. TIA for your time all.
bone

Alfred_McGee
May 12th, 2008, 10:55 AM
When WICD says "No wireless networks found" it has always meant, to me, that the external switch for my wifi card needed to be flipped back on, but that doesn't sound like the problem you're having.

Anybody know a good way to manage wifi connections for an AR5007EG card running under Atheros? I believe it's running because I used the fix posted at the beginning of this thread and because sudo iwlist scanning gives lots of good info from my wifi card (ath0). Iwlist scanning unfortunately also gives info from some other interfaces that don't exist. Is WICD still the way to go, even though I seem to have partially kicked the ndiswrapper habit?

EDIT: Yes, WICD rules! I set the WPA supplicant to wext, by the way, Bone. Iwlist scanning still tells me I have another wireless interface -wifi0- but if it ain't broke, don't fix it, right?

wernotalone
May 12th, 2008, 02:30 PM
Hi, I'm new to ubuntu and I am having trouble with the terminal.

I was following the directions from the second page of this thread, and I got an error with the code


Code:

wget http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz

Error parsing proxy URL http://:8080: Invalid Host name.

Any help would be greatly appreciated.

Success!!! I have my wireless card working! I am using ndiswrapper with 64 bit drivers. Here is the thread I used to get mine working. http://ubuntuforums.org/showthread.php?t=512828

Here are the only steps I used. I did not disable anything in the restricted drivers menu.

Go to System/Administration/Hardware Drivers. Disable the default drivers by unchecking "Atheros Hardware Access Layer(HAL)" and "Support for Atheros 802.11 Wireless LAN cards." Reboot if necessary.

Blacklist the default driver:

echo "blacklist ath_pci" | sudo tee -a /etc/modprobe.d/blacklist

Get the 64 bit driver:
wget http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz

Extract driver:
tar xvf ar5007eg-*.tar.gz
tar xvf ndiswrapper-newest.tar.gz

Ensure you have your kernel headers and the build essential package.
sudo aptitude update && sudo aptitude install linux-headers-$(uname -r) build-essential

Install ndisgtk:

sudo apt-get install ndisgtk

Either use ndisgtk to install the driver or:

sudo ndiswrapper -i net5211.inf

Load up ndiswrapper every time Linux is loaded:
sudo modprobe ndiswrapper
echo "ndiswrapper" | sudo tee -a /etc/modules

Restart:
sudo reboot

My card was detected and shows available networks but if it does not, try sudo iwlist scan

My laptop is a Compaq C751NR. lspci gives me:
01:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

I am running Ubuntu AMD64 8.04. Oh and by the way, the button for my wireless network is orange(off) and will not turn blue(on) but it is indeed working. It just will not change colors. The actual button works though.

HitRefresh
May 12th, 2008, 04:56 PM
Hey, guys! I followed post 7, and my wireless now works, the only thing is that the computer used to hibernate and suspend properly, but now with the wireless the computer refuses to hibernate or suspend. Any ideas as to why?


I have the same problem as well. When trying to suspend or hibernate it just sort of hangs, and then a bunch of error messages scroll by and the laptop shuts down.

That is weird, what does the wireless configuration have to do with suspend/hibernate functions ?

Anyone have any fixes/suggestions to try for this ?

williamson389
May 12th, 2008, 05:55 PM
i also have a Atheros AR242x and cannot conect to wireless internet. i tired tom-X's code but nothing changes. At both of these lines:tar xfz madwifi-ng-r2756+ar5007.tar.gz and sudo modprobe ath_pci the terminal didnot respond or change. i tried pinoy's instructions and got throught the ccode fine but after reboot i was still unable to connect to the internet. On a side note are madwifi and ndiswrapper applications, because i cannot find them to open them.

balagosa
May 12th, 2008, 10:14 PM
Right, I'm back now like I promised.

Atheros AR5007EG for hardy.

First of all go to "System/Administration/Hardware Drivers" and disable by un-ticking the box.:

Atheros Hardware Access Layor (Hal)

Then Reboot

Then open the terminal "Applications/Accessories/Terminal" and copy the following:

wget http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz

sudo apt-get install build-essential

tar xfz madwifi-ng-r2756+ar5007.tar.gz

cd madwifi-ng-r2756+ar5007

make

sudo make install

sudo modprobe ath_pci

sudo reboot

Then thats it :D Enjoy!


dude...this crashed my Hardy on reboot. i can not log in anymore.

the situatuion....booting on non-recovery mode


Loading Kernel Modules
Loading Manual Drivers.... then after 30mins of wait, still nothing.

i tried booting into recovery mode and this is what i got...
*Reading files needed to boot
lp: driver loaded but no devices found
ndiswrapper version 1.52 loaded (smp=yes, preempt = no)

and this is where it doesnt do anything

using Xubuntu 8.04, kernel 2.6.24-16-generic. i am using NDiswrapper though...not madwifi. so i think when i "modprobe", this caused my problem?

balagosa
May 13th, 2008, 02:30 AM
uhm...bump

ToM-X
May 13th, 2008, 02:37 PM
Try booting on to recovery and removing Ndiswrapper..

sudo apt-get remove ndiswrapper
sudo reboot

: /

Also can I please note to the thread. Atheros are NOT offically supporting for linux. We will get errors,problems and glitches. Its a trial and error situation. Do NOT expect perfection.

If the driver works then be thankfull, if it doesn't then it's not my fault.

balagosa
May 13th, 2008, 08:47 PM
i wasnt blaming you :KS, i am blaming myself for trying something knowing that it could mess up my kernel by a slight chance of 50%. Always remember people, BACKUP your files every once in a while. This sure hit me in the head, because now i am regretting that i didnt backup my files.

hmmm....my CURRENT situation is so long. maybe you can just go to this link and refer to the latest post.

Current Situation (http://ubuntuforums.org/showthread.php?t=789824&page=2)

but your idea of removing ndiswrapper is good though. i will try it.

logrusmage
May 13th, 2008, 10:35 PM
This is it. One more night of no wireless and I'm going back to Winblows -_-

beowolf@beowolf-laptop:~$ sudo dhclient wlan0
There is already a pid file /var/run/dhclient.pid with pid 6218
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan0/00:1f:3a:8e:f4:d4
Sending on LPF/wlan0/00:1f:3a:8e:f4:d4
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.


It says the driver is working. When I scan using the terminal, I can see multiple networks. I cannot see any networks in Network-manager. Both wired and wireless are in roaming mode in network-manager.

WTF should I do?

EDIT: NEVERMIND. Got it working, sorta forgot to do the mode Managed command. However, Network manager is still being a douche. How can I fix? Reinstall or use WCID (I cannot find WCID in synaptic -_-)

lescarlin
May 15th, 2008, 12:25 PM
Right, I'm back now like I promised.

A big thank you. I've followed various threads in the N & W forum without much success. It seems i too was a victim of the AR5007 mislabelling, but your solution worked fine.

FYI, i'm running a Fujitsu-Siemens laptop, Intel Dual CPU 1.6GHz. In my case i have a single partition with ubuntu 8.04 OS

Good to be connected at last. :biggrin:
Talking

Snappo
May 15th, 2008, 12:39 PM
would this work with the ar5005g?

Alfred_McGee
May 15th, 2008, 12:43 PM
How can I fix? Reinstall or use WCID (I cannot find WCID in synaptic -_-)[/QUOTE]

Logrusmage:

It's WICD, not WCID. I highly recommend WICD. WICD has its own website with install instructions.

balagosa
May 16th, 2008, 08:53 PM
would this work with the ar5005g?

i dont think it will work for 5005g.

well 5007 and 5006 can live with the same drivers.

danwood76
May 17th, 2008, 11:43 AM
Isnt the 5005g supported under the default madwifi?
The patch in this thread is just for the x86 7007EG.

BETELGEUSE58
May 18th, 2008, 04:57 AM
I have ACER 5315 with atheros 5007eg and this guide worked perfect for me.

I also tried to get aircrack to work amongst other similar ones which require updates, patches etc which caused my w/card to stop working. I then redone these steps and it works again as it did when I first did it. Cant get aircrack etc to work without messing up my system but thats another topic.

Great post, works fine.

Alfred_McGee
May 19th, 2008, 12:07 PM
Hey Betelgeuse58, some USB dongles will do everything you need without any patches. The AR5007 card running under Wicd will give a nice overview of things while your dongle is working. But thanks for posting on this important topic. Many new possibilities are sure to emerge now that there is finally native Linux support for the AR5007 card.

Israphel
May 22nd, 2008, 07:07 PM
I just followed your steps for the Atheros wireless card, but it doesn't find any network.


lspci
03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)



lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

wlan0 No scan results


And I'm next to the Router, completely open.

eks
May 23rd, 2008, 04:14 PM
Confirmed that solution on post #7 (http://ubuntuforums.org/showpost.php?p=4791500&postcount=7)worked for me, on a HP Pavillion dv6705 under a new installation of Hardy 8.04. BUT!!! I had some major problems.

It installed but it wouldn't connect to any network. I could see them but I wouldn't get an IP, no matter what configuration I used, DHPC, zero conf, etc. I tried these two things at once, so don't really know which worked, but they are:

. also remove the drivers provided with Ubuntu over the restricted drivers (System/Administration/Hardware Drivers)

. install wicd (http://wicd.sourceforge.net/download.php).

Either way, I strongly recommend wicd, it's way more feature full and way more EASY to understand than the current Network Manager


Cheers and good luck!
eks

HitRefresh
May 23rd, 2008, 04:38 PM
eks:

Do you have any problems with suspend or hibernate now ?

I also tried the same post on a HP dv6704, and can connect to wireless networks, but now cannot suspend or hibernate the laptop. I have not tried installing wicd, though.

Alfred_McGee
May 27th, 2008, 01:48 PM
This solution worked for me, but appeared to prevent suspend and hibernate functions. The screen would go black and fill with code that said stuff like ath_pci_remove. The only way out was to hold down the power button and then restart. Later, after reinstalling Ubuntu, I was able to get this fix to work:

http://ubuntuforums.org/showthread.php?t=795984

It uses a different tarball from Madwifi and has some other differences. But, most importantly, suspend now works!:)

nicedude
May 27th, 2008, 03:39 PM
The install guide Alfred McGee has posted a link to above is my guide on how to install the AR5007 within 32BIT Hardy. While it isn't the only way and also is not the easiest ( as I remove the restricted modules and restricted manager completely ). I think its the best way ( personal preference and opinion ) but anyone who uses my way please read it fully and follow it step by step as otherwise it will not work.

Also know you will have to manage whatever other drivers the restricted manager is currently managing for you automatically. The only ones should be any Nvidia or ATI graphics drivers and I like to use the newest ones from the Nvidia site anyway as they work the best and are the most up to date with fixes for my 8400M Nvidia chipsets power management. So please just read my guide before you decide to try it and make sure you understand what you will be required to do if you have a graphics driver that is being currently managed by Jockey (the restricted driver manager) since using my way that will be removed. I have a text file attachment at that link with instructions on how to install the Nvidia Linux driver package from their website ( I can't help with an ATI one as I don't have any ATI graphics cards to test with ) but be advised it is written for after using my Atheros install guide and removing all the restricted modules and manager and as such IT WILL NOT WORK as a guide for installing the Nvidia driver package on a system that still has those components in place. Just felt I should warn all to be careful and study what you do before you attempt it to save problems later. Good luck to all however you choose to install your AR5007. :-)

PS To anyone trying to install madwifi aircrack patched drivers you need the driver version 3366 as the earlier one wouldn't work when I tried it. The driver you need can be found at madwifi.org site support ticket #1679

Link to the support ticket
http://madwifi.org/ticket/1679

Link to the driver you need
http://snapshots.madwifi.org/special/madwifi-nr-r3366+ar5007.tar.gz

That driver is needed if you ever want to be able to use aircrack and kismet wifi security and hacking tools.

Hope the info and links help everyone out.

nicedude

RobHK
June 4th, 2008, 08:43 AM
Right, I'm back now like I promised.

Atheros AR5007EG for hardy.

First of all go to "System/Administration/Hardware Drivers" and disable by un-ticking the box.:

Atheros Hardware Access Layor (Hal)

Then Reboot

Then open the terminal "Applications/Accessories/Terminal" and copy the following:

wget http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz

sudo apt-get install build-essential

tar xfz madwifi-ng-r2756+ar5007.tar.gz

cd madwifi-ng-r2756+ar5007

make

sudo make install

sudo modprobe ath_pci

sudo reboot

Then thats it :D Enjoy!

I've done this successfully on a previous installation but I didn't keep the madwifi file. Today it's gone from the site, though there is one with 2756 replaced by 3366. I thought I'd give it a try but the installation failed at "sudo modprobe ath_pci".

I don't really understand any of this, I'm just following Tom's instructions. So 2 points:

Should the new file work?
Could someone upload the old 2756 file to an FTP service, please?

braveerudite
June 4th, 2008, 12:41 PM
I follow your steps in the same order you post them and I got this error. What am I doing wrong?

rambo@Ubuntu64-8:~$ echo "blacklist ath_pci" | sudo tee -a /etc/modprobe.d/blacklist
[sudo] password for rambo:
blacklist ath_pci
rambo@Ubuntu64-8:~$ wget http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz
--12:36:42-- http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz
=> `ar5007eg-64-0.2.tar.gz'
Resolving blakecmartin.googlepages.com... 209.85.141.118
Connecting to blakecmartin.googlepages.com|209.85.141.118|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 369,404 (361K) [application/octet-stream]

100%[====================================>] 369,404 30.59K/s ETA 00:00

12:37:02 (43.07 KB/s) - `ar5007eg-64-0.2.tar.gz' saved [369404/369404]

rambo@Ubuntu64-8:~$ tar xvf ar5007eg-*.tar.gz
ar5007eg-64-0.2/
ar5007eg-64-0.2/ar5007eg/
ar5007eg-64-0.2/ar5007eg/net5211.inf
ar5007eg-64-0.2/ar5007eg/net5211.cat
ar5007eg-64-0.2/ar5007eg/ar5211.sys
ar5007eg-64-0.2/README
rambo@Ubuntu64-8:~$ tar xvf ndiswrapper-newest.tar.gz
tar: ndiswrapper-newest.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rambo@Ubuntu64-8:~$

eks
June 5th, 2008, 08:29 AM
http://ubuntuforums.org/showthread.php?t=795984

It uses a different tarball from Madwifi and has some other differences. But, most importantly, suspend now works!:)

Could you post exactly what you did that made the driver work with hibernate/suspend? :)

It's basically the same guide but with a link to the patched driver. (Btw, great work nicedude!).

But yes, HitRefresh, the hibernate/suspend does not work... I don't get any errors, it just disconects and I THINK I cannot reconnect again unless I restart. But I haven't debuged it much and I don't have the laptop currently with me.


eks

eks
June 5th, 2008, 09:12 AM
You are just missing the ndiswrapper-newest.tar.gz. From the rest of the code it doesn't seem that you have downloaded it.

I follow your steps in the same order you post them and I got this error. What am I doing wrong?

rambo@Ubuntu64-8:~$ tar xvf ndiswrapper-newest.tar.gz
tar: ndiswrapper-newest.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rambo@Ubuntu64-8:~$

mikey.duhhh
June 5th, 2008, 10:27 PM
When the Kernel updates

There is one thing you should mention. When the kernel updates you will lose your wifi again. To fix this you will
need to tick and then untick the Atheros Hardware Access Layer (HAL),

Reboot.

Open the terminal and

cd madwifi-ng-r2756+ar5007

sudo make install

sudo modprobe ath_pci

sudo reboot

There is no need to make it again since you have done this already, but
you will need to make install and modprobe ath_pci to set the changes needed to run the wifi in the newer kernel.

Also save this to Tomboy or a file so you won't forget what to do when
the kernel ...18 becomes ...19 becomes ...20 ...21, etc.



Right, I'm back now like I promised.

Atheros AR5007EG for hardy.

First of all go to "System/Administration/Hardware Drivers" and disable by un-ticking the box.:

Atheros Hardware Access Layor (Hal)

Then Reboot

Then open the terminal "Applications/Accessories/Terminal" and copy the following:


wget http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz

sudo apt-get install build-essential

tar xfz madwifi-ng-r2756+ar5007.tar.gz

cd madwifi-ng-r2756+ar5007

make

sudo make install

sudo modprobe ath_pci

sudo reboot

Then thats it :D Enjoy!

braveerudite
June 7th, 2008, 04:10 PM
I did both steps... In fact I did those two steps before I read your post. I'm having trouble connecting too :( and other suggestions?

lorgonjortle
June 7th, 2008, 04:32 PM
I'm working on Atheros AR5007EG, I'l get back to you if I get anywhere.

Same situation I bet.

I have the same one, please PM me if you find an answer.

daRealScanMan
June 7th, 2008, 10:26 PM
I have the same one, please PM me if you find an answer.
Did you read Tom's post #7? However, the 2756 driver isn't available anymore, you'll have to use the 3366.

http://snapshots.madwifi.org/special/madwifi-nr-r3366+ar5007.tar.gz

braveerudite
June 8th, 2008, 11:57 AM
Here is the answer to all your prayers. Finally!!! a super simple method that will works 100% with Ubuntu 8.04 “Hardy Heron” 64bit and Atheros AR2425 (AR5007EG) chipset. No more the need ndiswrapper or even Wi-Fi Radar and WICD to get secure (WPA2,WEP) connection working. You can just keep the default Ubuntu wired and wireless network manager because now it just works with no problem.

Make sure you go to System ->Administration ->Hardware Drivers and disable Atheros (HAL) & Atheros support and reboot before you follow the steps on the guide. At the end of the guide you'll see that it will ask you to re-enable them again and reboot.

http://ubuntuforums.org/showthread.php?t=816780

Thank the guy that posted the guide last night by clicking on his Gold star with a blue ribbon on the right.

DapperMe17
June 10th, 2008, 05:31 PM
Hello,


Any way someone can upload blakemartin's 64-bit driver for the AR5007???

Also, is "build-essentials" on the LiveCD, and how would I extract it from the CD???


Unfortunately, I dont have a current internet connection to this machine...


Thanks for any help!

rjkola
June 10th, 2008, 07:17 PM
I tried ToM-X's fix posted on April 25'2008. Followed his directions and all but ( sudo modprobe ath_pci ) worked. Now using the AR5007 card. It's in a HP dv6704nr cheepy laptop running Ubuntu 8.04 AMD64 under wubi. I tried most all of the other posted fixes, was getting bleary eyed and miss typed a lot...suffered through and BINGO! Thanks for a great fix.:
:)

julianna
June 10th, 2008, 10:47 PM
Thanks Tom - I'm totally a newbie at this system, and your steps worked just fine for my Compaq F762NR. A dozen yellow roses to you, friend. Thanks again.

logrusmage
June 10th, 2008, 11:54 PM
Alright, again, I can see networks but cannot connect to them.

What the hell man...

coltcannon
June 12th, 2008, 07:03 PM
Just sitting here today I lost wifi, which had been working previously in the day. I tried to reinstall with no success. Anyone got an idea on getting the wireless setup back to a fresh install type state?

coltcannon
June 12th, 2008, 08:47 PM
Interesting, I restarted and the wifi was working for about an hour. Now it just stopped again.

wwusnobrdr
June 12th, 2008, 10:12 PM
I believe the upgrade to hal may have killed my wireless. I re-compiled the 3366 snapshot and installed it. When I did modprobe ath_pci, this is what I got

FATAL: Error inserting ath_pci (/lib/modules/2.6.24-19-generic/net/ath_pci.ko): Unknown symbol in module, or unknown parameter (see dmesg)

[ 302.072923] ath_pci: disagrees about version of symbol _ath_hal_attach
[ 302.072942] ath_pci: Unknown symbol _ath_hal_attach
[ 302.073105] ath_pci: disagrees about version of symbol ath_hal_process_noisefloor
[ 302.073109] ath_pci: Unknown symbol ath_hal_process_noisefloor
[ 302.073356] ath_pci: disagrees about version of symbol ath_hal_computetxtime
[ 302.073360] ath_pci: Unknown symbol ath_hal_computetxtime
[ 302.073627] ath_pci: disagrees about version of symbol ath_hal_mhz2ieee
[ 302.073631] ath_pci: Unknown symbol ath_hal_mhz2ieee
[ 302.073909] ath_pci: Unknown symbol _ath_hal_detach
[ 302.075239] ath_pci: disagrees about version of symbol ath_hal_init_channels
[ 302.075244] ath_pci: Unknown symbol ath_hal_init_channels
[ 302.075467] ath_pci: disagrees about version of symbol ath_hal_getwirelessmodes
[ 302.075471] ath_pci: Unknown symbol ath_hal_getwirelessmodes

daRealScanMan
June 12th, 2008, 11:04 PM
I believe the upgrade to hal may have killed my wireless. I re-compiled the 3366 snapshot and installed it. When I did modprobe ath_pci, this is what I got
Did you first uninstall the older kernel module? Something like:
cd /path/to/madwifi
sudo make uninstall
sudo make clean
sudo make
sudo make install
sudo modprobe ath_pci

coltcannon
June 12th, 2008, 11:24 PM
Did you first uninstall the older kernel module?

I tried this and still cant connect. I can see the networks but cant connect.

coltcannon
June 13th, 2008, 12:15 AM
Hmm I can connect to my FON router but only through the non-secure SSID. Isnt there a file that contains the wifi security info? Could it be corrupt?

williamson389
June 14th, 2008, 01:00 PM
i had my wireless working after scouring thru the forums and finding a website on google--(http://blog.linuxoss.com/2008/05/08/ubuntu-804-enabling-atheros-ar5007-based-wireless/)

I held off on the updates because i had a feeling they would screw m over. then last night i updated and behold, my wireless was out again. now i find that the madwifi patch is no longer availible? i have the tar file still on my computer but am unsure of how to install again. i tried some of the ideas in similar posts and none have worked. im running 32 bit.

Any ideas?

also does anyone know for sure what happened to the madwifi.org site? and will it be fixed?

lunatik90
June 14th, 2008, 02:19 PM
williamson389, look in this topic: http://ubuntuforums.org/showthread.php?t=798485

fixed my problem using the ubuntu for EEE PC installation

abhilashkumar
June 15th, 2008, 01:21 AM
i had my wireless working after scouring thru the forums and finding a website on google--(http://blog.linuxoss.com/2008/05/08/ubuntu-804-enabling-atheros-ar5007-based-wireless/)

I held off on the updates because i had a feeling they would screw m over. then last night i updated and behold, my wireless was out again. now i find that the madwifi patch is no longer availible? i have the tar file still on my computer but am unsure of how to install again. i tried some of the ideas in similar posts and none have worked. im running 32 bit.

Any ideas?

also does anyone know for sure what happened to the madwifi.org site? and will it be fixed?

@williamson
Madwifi does break every time the system undergoes a kernel update.
However, I have always been able to get it working again by recompiling the madwifi drivers for the new kernel

If you still have the extracted madwifi drivers from last time, just go there again and recompile.

How I do it is:

1. Go into the folder (extracted madwifi)

2. Cleanup previous compile.
sudo make uninstall
sudo make clean

3. Recompile madwifi for the current kernel
sudo make
sudo make install

4. Bring up the card to connect
sudo modprobe ath_pci

This works for me everytime.

Let me know if it works!

Cheers!

williamson389
June 15th, 2008, 12:19 PM
aaaaaaaaa!! this is very frustrating i have tried multiple steps to get my wireless back since i updated and none have worked.
@abhilashkumar thank you.. it looked like it was working. i only had a problem at the command sudo make. it replied ther is command to make. or something like that. i continued with it and the other steps apperaed to be working but no dice. wireless networks dont even show up in Wicd. i dont know if it is the type of madwifi file i am usig. based on other threads if i am using the wrong one then nothing will take effect. i used the 3366 one idk if that is right.

the original patch i used was r2756-5007...this was before the update knocked out my wireless.

abhilashkumar
June 15th, 2008, 12:49 PM
aaaaaaaaa!! this is very frustrating i have tried multiple steps to get my wireless back since i updated and none have worked.
@abhilashkumar thank you.. it looked like it was working. i only had a problem at the command sudo make. it replied ther is command to make. or something like that. i continued with it and the other steps apperaed to be working but no dice. wireless networks dont even show up in Wicd. i dont know if it is the type of madwifi file i am usig. based on other threads if i am using the wrong one then nothing will take effect. i used the 3366 one idk if that is right.

the original patch i used was r2756-5007...this was before the update knocked out my wireless.

the madwifi version that I am using is madwifi-ng-r2756+ar5007
This has been working for me right through Gutsy and now Hardy. I have been using this for the lat 4-5 months.

Which one are you using?

williamson389
June 15th, 2008, 01:09 PM
i solved my problem finally. i used nicedudes walkthrough. it didnt work for me before so i didnt bother trying it until now. here's the link: http://ubuntuforums.org/showthread.php?t=795984

i have a feeling it worked this time because i unistall all of linux-restricted-modules in synaptic

Good Luck

cynicall
July 1st, 2008, 06:20 AM
Hello,

I have followed the steps in the post but it does not seem to work for me. I have a 32 bit and when I run make it gives me an error:


Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package build-essential
hasan@hasan-laptop:~/Masaüstü$


MAKE in /madwifi-ng-r2756+ar5007 DİRECTORY

Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.24-16-generic/build SUBDIRS=/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
HOSTCC /home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:26:19: error: stdio.h: No such file or directory
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:27:19: error: errno.h: No such file or directory
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:28:20: error: getopt.h: No such file or directory
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:29:20: error: string.h: No such file or directory
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:30:20: error: stdlib.h: No such file or directory
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:32:23: error: sys/fcntl.h: No such file or directory
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:33:22: error: sys/stat.h: No such file or directory
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c: In function 'uudecode_usage':
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:37: warning: implicit declaration of function 'printf'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:37: warning: incompatible implicit declaration of built-in function 'printf'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c: At top level:
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:40: error: expected ')' before '*' token
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:70: error: expected ')' before '*' token
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c: In function 'main':
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:121: error: 'FILE' undeclared (first use in this function)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:121: error: (Each undeclared identifier is reported only once
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:121: error: for each function it appears in.)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:121: error: 'src_stream' undeclared (first use in this function)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:122: error: 'dst_stream' undeclared (first use in this function)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:122: error: 'NULL' undeclared (first use in this function)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:130: warning: implicit declaration of function 'getopt'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:134: error: 'optarg' undeclared (first use in this function)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:138: warning: implicit declaration of function 'exit'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:138: warning: incompatible implicit declaration of built-in function 'exit'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:141: error: 'optind' undeclared (first use in this function)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:142: error: 'stdin' undeclared (first use in this function)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:144: warning: implicit declaration of function 'fopen'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:146: warning: implicit declaration of function 'fprintf'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:146: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:146: error: 'stderr' undeclared (first use in this function)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:147: warning: implicit declaration of function 'strerror'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:147: error: 'errno' undeclared (first use in this function)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:147: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:148: warning: incompatible implicit declaration of built-in function 'exit'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:152: warning: incompatible implicit declaration of built-in function 'exit'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:156: warning: implicit declaration of function 'get_line_from_file'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:156: warning: assignment makes pointer from integer without a cast
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:157: warning: implicit declaration of function 'strncmp'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:164: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:165: warning: incompatible implicit declaration of built-in function 'exit'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:168: warning: implicit declaration of function 'strtoul'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:170: warning: implicit declaration of function 'strchr'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:170: warning: incompatible implicit declaration of built-in function 'strchr'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:172: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:173: warning: incompatible implicit declaration of built-in function 'exit'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:178: warning: implicit declaration of function 'strcmp'
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:179: error: 'stdout' undeclared (first use in this function)
/home/hasan/Masaüstü/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:182: error: 'O_WRONLY' undeclared (first use in this function)