Results 1 to 8 of 8

Thread: do not have kernel folder for uname -r

  1. #1

    Default do not have kernel folder for uname -r

    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.

  2. #2
    Join Date
    Jun 2008
    Location
    Kentucky, USA
    Posts
    466

    Default Re: do not have kernel folder for uname -r

    It sounds like you need to install the kernel source from the repos. You will also need if not already installed:

    make
    gcc
    Klaatu Barada Nikto

  3. #3
    Join Date
    Jul 2008
    Location
    Ljubljana
    Posts
    522

    Default Re: do not have kernel folder for uname -r

    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.
    http://stopsoftwarepatents.eu/
    Even if free software were ****, it should still get our preference over the non-free **** secreted by IT corporations.
    A free rephrasing of RMS

  4. #4

    Default Re: do not have kernel folder for uname -r

    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.

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,398
    Blog Entries
    1

    Default Re: do not have kernel folder for uname -r

    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.

  6. #6

    Default Re: do not have kernel folder for uname -r

    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.
    Code:
    # uname -r
    2.6.25.5-1.1-pae
    Code:
    # 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
    Code:
    # 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.

    Code:
    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).

  7. #7

    Default Re: do not have kernel folder for uname -r

    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.

    For the record to help out future searchers, following this guide [Solution]Atheros AR242x - Suse11 - pae kernel - openSUSE Forums worked to get my atheros 5007 working. On my machine this card incorrectly reports itself as AR242x:

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

    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.

    Now how do I mark this thread solved?

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,398
    Blog Entries
    1

    Default Re: do not have kernel folder for uname -r

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •