LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-01-2005, 06:12 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 50
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.

Last edited by cccc; 08-01-2005 at 06:34 PM.
 
Old 08-01-2005, 06:33 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
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.

Last edited by leonscape; 08-01-2005 at 06:35 PM.
 
Old 08-01-2005, 06:40 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 50
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
 
Old 08-01-2005, 06:44 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Which kernel is installed?

uname -r
 
Old 08-01-2005, 06:45 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 50
# uname -r
2.6.8-2-386
 
Old 08-01-2005, 06:46 PM   #6
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 32
# apt-get install linux-headers-`uname -r`
 
Old 08-01-2005, 06:46 PM   #7
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
I think that wraps that up then
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
10.1 install kernel and kernel-source different - build fails Feebles Mandriva 2 06-10-2005 06:58 PM
Cant install kernel source? keith2045 SUSE / openSUSE 10 02-26-2005 07:11 PM
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 04:34 PM
kernel source did not install correctly jax8 Linux - Newbie 3 02-18-2004 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration