Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 1860  / 2 Years ago, wed, february 23, 2022, 1:45:38

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


More From » kernel

 Answers
4

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?.


[#36386] Wednesday, February 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
urnaetted

Total Points: 10
Total Questions: 113
Total Answers: 117

Location: Burundi
Member since Sat, Aug 21, 2021
3 Years ago
;