Results 1 to 6 of 6

Thread: where is the kernel source?

  1. #1
    Join Date
    Jan 2005
    Beans
    346

    where is the kernel source?

    i'm running 2.6.8.1-4-386 and apt-cache search kernel-source doesn't find anything for that version. any ideas where it is?

    oh and any help on how to compile it would be appreciated as well.

    i tried it a few days ago and something went terribly wrong. i'm blaming either a) I used the wrong version, b) i deleted something necessary in the config, c) i can't follow directions.

    i'd like to try it again, but i need to be sure i'm getting the correct source before i get started.

    thanks

  2. #2
    Join Date
    Nov 2004
    Location
    Texas
    Beans
    2,434

    Re: where is the kernel source?

    Quote Originally Posted by jerome bettis
    i'm running 2.6.8.1-4-386 and apt-cache search kernel-source doesn't find anything for that version. any ideas where it is?

    oh and any help on how to compile it would be appreciated as well.

    i tried it a few days ago and something went terribly wrong. i'm blaming either a) I used the wrong version, b) i deleted something necessary in the config, c) i can't follow directions.

    i'd like to try it again, but i need to be sure i'm getting the correct source before i get started.

    thanks
    It might not be there. Look in synaptic and see if it is installed.

  3. #3
    Join Date
    Dec 2004
    Beans
    55

    Re: where is the kernel source?

    The kernel source package is not specific to any of the linux kernel images (correct me if I'm wrong). When you install a kernel source package, it places the source in your /usr/src directory as a tar.bz2 file. You'll have to extract this file before you'll be able to get started configuring and compiling your kernel.

    Here's a guide to compiling debian kernels.
    http://www.desktop-linux.net/debkernel.htm

  4. #4
    Join Date
    Jan 2005
    Beans
    346

    Re: where is the kernel source?

    Quote Originally Posted by Randabis
    The kernel source package is not specific to any of the linux kernel images (correct me if I'm wrong). When you install a kernel source package, it places the source in your /usr/src directory as a tar.bz2 file. You'll have to extract this file before you'll be able to get started configuring and compiling your kernel.

    Here's a guide to compiling debian kernels.
    http://www.desktop-linux.net/debkernel.htm
    it HAS to be there. but searching apt-cache for kernel-source (what it is when i had debian) this is what i get:

    kernel-source-2.2.25 - Linux kernel source for version 2.2.25
    kernel-source-2.4.24 - Linux kernel source for version 2.4.24 with Debian patches
    kernel-source-2.4.25 - Linux kernel source for version 2.4.25 with Debian patches
    kernel-source-2.4.26 - Linux kernel source for version 2.4.26 with Debian patches
    kernel-source-2.6.5 - Linux kernel source for version 2.6.5 with Debian patches
    kernel-source-2.6.6 - Linux kernel source for version 2.6.6 with Debian patches
    kernel-source-2.6.7 - Linux kernel source for version 2.6.7 with Debian patches

    i'm using a 2.6.8 right now - where is the source for the kernel that comes with ubuntu??? i guess i could downgrade to 2.6.7 but there's no way i should have to do that. why isn't the source for this kernel i'm using now in the repository? weird ... i run apt-get update & upgrade & dist-upgrade daily.

    i extracted the tar.bz2 file and ran the commands in the readme file when i installed the source for the 2.6.7 version last time and i got a kernel panic. i did delete a bunch of "useless" stuff ... maybe i got a little excited.

    the only part that kinda confused me was at the very end when it was done. the file it said to add to grub's menu.lst file for the kernel didn't exist. but there was one in a different directory. i put that in the boot file and got a kernel panic.

    thanks for that link.
    Last edited by jerome bettis; January 22nd, 2005 at 08:18 AM.

  5. #5
    Join Date
    Oct 2004
    Location
    Helsinki, FI
    Beans
    368

    Re: where is the kernel source?

    linux-source-2.6.8.1
    daniel dot stone at ubuntu dot com

  6. #6
    Join Date
    Jan 2005
    Beans
    346

    Re: where is the kernel source?

    Quote Originally Posted by daniels
    linux-source-2.6.8.1

    THANK YOU

Bookmarks

Posting Permissions

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