recipe for building my own kernel for 10.04?

Mark Syms mark at marksyms.me.uk
Mon May 10 19:38:02 UTC 2010


> Message: 6
> Date: Mon, 10 May 2010 15:17:19 -0400 (EDT)
> From: "Robert P. J. Day" <rpjday at crashcourse.ca>
> Subject: recipe for building my own kernel for 10.04?
> To: ubuntu-users at lists.ubuntu.com
> Message-ID: <alpine.DEB.2.00.1005101511470.23413 at lynx>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> 
>   since i prefer to build and run my own kernels (and i want to test a
> few things like ftrace), is there a recipe for doing the kernel thing
> for 10.04?
> 
>   i found something that looks good for a starting point here (ignore
> the PPC component):
> 
> http://www.ppcnux.com/?q=node/7599
> 
> but i want to do things slightly differently.
> 
>   first, i suspect i'm good to use as a config file what's currently
> in /boot/config-2.6.32-21-generic.  at the very least, that will
> represent a fairly good starting point.
> 
>   next, i don't want to pull down the kernel source as a package, i
> want to clone a git repo so i can keep up with current developments.
> ideally, i'd like to use the main git repo at kernel.org, unless
> ubuntu makes considerable changes to the stock kernel source.
> 
>   as an alternative, i found this:
> 
> http://kernel.ubuntu.com/git
> 
> where, if i had to guess, i'd guess i'd want to clone this:
> 
> http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-lucid.git;a=summary
> 
> making sense so far?  beyond that, i suspect just following the recipe
> at that first link above should give me something that's minimally
> bootable and i can take it from there.
> 
>   thoughts?

Your best bet might be to start from the following

apt-get source linux

this will pull the source used to build the Ubuntu base kernel. To build
the package you run

debian/rules binary

from inside the source directory created by the apt-get command. Once it
builds, tweak the config and rebuild.

Mark.




More information about the ubuntu-users mailing list