Non-PAE kernel in 12.10

Tom H tomh0665 at
Wed Nov 28 13:22:31 UTC 2012

Tom H <tomh0665 <at>> writes:
> On Wed, Nov 21, 2012 at 4:33 PM, Tom H <tomh0665 <at>> wrote:
>> I build kernels with the command below from upstream/pristine sources
>> rather than Ubuntu ones but you should be able to use (or at least
>> inspire yourself from) it:
>> DEBEMAIL="tomh0665 <at>" KDEB_PKGVERSION="" fakeroot
>> make deb-pkg
>> This creates "linux-image-3.7.0-rc6_3.7.0.0-9h_amd64.deb" (as well as
>> linux-headers, linux-firmware-image, and linux-libc-dev debs).
>> Had I added "-t1" to "-rc6" on the "EXTRAVERSION" line at the top of
>> "./Makefile", the deb's name would've been
>> "linux-image-3.7.0-rc6-t1_3.7.0.0-9h_amd64.deb".
>> ("-t1" and "-9h" are just for illustration purposes!)
>> I don't put "" in KDEB_PKGVERSION when I do a build, in which
>> case the debs' names are "linux-image-3.7.0-rc6_9h_amd64.deb" or
>> "linux-image-3.7.0-rc6-t1_9h_amd64.deb". I added it above because
>> Ubuntu names its kernel packages this way (more or less!), so I
>> thought that I'd follow that model in my example. The latest raring
>> kernel package is "linux-image-3.7.0-3-generic_3.7.0-3.9_amd64.deb".
> "make deb-pkg" must be run with fakeroot. You can run "...
> KBUILD_PKG_ROOTCMD=fakeroot make deb-pkg" rather than the above "...
> fakeroot make deb-pkg".

One more comment for the sake of completion:

If you're intent on sharing the package or creating it the "right" way
(as opposed to my wrong way), it's best to name it like Ubuntu does,
with a revision that's the full kernel version,

So, if you install it with apt-get, you install
"linux-image-3.7.0-4-generic", the kernel's called
"vmlinuz-3.7.0-4-generic", "uname -r" returns "3.7.0-4-generic", and
"apt-cache show linux-image-3.7.0-4-generic" returns "Version:

More information about the ubuntu-users mailing list