Getting the source First you need to fetch the source. Visit kernel.org and get the version of your preference. Alternative, if you plan to hack it you might prefer to get the latest (merged by Linus Torvalds) code by cloning his git repository:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Configuring After you decompress the fetched archive or the git clone is done, you will need to create a .config file for your build. You can either create a totally new .