LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   install kernel-source correctly (https://www.linuxquestions.org/questions/debian-26/install-kernel-source-correctly-349012/)

cccc 08-01-2005 06:12 PM

install kernel-source correctly
 
hi

I have debian sarge:
Code:

# uname -a
Linux debian 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

and I need kernel-source to install some drivers.

apt-cache shows me a patch for my kernel:
Code:

# apt-cache search kernel-source
cpad-common - common files to support the Synaptics cPad driver kernel modules
cpad-kernel-source - source for the Synaptics cPad driver
freeswan - IPSEC utilities for FreeSWan
kernel-patch-debian-2.4.27 - Debian patches to Linux 2.4.27
kernel-patch-debian-2.6.8 - Debian patches to Linux 2.6.8
kernel-source-2.2.25 - Linux kernel source for version 2.2.25
kernel-source-2.4.27 - Linux kernel source for version 2.4.27 with Debian patches
kernel-source-2.6.8 - Linux kernel source for version 2.6.8 with Debian patches
kernel-tree-2.4.27 - Linux kernel source tree for building Debian kernel images
kernel-tree-2.6.8 - Linux kernel source tree for building Debian kernel images
misdn-kernel-source - Source code for the mISDN modules
oprofile - system-wide profiler for Linux systems
wacom-kernel-source - source for the wacom binary modules
wacom-tools - utilities for wacom tablets and other hid devices

Now I have following question:

1.) do I have this patch already installed on my system ?
how can I check it ?

and I've done following:
Code:

# apt-get install kernel-source-2.6.8
# tar xvjf kernel-source-2.6.8.tar.bz2

but during the driver installation I get following error:
Code:

Makefile.inc:122: *** KERNELCONF: /usr/src/kernel-source-2.6.8/.config does not exist.. Stop.

leonscape 08-01-2005 06:33 PM

Okay a few things...

The patches you see are to turn kernel sources from kernel.org into the debian ones. There little extras to the standard kernels, to either backport stuff, or to add things that don't make it into the official kernels.

You've download the source and decompressed it, but it ain't configured. The kernel sources are for compiling your own kernels, Which means the configuring is left up to you.

What you needed was the kernel-headers package, which just contains the headers and a configuration file that matches what was used to create the standard Debian kernels. If that doesn't work then you'll need the full kernel-tree, which has everthing.

cccc 08-01-2005 06:40 PM

thanks,

but should I install:
Code:

kernel-headers-2.6.8-2 - Header files related to Linux kernel version 2.6.8
or
Code:

kernel-headers-2.6.8-2-386 - Linux kernel headers 2.6.8 on 386

leonscape 08-01-2005 06:44 PM

Which kernel is installed?

uname -r

cccc 08-01-2005 06:45 PM

# uname -r
2.6.8-2-386

Xian 08-01-2005 06:46 PM

# apt-get install linux-headers-`uname -r`

leonscape 08-01-2005 06:46 PM

I think that wraps that up then :)


All times are GMT -5. The time now is 07:22 PM.