This document provides instructions for advanced users who want to rebuild the kernel from some source. Note, however, that when building or running any such kernel, one should NOT expect support from the Fedora kernel team; you're pretty much on your own here if something doesn't work as you'd hoped or expected.
But hey, you're an advanced user, so you can handle it, right? Anyway, advanced users build custom kernels for a variety of reasons:. Not all of these will apply to all methods but this provides a good dependency list of items to install.
Give the following command from the top directory of the kernel source tree once you have checked it out. It should be noted that pesign pesign-rh-test-certs gets pulled in automatically for some, but not for everyone, it depends on how you installed pesign.
It is best to make sure that you have it installed. As of the time of this wiki writing, the kernel is managed using git. Each fedora release is a separate branch. To get the tree for a particular release, you can use git checkout from the top of your newly created source tree. You may want to consider uncommenting.
Branched kernels are built with debugging enabled by default in the early stages of the release to assist developers. To make a kernel with debugging information disabled, you can follow the above instructions to check out and do:. If there are configuration options that need to be adjusted for your build, you can add changes in the kernel-local file.
These changes will get picked up when you build. You can now build the kernel following regular kernel instructions. This tree is useful for generating patches that can be applied to the kernel. Instructions for this are on a separate page. In general, you should use one of the other methods for building the kernel which are much easier. This section is for users who are only interested in working on a kernel module, and who do not wish to build an entire custom kernel.
It is not necessary to download and rebuild the entire kernel in order to build a module. To build a module for the currently running kernel, only the matching kernel-devel package is required. Run the following command to install the kernel-devel package using dnf. I will be writing some device drivers. Improve this question. Is there any reason you aren't downloading the kernel source directly , and compiling that?
Haven't tried that, found via Google for fedora kernel source , first result. Add a comment. Active Oldest Votes. Improve this answer. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.
You have now built and installed a kernel. It will show up in the grub menu next time you reboot. The patch method If you were asked to apply any patches by the developer, this is the stage at which we would do so.
The git method Most developers these days generate patches using git and you can use git to help apply patches. Share on Facebook Share on twitter. Continue Reading Previous post. Next post. Related Posts. How To Linux.
0コメント