LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-13-2007, 05:20 PM   #1
jacobdm
LQ Newbie
 
Registered: Oct 2007
Distribution: Debian
Posts: 15

Rep: Reputation: 0
Wifi installation problem for a Atheros chipset


I tried to install madwifi, so I could get my TEW-441PC working, but when I went to make, this is the error I got:

/bin/sh: line 0: cd: /lib/modules/2.6.18-5-486/build: No such file or directory
Makefile.inc:66: *** /lib/modules/2.6.18-5-486/build is missing, please set KERNELPATH. Stop.

I echoed kernelpath, and it wasn't set to anything! I tried to figure out what to set it to, but I can't figure out how to find "build".

So instead I went and tried to install ndiswrapper after that, but when I tried to make that, it gave a gazillion errors, but basically acted like it didn't understand basic C commands. Some examples are:

loadndisdriver.c:527: warning: implicit declaration of function ‘atoi’
loadndisdriver.c:542: warning: implicit declaration of function ‘atof’
loadndisdriver.c:549: warning: implicit declaration of function ‘strcmp’

I know that I have gcc 4.1 installed (I checked with gnome-apt). I'm not even really sure where to start in this problem... Anyone have any ideas for me?
 
Old 10-13-2007, 05:36 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Install the kernel source package for the kernel you're running. You'll probably want the headers as well.
 
Old 10-13-2007, 06:17 PM   #3
jacobdm
LQ Newbie
 
Registered: Oct 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
I loaded linux-header, but I couldn't find a linux-source or kernel-source anywhere. I tried downloading linux-image and that changed things, but now when I try to make madwifi, it couldn't find the headers, so it of course gave a bunch of errors like ndiswrapper did. How do I tell it where to find the proper header files? Or did I download the wrong thing?

home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:26:19: error: stdio.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:27:19: error: errno.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:28:20: error: getopt.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:29:20: error: string.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:30:20: error: stdlib.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:32:23: error: sys/fcntl.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:33:22: error: sys/stat.h: No such file or directory

.....
 
Old 10-13-2007, 11:43 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Looks like something's gone wrong, as you're missing some headers you definitely should have.
 
Old 10-20-2007, 09:17 PM   #5
jacobdm
LQ Newbie
 
Registered: Oct 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
So no one knows what might be the problem here? Whatever is going on, I can't seem to install anything except what I use aptitude to get. Is there some path that I need to set? Or a header file or something that I'm missing? This seems like a fairly fundamental problem, so I'm sure that someone else has run across this before...
 
Old 10-21-2007, 09:10 AM   #6
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 226

Rep: Reputation: 43
Those C header files are part of libc6-dev. Do you have it installed?

Norm
 
Old 10-30-2007, 11:45 PM   #7
jacobdm
LQ Newbie
 
Registered: Oct 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
Yes, I have "libc6-dev" installed. I also have "libc6" and "libc6-i686" installed. I'm running an Intel dual core processor, so the "i686" should apply to me (I think).

Anything else I could check?
 
Old 11-01-2007, 09:32 PM   #8
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 226

Rep: Reputation: 43
From the gcc docs:
Quote:
GCC looks in several different places for headers. On a normal Unix system, if you do not instruct it otherwise, it will look for headers requested with #include <file> in:

/usr/local/include
libdir/gcc/target/version/include
/usr/target/include
/usr/include
So make sure those C headers reside in one of those directories. On my system they're in /usr/include.

Try running
Code:
make info
in your madwifi directory and post the results.

Norm
 
Old 11-05-2007, 11:55 PM   #9
jacobdm
LQ Newbie
 
Registered: Oct 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
I managed to get it to make properly. I went and installed "linux-headers 2.18-5" rather than "linux-headers 2.18-5-686", and it installed without error.

Now I just have to get it to work... I try to follow the instructions on the madwifi website, and it breaks down when I get to trying to scan. It simply says:

ioctl[unknown???]: No such device
wlanconfig: unable to get scan results

I try to create a ath0 device, (which shouldn't be necessary wit hthe newer build, but I tried anyway) and it said:

wlanconfig: ioctl: No such device

So I went to check what devices are in the system, and all there were was eth0, eth1, and lo. Shouldn't there be a wifi0 or a device like that in the system already? Or is this another patch that I need to install?
 
Old 11-06-2007, 01:07 PM   #10
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
If you're running Debian, in the future, you'll find it better to use Module-Assistant to compile and install kernel modules. As root, just type Module-Assistant or m-a. There will be an ncurses-type graphical interface to walk you through installing available kernel modules. You might have to install the package first using apt-get install module-assistant. It's the "Debian Way".

Try an lsmod and see if the ath_pci module is installed. If not, you'll have to install using modprobe ath_pci.

Check the madwifi docs - they are pretty good.
 
Old 11-07-2007, 09:29 AM   #11
jacobdm
LQ Newbie
 
Registered: Oct 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
The modprobe ath_pci did put a couple modules on the list when I typed lsmod, but it didn't seem to make a difference. I have tried reading through the madwifi documentation. It's quite extensive, but I can't find where it address any problems like what I'm seeing here.

Here's what I tried; Any more suggestions?

----------------------

David-Debian:/home/david# modprobe ath_pci
David-Debian:/home/david# modprobe wlan_scan_sta
David-Debian:/home/david# wlanconfig ath0 list scan
ioctl[unknown???]: No such device
wlanconfig: unable to get scan results
David-Debian:/home/david# wlanconfig ath0 create wlandev wifi0 wlanmode sta
wlanconfig: ioctl: No such device
David-Debian:/home/david# iwconfig
bash: iwconfig: command not found
David-Debian:/home/david# ifconfig
eth1 Link encap:Ethernet HWaddr 00:1B:FC:E1:56:A5
inet addr:192.168.1.165 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:fee1:56a5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5202 errors:0 dropped:0 overruns:0 frame:0
TX packets:4160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5334538 (5.0 MiB) TX bytes:723228 (706.2 KiB)
Interrupt:225 Base address:0x6000

eth2 Link encap:Ethernet HWaddr 00:1B:FC:E1:5D:21
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:233 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)

David-Debian:/home/david# lsmod
Module Size Used by
wlan_scan_sta 12160 0
ath_pci 82688 0
wlan 177764 2 wlan_scan_sta,ath_pci
ath_hal 191504 1 ath_pci

..... (there's a lot of stuff listed)
 
Old 11-07-2007, 10:38 AM   #12
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
Post the results of lsmod as well as ifconfig.
 
Old 11-08-2007, 11:10 AM   #13
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
Does the computer have two different wired Ethernet NICs? There's an eth1 and eth2. Don't see the expected wlan0 or ath0 or something similar.

Is the wifi card a PCI card or what? Try lspci to see what it is reporting.

There is a Wireless networking forum here. You might want to post a question listing the details of your computer, wifi card, and the results of what you've done so far.

I suspect there may be some installation issues with the madwifi module installation.
 
Old 11-14-2007, 12:28 AM   #14
jacobdm
LQ Newbie
 
Registered: Oct 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
*nods* Yes, there are 2 ethernet ports built into the motherboard. I'll post a question over on the wireless forum. The lspci says that I have a "unknown device" so you're probably right about it being a installation issue.

-----------

David-Debian:/home/david# lspci
00:00.0 Host bridge: nVidia Corporation C55 Host Bridge (rev a2)
00:00.1 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:00.2 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:00.3 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:00.4 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:00.5 RAM memory: nVidia Corporation C55 Memory Controller (rev a2)
00:00.6 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:00.7 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.0 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.1 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.2 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.3 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.4 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.5 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.6 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:02.0 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:02.1 RAM memory: nVidia Corporation Unknown device 03bc (rev a1)
00:02.2 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:03.0 PCI bridge: nVidia Corporation C55 PCI Express bridge (rev a1)
00:09.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a1)
00:0a.0 ISA bridge: nVidia Corporation MCP55 LPC Bridge (rev a2)
00:0a.1 SMBus: nVidia Corporation MCP55 SMBus (rev a2)
00:0b.0 USB Controller: nVidia Corporation MCP55 USB Controller (rev a1)
00:0b.1 USB Controller: nVidia Corporation MCP55 USB Controller (rev a2)
00:0d.0 IDE interface: nVidia Corporation MCP55 IDE (rev a1)
00:0e.0 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
00:0e.1 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
00:0e.2 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
00:0f.0 PCI bridge: nVidia Corporation MCP55 PCI bridge (rev a2)
00:0f.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)
00:11.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a2)
00:12.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a2)
00:16.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a2)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0292 (rev a1)
02:07.0 Network controller: Atheros Communications, Inc. Unknown device 0023 (rev 01)
02:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev c0)
03:00.0 Mass storage controller: Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller (rev 01)

Last edited by jacobdm; 11-14-2007 at 12:30 AM. Reason: adding ethernet information
 
  


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 cardbus wifi card problem Nostur Linux - Hardware 1 05-23-2006 10:13 PM
atheros AR5BMB5 wifi blueAlien Linux - Hardware 3 05-17-2006 05:52 PM
SMC 2336 atheros chipset metallica1973 Linux - Wireless Networking 2 02-26-2006 12:32 PM
Wireless Atheros Chipset Drivers fugitiveTD Linux - Hardware 18 06-09-2005 01:08 PM
Atheros Wireless Chipset Compatibility Owncube Linux - Laptop and Netbook 0 07-16-2003 10:52 PM


All times are GMT -5. The time now is 06:20 AM.

Main Menu
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