Learning how to build my own linux kernel

Hello,

I am following this - http://www.linode.com/wiki/index.php/PV … Own_Kernel">http://www.linode.com/wiki/index.php/PV-GRUB#BuildingYourOwn_Kernel - in my first attempt at building my own kernel.

But I am not too sure how to specify the CONFIG_

Details here - http://serverfault.com/questions/383260 … nux-kernel">http://serverfault.com/questions/383260/learning-how-to-build-my-own-linux-kernel

Would appreciate it if some one could explain how I should be specifying my CONFIG_ params.

Thanks!

Calvin

4 Replies

The kernel sources come with configuration scripts. As root, try this:

cd /usr/src/linux
zcat /proc/config.gz > .config  # Copies the Linode config to the source tree for you to base your own config off of
make oldconfig  # Asks you about configuration options that may not have been covered by the older kernel version
make menuconfig

Once you're in menuconfig, press / to search for a configuration option.

@retrograde inversion:

The kernel sources come with configuration scripts. As root, try this:

cd /usr/src/linux
zcat /proc/config.gz > .config  # Copies the Linode config to the source tree for you to base your own config off of
make oldconfig  # Asks you about configuration options that may not have been covered by the older kernel version
make menuconfig

Once you're in menuconfig, press / to search for a configuration option.

Ah, the "/" tip is cool. Thanks!

And after messing with this config "nonsense" for a couple of hours, I am beginning to get it. Thanks mate!

Stuck at the make install step…

Reference - http://serverfault.com/questions/383286 … o-now-what">http://serverfault.com/questions/383286/compiling-linux-kernel-make-install-asks-for-lilo-now-what

You can ignore that message. The kernel image has been copied to /boot/vmlinuz, and now you can configure pv-grub (if you haven't already).

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct