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 06-30-2008, 10:49 PM   #16
parent's_basement
Member
 
Registered: Dec 2006
Posts: 111

Original Poster
Rep: Reputation: 16

Here's uname:

userzero@aquamarine:~$ uname -r
2.6.24-1-686

This is just a learning exercise for me so I can learn how to manually patch a kernel. I want to just patch my kernel one patch version up.

I guess my first question is- can I use the next patch in the sequence from kernel.org, which looks like it would be: patch-2.6.24.2.bz2 or since this is a Debian-tuned kernel, is there a Debian patch I should be using?

So, this should be pretty basic it seems but... I'm just confused about exactly what I should apply the patch to and where it (kernel source tree) is on my system. Again, the Debian tutorials assume /usr/src/linux, which confusingly is empty on my default install.

Thanks in advance,

pb

Last edited by parent's_basement; 06-30-2008 at 10:52 PM.
 
Old 07-01-2008, 05:50 AM   #17
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Quote:
Originally Posted by parent's_basement View Post
Again, the Debian tutorials assume /usr/src/linux, which confusingly is empty on my default install.
It shouldn't be confusing, since by default in Debian, there's nothing in /usr/src. Perhaps those tutorials are incomplete, or maybe they assume that you know that you first have to get a source package to play with. Here's a link to a HOWTO that I like very much on building kernels in Debian: http://tinyurl.com/39vaf4

In any case, since you are running 2.6.24, if you want to use Debian sources, you need to download the package linux-source-2.6.24. You will probably also want these packages: build-essential, libncurses-dev, fakeroot and kernel-package.
 
Old 07-01-2008, 08:27 AM   #18
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
http://wiki.debian.org/HowToRebuildA...nKernelPackage
http://wiki.debian.org/DebianKernel
 
Old 07-01-2008, 12:22 PM   #19
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
You can install every package that you need with Synaptic.Just search for "kernel".It will install all kernel related packages in /usr/src.
Here's a list of the directories in my /usr/src at the moment;
kernel-patches,linux-headers-2.6.24-1-486,linux-headers-2.6.24-1-common,linux-kbuild-2.6.24,linux-support-2.6.24-1,linux-source-2.6.24.tar.bz2.
Remember to select right architecture for the packages you will select.Always use compiler with wich your kernel was compiled when you're patching it,sometimes you'll need to change a environment variable for that if you have more than one compiler in your system.Here's the list of extra packages that I'll suggest you to install;kerneloops,linux-tree-2.6.24 and module-init-tools besides some already mentioned,which you need,like build-essential,etc.Here's a good kernel-howto.
 
  


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
Manual nvidia install needs kernel source, unable to select source in YOU sirius57 Linux - Hardware 2 12-04-2007 05:11 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
Debain kernel source or Linux kernel source? kushalkoolwal Debian 4 11-28-2005 01:56 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM

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

All times are GMT -5. The time now is 08:50 AM.

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