LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-19-2007, 01:54 PM   #1
vvuiverine
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Rep: Reputation: 0
kernel Sources


Anyone know where I can obtain the full kernel source for kernel image 2.4.18-4-686 (can only find 2.6.18-11)?

Trying to build some kernel modules fails because the full kernel tree is needed, not just the 2.6.18-4-686 headers.


Thank you.
 
Old 03-19-2007, 03:10 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
2.6 or 2.4 kernel ? you have cited BOTH in your question.. quite confusing as they are two different kernels..


aptitude search linux-source

http://packages.debian.org/testing/d...-source-2.6.18

is there some specific reason you don't want to upgrade to the current kernel version ?

Quote:
4.1 Obtaining the Debian kernel source

To get the Debian kernel source at the current maximum patchlevel, it is sufficient to install the latest linux-source-version package and unpack the source, for example:

# apt-get install linux-source-2.6.18
$ tar jxf /usr/src/linux-source-2.6.18.tar.bz2

The unpacked source tree then will be available in linux-source-2.6.18 directory.

In order to get the Debian kernel source at the patchlevel different from the one provided by the current linux-source-version package, one should first install and unpack it, then roll back the unneeded patch sets using a script from the linux-patch-debian-version package. We assume that in the steps mentioned in the previous example the version 2.6.18-8 of the linux-source-2.6.18 package was installed and unpacked, so that the Debian kernel source at patchlevel 8 is available in the linux-source-2.6.18 directory. It can then be rolled back to the desired patchlevel (1 in the example below) by running

# apt-get install linux-patch-debian-2.6.18
$ cd linux-source-2.6.18
$ /usr/src/kernel-patches/all/2.6.18/apply/debian 2.6.18-1

The last command will unapply the set of patches, which lead from patchlevel 1 to patchlevel 8 and the resulting tree will appear as if it came from the version 2.6.18-1 of the linux-source-2.6.18 package. This system ensures that the source code for any revision of the Debian kernel source may be recovered from the latest one, without keeping multiple copies of the source in the archive.

The version version-N (like 2.6.18-8) of the linux-patch-debian-version package contains all the individual patches applied to the source to achieve any patchlevel up to N. They are stored in the directory /usr/src/kernel-patches/all/version/debian/.
http://kernel-handbook.alioth.debian...common-getting

Last edited by farslayer; 03-19-2007 at 03:21 PM.
 
Old 03-19-2007, 04:14 PM   #3
vvuiverine
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Sorry for the typo, and thanks for the response.


I'll give that a try
 
  


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
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 06:30 AM
why don't I have kernel sources?? joshknape Linux - Newbie 2 07-19-2005 02:43 AM
Kernel Sources unwrittenlaw Linux - General 1 12-06-2004 04:00 AM
kernel sources Gill Bates Slackware 3 10-17-2003 05:24 AM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 07:49 AM

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

All times are GMT -5. The time now is 07:39 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