Hi,
I am trying to install madwifi so I can use atheros chipset wireless on OpenSUSE. I am receiving this error when running make for madwifi:
Makefile.inc:91: *** KERNELCONF: /lib/modules/2.6.25.5-1.1-pae/build/.config does not exist… Stop.
All of the instructions I have read said this problem is solved by installing kernel-sources and kernel-syms (or something like that). This did not affect the problem for me. I don’t know what else to do. I have linux-kernel-headers installed. What else can I do?
Edit: When I was originally posting this, I thought I didn’t have a /lib/modules for the output of uname -r but I actually do and forgot to change the subject line. Sorry about the misleading post.
Excuse me, why exactly are you going through all this hassle? The Madwifi package is downloadable from the repos directly, no need compiling it from scratch.
To the 1st reply:
I do have kernel-sources, make, and gcc installed.
To the 2nd reply:
The atheros chipset is under heavy development and not widely supported at this point in time. I already did install madwifi from the repos and tried a number of different methods to attempt to get the atheros card working but to no avail. I am now attempting to follow guides written by people who have had success and claim the version of madwifi in the repos did not work for them but compiling snapshot versions did.
Please confirm that your current kernel version is 2.6.25.5-1.1-pae with the ‘uname -r’ command.
If lib/modules/2.6.25.5-1.1-pae/ doesn’t exist you’re going to need to (re)install the linux-kernel-headers and/or source.
# uname -r
2.6.25.5-1.1-pae
# ls /lib/modules/
2.6.25.18-0.2-debug 2.6.25.18-0.2-lockdep 2.6.25.18-0.2-xen
2.6.25.18-0.2-default 2.6.25.18-0.2-pae 2.6.25.5-1.1-pae
# ls -a /lib/modules/2.6.25.5-1.1-pae/build
. .. makedumpfile.config Module.symvers
It occurs to me that this problem is not specific to madwifi. This will happen if I try to make anything.
I have linux kernel headers and linux kernel source installed. The repository version of both of those is 2.6.25.18-0.2. I am confused by this. Does 2.6.25.18-0.2 use the same source & headers as 2.6.25-1.1-pae? I ran make KERNELPATH=/usr/src/linux (as /usr/src/linux is a link to 2.6.25.18-0.2) but it gave a boatload of errors.
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /usr/src/linux SUBDIRS=/home/username/madwifi-hal-0.10.5.6-r3875-20081105 modules
make[1]: Entering directory `/usr/src/linux-2.6.25.18-0.2'
WARNING: Symbol version dump /usr/src/linux-2.6.25.18-0.2/Module.symvers
is missing; modules will have no dependencies and modversions.
And then goes on to about a hundred pages of errors (literally).
I solved this problem. Somehow the kernel headers, sources, and syms had gotten updated but the kernel itself hadn’t. I opened yast, went to software -> online update, and I can’t find exactly what I selected, but I installed the kernel 2.6.25.18-0.2-pae. After this, uname -r still said I was running 2.6.25.5-1.1-pae and I couldn’t run make, but I rebooted and it worked fine after that and uname -r now says I am running the kernel with the 18 in it.
Noobskills to the rescue! I know there was probably a way to do this CLI too, which I would’ve preferred.
I have heard of a few other instances of this card misreporting itself. I don’t know if it does that under Windows also but I think it has been known to happen under a few other *nixes.
I solved this problem. Somehow the kernel headers, sources, and syms had gotten updated but the kernel itself hadn’t. I opened yast, went to software -> online update, and I can’t find exactly what I selected, but I installed the kernel 2.6.25.18-0.2-pae. After this, uname -r still said I was running 2.6.25.5-1.1-pae and I couldn’t run make, but I rebooted and it worked fine after that and uname -r now says I am running the kernel with the 18 in it.
Good result. Kernel updates always require a reboot.