LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-06-2008, 04:59 PM   #1
lepht
Member
 
Registered: Jan 2008
Location: Silver City slums
Distribution: Fedora 11 Leonidas
Posts: 75

Rep: Reputation: 16
Unhappy one more time: ongoing problem making AR5007 card work with FC8, madwifi


okay, i'm now moving this question to the newbie forum, cause my previous two on the same problem just sort of died. if that was because i'm annoying y'all, or i'm asking the wrong questions, somebody tell me instead of just ignoring the thread, willya? otherwise i sit here for weeks waiting...

the problem is me trying to get an Atheros AR5007 card (lspci misidentifies it as an AR5006) working with madwifi, under Fedora Core 8, on a crap Toshiba Equium laptop. previously i've installed various madwifi versions, the AR5007 patched one included, and tried them all with varying degrees of success, but never been able to connect to any wireless network.

what i think i need to do is uninstall everything and start from clean, but being a noob, i got no idea how to do that. i'd really appreciate it if someone could a. tell me how to uninstall tarballs and b. help me out with trying to get madwifi installed and working. i can provide any hardware details and network details ya need.

the threads that got left hanging are:
the first one i asked
and the second one

thanks for helping, hopefully i can do the same one day...

Lepht
 
Old 03-06-2008, 07:29 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,810
Blog Entries: 54

Rep: Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986
Looks like you left one of two threads dangling yourself, the other has you saying the AP requires WPA-TKIP. That said not being able to connect to a WLAN doesn't necessarily mean you got the madwifi module stuff wrong could be the wpa_supplicant auth stuff. You know (from the madwifi docs) how to diagnose all is installed && up and running so you can move on to checking the auth stuff?
 
Old 03-07-2008, 07:54 AM   #3
lepht
Member
 
Registered: Jan 2008
Location: Silver City slums
Distribution: Fedora 11 Leonidas
Posts: 75

Original Poster
Rep: Reputation: 16
yeah, i wasn't yelling at anyone. that's why i moved the thread. any case, that's my point - i have absolutely no clue what i'm doing, i don't even know what wpa_supplicant is; right now, the madwifi is supposedly all installed, but when i tried some kinda script with the last guy, it didn't work, i deleted it again and now no wifi at all even tries to load.

if nothing else, can ya just tell me how to remove a tarball so i can remove everything and start again?

L

ed. i haven't verified it, no, idk how.

Last edited by lepht; 03-07-2008 at 07:56 AM. Reason: ps.
 
Old 03-07-2008, 09:00 AM   #4
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Ok if you really want help I would do the following first, in this thread. Outline all you have done, step by step here in an easy to read format. Like so.

Specs:
#lspci
#uname -ar

Steps I have done:
1. I did X
2. I did Y
3. Joe Schmoe said do this, so I did

Making people thread jump isn't going to help any. I am not a madwifi expert, but I have been able to get it going just by reading the docs and I will gladly help in any way I can.

hth

Edit: I wouldn't uninstall anything just quite yet.

Last edited by lord-fu; 03-07-2008 at 09:03 AM.
 
Old 03-08-2008, 09:35 PM   #5
lepht
Member
 
Registered: Jan 2008
Location: Silver City slums
Distribution: Fedora 11 Leonidas
Posts: 75

Original Poster
Rep: Reputation: 16
yeah, i really do need help here - i'm in so far over my head... like i said, i'm really not trying to be a jerk here; sorry if i gave the wrong impression, i appreciate anything you guys can offer.

specs:
lspci: (edited to remove the irrelevant devices)
05:00.0 Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01)
07:08.0 Ethernet controller: Intel Corporation PRO/100 VE Network Connection (rev 02)

uname -ar:
Linux SHODAN.citadel 2.6.23.15-137.fc8 #1 SMP Sun Feb 10 17:48:34 EST 2008 i686 i686 i386 GNU/Linux
(i'm using the older kernel because of a weird bug in the new version with Compiz)

steps i've already done:
1. found card didn't work out of the box, installed regular stable version of madwifi
2. had to boot into core and not xen to make it compile, got it compiled and installed, didn't create any ath devices
3. tried installing the special AR5007 patched madwifi version, didn't create any devices either
4. excluded the older, non-working wireless kernel module and manually modprobed the madwifi ones. after this it seemed to have a device, though not an ath0 one, that tried (failed) to get IP info at startup
5. Brian1 told me to use a script in the network config folder that included network details - this didn't work, which is why i was telling him it needed AKIP on the other thread. after i deleted it, the device and all the startup stuff is gone, so i'm back here.

seriously though, how do you uninstall a source tarball? i'm not gonna remove anything just yet, i just want to know and google won't tell me... thanks guys, i honestly am grateful for the help.

L
 
Old 03-09-2008, 07:15 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,810
Blog Entries: 54

Rep: Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986
Deleting files from a tarball you installed with the './configure && make && make install' mantra can be done with 'make uninstall' (in the directory you installed from and *if* the Makefile provides uninstall). Else you could 'make -n install 2>&1|tee ./installer.tee'. This won't install again ("-n") but only list what it would do, read the output ('less ./installer.tee') and locate the files. IIRC the only thing Madwifi does is place modules in /lib/modules/kernel-$VERSION, so if you remove those and 'depmod' again you should be clean if the modules aren't mentioned elsewhere.


You're saying you're in far over your head, and you already indicated you're close to throwing your towel in the ring. But if the Madwifi modules loaded OK and if it created a usable device (whatever the name, it's configurable) then you're already halfway through. You just have to understand what Wireless under GNU/Linux needs and how it works. Any Madwifi doc should show the dependencies:
- kernel with Wifi enabled (apparently OK since modules load w/o problems),
- Madwifi modules (apparently OK),
- Wireless tools (use the CVS version since it fixes *a lot* of things),
- Wpa_supplicant (for auth to the AP, this is where you configure WPA-TKIP),
- Dhclient if not static IP.
That's why I asked you if you knew from the madwifi docs how to diagnose things installed and configured OK so we could move on to the auth stuff.
 
Old 03-10-2008, 01:12 PM   #7
lepht
Member
 
Registered: Jan 2008
Location: Silver City slums
Distribution: Fedora 11 Leonidas
Posts: 75

Original Poster
Rep: Reputation: 16
aight, i'll bear that in mind. like i said, i'm not gonna uninstall anything until i have to. thanks!

as for the towel, it's tied to my hand: i ain't throwing that thing anywhere... i just got frustrated, is all. sorry bout that. i'm not so sure the devices i ended up creating were entirely configurable - usually they'd give warnings at boot where "set mode" had failed, but it was always a hex code, so i have no idea which mode was failing to be set.

okay. kernel - check. modules are still showing up in lsmod - check. which particular wireless tools are we talking about here? i have wifiRadar, but that's about it. i've not messed with wpa_supplicant or dhclient at all, but i will be needing dhclient for sure.

in that case, i guess we can move on and figure out the auth. whatever needs doing, i'll do it - i'm seriously not anywhere close to giving up.

L
 
Old 03-10-2008, 02:27 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,810
Blog Entries: 54

Rep: Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986
OK. Cool. The tools I talked about is the package that provides iwconfig, iwlist, iwspy and such. You probably already have them but check with 'yum install wireless-tools wpa_supplicant', just in case. In your other thread you posted 'lsmod' output and IIRC it's missing some related modules. In any case, try to 'modprobe -r ath_pci' and all related modules. Now try 'modprobe ath_pci autocreate=sta' check your lsmod output and see if it's got *all* Madwifi modules loaded included (check the dir they're installed in). Now 'modprobe wlan_scan_sta; ifconfig ath0 up'. Then 'iwlist ath0 scan' should spit out info about AP's near. Post any errors you get.
 
Old 03-11-2008, 11:37 PM   #9
lepht
Member
 
Registered: Jan 2008
Location: Silver City slums
Distribution: Fedora 11 Leonidas
Posts: 75

Original Poster
Rep: Reputation: 16
sir yes sir... tools and the supplicant are all installed and updated already. but when i rebuilt the patched madwifi version, modprobe -r'd the ath_pci module out and then tried to reinsert it, i got this:

[root@SHODAN madwifi-ng-r2756+ar5007]# modprobe ath_pci
FATAL: Error inserting ath_pci (/lib/modules/2.6.23.15-137.fc8/net/ath_pci.ko): Unknown symbol in module, or unknown parameter (see dmesg)

not sure what's with that, i was able to do it fine before.

L
 
Old 03-12-2008, 12:38 AM   #10
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
What does the end of dmesg reveal when trying to moprobe? Any clues? Also do you have any settings in /etc/modprobe.d/ for ath_pci?
 
Old 03-13-2008, 10:59 PM   #11
lepht
Member
 
Registered: Jan 2008
Location: Silver City slums
Distribution: Fedora 11 Leonidas
Posts: 75

Original Poster
Rep: Reputation: 16
dive: it worked this time; i dunno what happened there. as for modprobe.d settings, i've got the following:
blacklist blacklist-ath5k blacklist-visor madwifi
blacklist-compat floppy-pnp modprobe.conf.dist
the ath5k module we had to blacklist last time because the hardware seemed to still be using it (it's the wrong one.) not sure what the madwifi one is.

unSpawn: i can remove all modules except ath_hal, which it says is in use. it doesn't give me any problems when i modprobe autocreate, which gives me ath_pci, wlan_scan_sta, ath_rate_sample, wlan, and ath_hal modules loaded, and i can then modprobe in all the extra authentication modules (wlan_wep, wlan_tkip, wlan_ccmp, wlan_acl, wlan_xauth) and wlan_scan_ap without a problem. it all shows up in the lsmod. the other two i didn't modprobe in are the ONOE and AMRR rate control algos, which i don't need.

when i try to ifconfig ath0 up, i get this:
ath0: unknown interface: No such device

it never did create an ath0 device on my machine in the first place, usually it was called wlan0. i don't know why, or whether that's a bad thing, but i can ifconfig up the wlan0 interface without errors, and i get this dump:

wlan0 Scan completed :
Cell 01 - Address: 00:14:7F:BF:791
ESSID:"BTHomeHub-BE63"
Mode:Master
Frequency:2.412 GHz (Channel 1)
Quality=13/70 Signal level=-82 dBm Noise level=-95 dBm
Encryption keyn
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:bcn_int=100
Extra:wme_ie=dd180050f2020101880003a4000027a4000042435e0062322f00
Cell 02 - Address: 00:1B:5B:46:4E:51
ESSID:"Interweb"
Mode:Master
Frequency:2.417 GHz (Channel 2)
Quality=51/70 Signal level=-44 dBm Noise level=-95 dBm
Encryption keyn
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:bcn_int=100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Cell 03 - Address: 00:30:F1:C0:20:1A
ESSID:"belkin54g"
Mode:Master
Frequency:2.462 GHz (Channel 11)
Quality=4/70 Signal level=-91 dBm Noise level=-95 dBm
Encryption keyff
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:bcn_int=100


sorry about the long post, and thanks for getting me this far at least... now we can work on the auth =]

L
 
Old 03-14-2008, 06:39 AM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,810
Blog Entries: 54

Rep: Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986
Quote:
Originally Posted by lepht View Post
it never did create an ath0 device on my machine in the first place, usually it was called wlan0. i don't know why,
That's a default AFAIK, you'll have to tell it to name it "ath" somewhere IIRC. Have to do this blindfolded since I nuked my hardware real good :-]


Quote:
Originally Posted by lepht View Post
i can ifconfig up the wlan0 interface without errors
Yessss! OK, so the AP named "Interweb" is the one to use, right? Post the contents of your /etc/sysconfig/network-scripts/wlan0, /etc/(wpa_supplicant)/wpa_supplicant.conf (and /etc/sysconfig/network/profile/* if any and related) if you have them but leave out the auth keys.
 
Old 03-16-2008, 10:18 AM   #13
lepht
Member
 
Registered: Jan 2008
Location: Silver City slums
Distribution: Fedora 11 Leonidas
Posts: 75

Original Poster
Rep: Reputation: 16
yeah, the Interweb one is the right AP, though after that i'm gonna need to configure it with the University APs too, which are a total snarl... there's no sysconfig script for the interface though. this is wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

profiles has one dir, 'default', this is what's in it:

hosts:
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost localhost
::1 localhost6.localdomain6 localhost6

ifcfg-wlan0:
# Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter
DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:16:e3:e5:79:61
NETMASK=
DHCP_HOSTNAME=
IPADDR=
DOMAIN=
TYPE=Wireless
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
NM_CONTROLLED=yes
ESSID=
CHANNEL=1
MODE=Auto
RATE=Auto

resolv.conf:
; generated by /sbin/dhclient-script
search gateway.2wire.net
nameserver 192.168.1.254

there's also an empty file called network, a config file for the eth0 interface and a keys file for the wlan0 interface with one blank key. thanks

L
 
Old 03-17-2008, 09:30 AM   #14
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,810
Blog Entries: 54

Rep: Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986Reputation: 2986
Quote:
Originally Posted by lepht View Post
after that i'm gonna need to configure it with the University APs too, which are a total snarl...
Wrt different networks that's what the profiles are for. Note that wpa_supplicant.conf can address different networks itself, see the man page, examples and example below.


Quote:
Originally Posted by lepht View Post
this is wpa_supplicant.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
That's not enough. Should look something like this:
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=1
ap_scan=1
fast_reauth=1

network={
  ssid="Interweb"
  priority=10
  scan_ssid=1
  proto=WPA RSN
  key_mgmt=WPA-PSK
  pairwise=CCMP TKIP
  group=CCMP TKIP
  psk="putpasskeyhere"
}

# Below probably not necessary. I used those entries to 
# make wpa_supplicant not bother with other AP's.
network={
  ssid="BTHomeHub-BE63"
  priority=100
  key_mgmt=NONE
}

network={
  ssid="belkin54g"
  priority=100
  key_mgmt=NONE
}
The man page should tell you how to wedge in an entry with the MAC of the AP (00:1B:5B:46:4E:51) and the channel (2).
The conf should work for your WPA2 / CCMP / PSK AP else see the wpa_supplicant.conf man page or http://hostap.epitest.fi or
http://www.linuxquestions.org/questi...65#post2171665
http://www.linuxquestions.org/linux/...licant_working
http://www.linuxquestions.org/linux/...WPA_Encryption
http://home.nyc.rr.com/computertaiju...less.html#5007
http://www-users.york.ac.uk/~mdc1/fedora_wireless.html



Quote:
Originally Posted by lepht View Post
hosts:
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost localhost
::1 localhost6.localdomain6 localhost6
Quote:
Originally Posted by lepht View Post
ifcfg-wlan0
Should have the channel and SSID set:
Code:
ESSID="Interweb"
CHANNEL=2

Quote:
Originally Posted by lepht View Post
resolv.conf
Will be taken care of by dhclient.


Quote:
Originally Posted by lepht View Post
there's also an empty file called network (..) and a keys file for the wlan0 interface with one blank key.
Network should look like
Code:
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
and the keys go in wpa_supplicant.conf.


So what happens:
- you boot the box, the Madwidi kernel modules get loaded,
- network comes up which takes care of 'ifconfig up wlan0' and 'dhclient wlan0' (check interface and process dhclient)
so all you're missing is the wpa_supplicant auth stuff. Run this from the console: 'wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -Dmadwifi -w -dd' and see if it throws back ugly errors or not.
 
Old 03-18-2008, 10:16 PM   #15
lepht
Member
 
Registered: Jan 2008
Location: Silver City slums
Distribution: Fedora 11 Leonidas
Posts: 75

Original Poster
Rep: Reputation: 16
yo, sorry for the delay. questions - do i need to edit those files to look like your examples myself, or is that what we're trying to achieve as an end result? also when you say wedge in an entry, what exactly do you mean by an entry? sorry for the confusion, i'm still new to all this =]

also wrt booting, no - no wireless info comes up like it used to on boot. on and off whilst i've been trying to fix this, i've seen the wireless try to up itself on boot and fail, but right now, it isn't even present in the errors.

last up, the AP actually uses AKIP and not TKIP - i can switch those around in your examples with no problem, right?

thanks

L
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Atheros AR5007 802.11b/g wireless won't work in OpenSUSE 10.3 justin23lee Linux - Wireless Networking 12 06-01-2008 12:41 PM
madwifi-ng r2756 + ar5007 patch not recognising card under fedora core 8 lepht Linux - Wireless Networking 10 02-26-2008 09:44 PM
How do I install madwifi or similar to work with my wireless card? ezirkara Linux - Newbie 1 12-28-2007 12:39 AM
Need help making sound card work! jlp1976 Linux - Hardware 1 09-25-2005 07:05 AM
help on making xterasys xn-2522g pci card work parv Linux - Wireless Networking 0 07-19-2004 06:58 PM


All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration