Announcement

Collapse
No announcement yet.

Kernel headers

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kernel headers

    Hi there,

    I'm trying to get my wlan to work using a Atheros 5007eg wlan card. On a different forum I was advised to reinstall ndiswrapper manually, so I downloaded it via vista (I'm running a dual boot). But when I do 'sudo make' I get the following:

    http://pastebin.com/m1a289732

    (I put it in pastebin because it's quite a long list of errors and warnings)

    So some guys said that I needed to install kernel headers. Now the problem is that the only way I know to install the kernel headers is via a package manager, and I don't have an Internet connection so thats impossible. My kernel version is 2.6.22.14 (generic).

    Do I have to install kernel headers to solve this problem? If yes, where do I get them? If no, how do I solve this problem?

    Thanks in advance!

    #2
    Re: Kernel headers

    assuming you have everything else that's needed...

    boot windoze.
    start your browser.
    point it here.
    download the linux-headers .deb file that goes with your current kernel to a shared directory.
    you'll have to get the right one.
    i'm on a 32bit i686 with kernel 2.6.22-14.
    the headers deb package that goes with it is: linux-headers-2.6.22-14
    if you're not sure, please post the details of your platform and current kernel.
    we can manually resolve the dependencies for you.

    boot linux.
    open a konsole.
    enter:
    Code:
    sudo dpkg -i <linux-headers-whatever>.deb
    you should now be able to compile your source.
    gnu/linux is not windoze

    Comment


      #3
      Re: Kernel headers

      I looked in the /user/src file, and there were already two files called linux-headers-2.6.22-14 and linux-headers-2.6.22-14-generic. Someone else told me that it could be possible that there was no symlink. So I'll see if there is one, and then report back here.

      Comment


        #4
        Re: Kernel headers

        here's what mine looks like...

        root@crisps:/usr/src/linux-headers-2.6.22-14$ ls -l
        total 128
        drwxr-xr-x 28 root root 4096 2007-10-22 22:54 arch
        drwxr-xr-x 2 root root 4096 2008-02-13 21:58 block
        drwxr-xr-x 2 root root 4096 2008-02-13 21:58 crypto
        drwxr-xr-x 7 root root 4096 2007-10-22 22:54 Documentation
        drwxr-xr-x 66 root root 4096 2008-02-13 21:58 drivers
        drwxr-xr-x 62 root root 4096 2008-02-13 21:58 fs
        drwxr-xr-x 43 root root 4096 2008-02-13 21:58 include
        drwxr-xr-x 2 root root 4096 2008-02-13 21:58 init
        drwxr-xr-x 2 root root 4096 2008-02-13 21:58 ipc
        -rw-r--r-- 1 root root 1530 2007-07-09 01:32 Kbuild
        drwxr-xr-x 5 root root 4096 2008-02-13 21:58 kernel
        drwxr-xr-x 5 root root 4096 2008-02-13 21:58 lib
        -rw-r--r-- 1 root root 50403 2008-02-12 08:08 Makefile
        drwxr-xr-x 2 root root 4096 2008-02-13 21:58 mm
        drwxr-xr-x 41 root root 4096 2008-02-13 21:58 net
        drwxr-xr-x 9 root root 4096 2008-02-13 21:58 scripts
        drwxr-xr-x 4 root root 4096 2008-02-13 21:58 security
        drwxr-xr-x 18 root root 4096 2008-02-13 21:58 sound
        drwxr-xr-x 2 root root 4096 2008-02-13 21:58 usr
        root@crisps:/usr/src/linux-headers-2.6.22-14-generic$ ls -l
        total 432
        drwxr-xr-x 3 root root 4096 2007-10-22 22:54 arch
        lrwxrwxrwx 1 root root 32 2007-10-22 22:54 block -> ../linux-headers-2.6.22-14/block
        lrwxrwxrwx 1 root root 33 2007-10-22 22:54 crypto -> ../linux-headers-2.6.22-14/crypto
        lrwxrwxrwx 1 root root 40 2007-10-22 22:54 Documentation -> ../linux-headers-2.6.22-14/Documentation
        lrwxrwxrwx 1 root root 34 2007-10-22 22:54 drivers -> ../linux-headers-2.6.22-14/drivers
        lrwxrwxrwx 1 root root 29 2007-10-22 22:54 fs -> ../linux-headers-2.6.22-14/fs
        drwxr-xr-x 5 root root 4096 2008-02-13 21:58 include
        lrwxrwxrwx 1 root root 31 2007-10-22 22:54 init -> ../linux-headers-2.6.22-14/init
        lrwxrwxrwx 1 root root 30 2007-10-22 22:54 ipc -> ../linux-headers-2.6.22-14/ipc
        lrwxrwxrwx 1 root root 33 2008-02-13 21:58 Kbuild -> ../linux-headers-2.6.22-14/Kbuild
        lrwxrwxrwx 1 root root 33 2007-10-22 22:54 kernel -> ../linux-headers-2.6.22-14/kernel
        lrwxrwxrwx 1 root root 30 2007-10-22 22:54 lib -> ../linux-headers-2.6.22-14/lib
        lrwxrwxrwx 1 root root 35 2008-02-13 21:58 Makefile -> ../linux-headers-2.6.22-14/Makefile
        lrwxrwxrwx 1 root root 29 2007-10-22 22:54 mm -> ../linux-headers-2.6.22-14/mm
        -rw-r--r-- 1 root root 424317 2008-02-12 11:41 Module.symvers
        lrwxrwxrwx 1 root root 30 2007-10-22 22:54 net -> ../linux-headers-2.6.22-14/net
        drwxr-xr-x 6 root root 4096 2008-02-13 21:58 scripts
        lrwxrwxrwx 1 root root 35 2007-10-22 22:54 security -> ../linux-headers-2.6.22-14/security
        lrwxrwxrwx 1 root root 32 2007-10-22 22:54 sound -> ../linux-headers-2.6.22-14/sound
        lrwxrwxrwx 1 root root 30 2007-10-22 22:54 usr -> ../linux-headers-2.6.22-14/usr
        btw, in order to compile on ubuntu system you also have to install the "build-essential" meta package.
        that includes:
        - libc6-dev | libc-dev
        - gcc (>= 4:4.1.1)
        - g++ (>= 4:4.1.1)
        - make
        - dpkg-dev (>= 1.13.5)

        hth
        gnu/linux is not windoze

        Comment

        Working...
        X