Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Can I build the Ubuntu Kernel? I heard that the Ubuntu kernel is a special version of the linux kernel.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

Ubuntu Linux kernels are open source and are available for downloading and building.

For each Linux kernel version they maintain Ubuntu kernel developers maintain a set of patches until those patches are incorporated upstream. They also maintain a specific configuration. When you install a Linux image package the configuration used to build it is stored in /boot along with a map file, the kernel image, and an initrd file created for your system at the time the linux image package is installed.

This is a wiki page that describes the current maintained kernels source location. Each is stored in a git repository. As Clepto mentioned in his answer, https://help.ubuntu.com/community/Kernel/Compile contains instructions on how to get the soruce and do the compile. You can also compile vanilla kernels using an Ubuntu config, or your own config.

The Kernel development team also maintains packages for current upstream kernels in case you simply want to test one of those. That's useful for some bug testing. You can read more here.

Finally it should be possible to do a straight kernel make / make install / make modules_install, but you will have to manage the boot loader config as well as /boot and module files yourself and maybe make your own initrd file if you go with that alternative. This can be faster if you are, for example, doing a number of git bisects to find where a problem was introduced.

Needless to say, Ubuntu developers can't support a vanilla mainline kernel or one you compile yourself.

The standard Linux open source license applies, GPL V2.

See also What are the differences between the Ubuntu shipped kernel and the upstream kernel?.

share|improve this answer

I think this will help you https://help.ubuntu.com/community/Kernel/Compile/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.