4

What are the correct steps to compile a Linux kernel? Are these steps the same or different for different kernel versions i.e for 2.2, 2.4 and 2.6.

2
  • 1
    Can you give more information about your distribution? This will allow us to specify a more accurate way to accomplish this task. Jul 26, 2010 at 12:08
  • I am using Ubuntu on VMWare and trying to compile linux kernel after patching it for KML(Kenele Modle Linux)
    – Adnan
    Jul 26, 2010 at 12:13

4 Answers 4

0

You can follow this guide from the Ubuntu Help Community,
you might want to go for the "Alternate Build Method: The Old-Fashioned Debian Way".

It does not mather what version you take, just don't go too old... The best option is to pick the newest.

1
  • 1
    the guide didnt solve my problem but a tip about initramfs in the comments worked. So i am accepting this answer
    – Adnan
    Jul 26, 2010 at 13:23
2

Use

make

will compile the kernel, but there is a bit more to it.

Here is a nice write up on how to do it.

I wouldn't bother with the older kernels, but I don't think the ideas behind the process have changed much, but stuff like make menuconfig may not work with the old stuff (and you may have to replace it with make config) etc...

2

Best howto I've EVER read. This is for Ubuntu or Debian.
http://ubuntuforums.org/showthread.php?t=311158

(It's been there for almost years and it's being updated constantly so don't worry it won't disappear. But yeah you can save it just to make sure.)

1

I never compiler kernel older than 2.6, so I can't help you there, but here is part of Gentoo's manual which discusses how to compile kernel. Please note that some distributions may have their own means of kernel compilation. Telling us exactly what you want to do will help us answer your question.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .