Title: Custom kernel compilation fedora
Desc: Easy kernel compiling
URL: http://www.howtoforge.com/kernel_compilation_fedora, http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/Custom_kernel_compilaton_on_RedHat_Fedora_Systems
OS: linux
Linuxquestions.org – Custom kernel compilation
* Pre requisites
* Getting the Kernel
* Configuring the kernel
* Compiling the kernel
* RPM kernels
* 2.6.x kernel notes
-=-
If you have installed the pre requisites and downloaded the kernel quickest way is by configuring the kernel and
after that compile/create rpm package.
– Configuring
# make oldconfig
will attempt to configure the current kernel using the parameters fed from an old configuration file .config.old or .config,
since the file we copied has not this name making oldconfig will result on a series of text based questions, equivalent to make config
# make menuconfig
will result in a text based GUI which lets you load up an already existing configuration file (if you have a .config) or
an alternate configuration file (like our config-2.4.20-20.9 file).
This menu depends on ncurses, so you will have to see if these libraries are installed correctly on your system.
# make xconfig
is yet another GUI X based configuration tool which makes it easier and clearer to configure the kernel,
this option also allows us to load an alternate configuration file (such as config-2.4.20-20.9).
This GUI relys on the TCL-TK library (found in the kernel development section of redhat-config-packages).
This GUI has gone a major change in 2.5/2.6 it requires KDE-devel packages.
# make gconfig
The GTK front end of the Kernel configuration GUI for kernel 2.6.x, it is structured almost identical to that of the new xconfig.
Aimed for the GNOME 2.x Desktop Environment. Requires some GTK development packages.
– Compiling / create rpm
# make rpm
After creation the rpm should be in”~/rpmbuild/RPMS/i386/”
install the kernel with # rpm -ihv kernel-2.6.34.1.i386.rpm
create the ramdisk for booting initrd # mkinitrd /boot/initramfs-2.6.34.1.img 2.6.34.1
check the bootloader for pointing to the correct files # vi /etc/grub.conf