seriously WTF? (wifi)

weewoot
10-11-2008, 07:16 PM
solved thanks for your help!!!! :)


two days ago i got my ubuntu hardy 64bit live cd. i installed it and got my video card working finnally. now im plugged into a wired connection, trying to get my wifi to work. my card shows up as Atheros AR242x 802.llabg. i cant get it to work with madwifi or ndiswrapper. im using wcid because i heard its better. alot of times in terminal when i try something it always ends with something about bad line and blacklist(something like that.)

all i can say is WTF!:eek: can somebody please help me, i really like ubuntu and dont want to swtch back to xp or vista.

thanks,
weewoot

Meikura
10-11-2008, 07:17 PM
Wouldn't this be better on the ubuntu forums?

weewoot
10-11-2008, 07:35 PM
Wouldn't this be better on the ubuntu forums?

this is the linux forms, and from my understanding ubuntu is a flavor of linux.

Meikura
10-11-2008, 08:01 PM
What I mean is that the ubuntu forums are really active and helpful (from what I've seen), and could probably help you better there.

weewoot
10-11-2008, 08:34 PM
o, ok ill try there, thnx :)

SkaterGOD/DOOD23
10-12-2008, 08:02 AM
two days ago i got my ubuntu hardy 64bit live cd. i installed it and got my video card working finnally. now im plugged into a wired connection, trying to get my wifi to work. my card shows up as Atheros AR242x 802.llabg. i cant get it to work with madwifi or ndiswrapper. im using wcid because i heard its better. alot of times in terminal when i try something it always ends with something about bad line and blacklist(something like that.)

all i can say is WTF!:eek: can somebody please help me, i really like ubuntu and dont want to swtch back to xp or vista.

thanks,
weewoot

In case you're wondering it's 802.11a/b/g compatible. :) You wrote to l's.

In the meantime, I've been searching, and this is what has yielded (Run code in Italics in Terminal/Console):

Worked for some people:

1 ) First purge any presence or activity of any form of ndiswrapper. After reboot the Hardware drivers listed in System/HardwareDrivers must have a red light aside .

2 ) Remove from /etc/modprobe/blacklist any reference of ath_pci and ath_hal you removed before ...

3 ) Download:
gabes-computer-02:~ gabe$
svn co https://svn.madwifi.org/madwifi/branches/madwifi-hal-0.10.5.6

4 ) Install it reading the INSTALL files inside the package.

5 ) Enable back both drivers , reboot , enjoy !!!!


Longer guide (if asked to run command in Terminal, type only the stuff in Italics - Stuff in Bold is output of command):

The device string displayed by lspci -v (run this in terminal) was as follows:


gabes-computer-02:~ gabe$ lspci -v
01:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
Subsystem: Hewlett-Packard Company Unknown device 137a
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at 91300000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
gabes-computer-02:~ gabe$

First under (drop down menu on top menu-bar) System/Administration/HarwareDrivers disable both the Atheros HAL and the Atheros wireless thing and then reboot.

The kernel headers and the compiler are needed to build this driver so I started by installing build-essential. In a terminal window (Applications/Accessories/Terminal) enter:


gabes-computer-02:~ gabe$ sudo apt-get install build-essential

The driver code will be downloaded with the subversion source code manager so I installed subversion:


gabes-computer-02:~ gabe$ sudo apt-get install subversion

I needed a place to put the driver source without mixing it up with other stuff so I changed directory to my home directory:


gabes-computer-02:~ gabe$ cd ~

Created a directory:


gabes-computer-02:~ gabe$ mkdir madwifi

And changed to the new dirctory:


gabes-computer-02:~ gabe$ cd madwifi

Use subversion to download (checkout) a copy of the code:

gabes-computer-02:~ gabe$ svn co https://svn.madwifi.org/madwifi/branches/madwifi-hal-0.10.5.6

The above command failed for me at first because subversion couldn't find svn.madwifi.org
Madwifi will probably have their DNS problems worked out by the time you read this. But if not then see the section at the bottom of this post titled "Cant find svn.madwifi.org" for a solution before continuing.

After the driver code is downloaded by subversion, change to the directory, which should be madwifi-hal-0.10.5.6


gabes-computer-02:~ gabe$ cd madwifi-hal-0.10.5.6

Run the make script to have the compiler build the driver:


gabes-computer-02:~ gabe$ make

Install the driver


gabes-computer-02:~ gabe$ sudo make install

Add the Atheros kernel module to the list of modules to be automatically loaded at boot by adding "ath_pci" (without the quotes) to the end of the /etc/modules file. I used the vi editor which I won't describe here. Gedit is probably easy to use so try:


gabes-computer-02:~ gabe$ sudo gedit /etc/modules

Now you can reboot and it should work. To get it working without a reboot you need to load the module manually:


gabes-computer-02:~ gabe$ sudo modprobe ath_pci

That should do it. The little wireless button seems to always stay lit orange. When I press it it seems to disable the wireless but it still stays lit orange. WPA works for me. I assume WEP will also. I haven't tried WPA2



CANT FIND svn.madwifi.org

If subversion has a hard time finding svn.madwifi.org then add it's IP address to your hosts file. I found this page http://madwifi.org/ticket/1982 at madwifi.org that gives the IP address 217.24.1.142 of svn.madwifi.org in one of the last messages. I tried just giving subversion the command to connect to the IP address instead of the domain name, but it failed before finishing the checkout. Edit the file /etc/hosts and add "217.24.1.142 svn.madwifi.org" (without the quotes). I added it just after the 127.0.1.1 line


gabes-computer-02:~ gabe$ sudo gedit /etc/hosts

Now you can continue with the subversion checkout. You should probably remove this line from your hosts file when you're done with this so that if you want to go back there some day and they've moved it then DNS will give the most recent IP address.

Please refer to http://www.google.com/search?hl=en&q=Atheros+AR242x+802.11+Ubuntu&btnG=Search for more help if this didn't help you.

hakk79
10-12-2008, 08:04 AM
In case you're wondering it's 802.11a/b/g compatible. :) You wrote to l's.

In the meantime, I've been searching, and this is what has yielded (Run code in Italics in Terminal/Console):

Worked for some people:


Longer guide (if asked to run command in Terminal, type only the stuff in Italics - Stuff in Bold is output of command):



Please refer to http://www.google.com/search?hl=en&q=Atheros+AR242x+802.11+Ubuntu&btnG=Search for more help if this didn't help you.
O.o Wow man!

weewoot
10-12-2008, 09:51 AM
trying that now, thank you for your help man! :D
------------------double post merged------------------
[at the part "Edit the file /etc/hosts and add "217.24.1.142 svn.madwifi.org" (without the quotes). I added it just after the 127.0.1.1 line" i get premision denied.:( i googled it and it said i have to use sudo to have superuser and root privaleges, but the thing is i cant find out how to edit or replace the file using command line. do you know how?

SkaterGOD/DOOD23
10-12-2008, 01:37 PM
trying that now, thank you for your help man! :D
------------------double post merged------------------
[at the part "Edit the file /etc/hosts and add "217.24.1.142 svn.madwifi.org" (without the quotes). I added it just after the 127.0.1.1 line" i get premision denied.:( i googled it and it said i have to use sudo to have superuser and root privaleges, but the thing is i cant find out how to edit or replace the file using command line. do you know how?

Yes.

sudo nano /etc/hosts

weewoot
10-12-2008, 04:12 PM
:( everything was working, my drivers were in use when i enabled them and restarted, but network manager still sees no network... i did sudo modprobe ath_pci but it says /etc/modprobe.d/blacklist line 40: ignoring bad line starting with '“blacklist'

EDIT: ok so i removed line 40, my wireles networks are now dectected. :) but... when i enter my wep key it will not work, i tried all options for wep 128bit and 64bit but it wont work!!!!

you have been a really good help, this is the last thing stopping me. i tied google, but it did not help.