Changes

Jump to: navigation, search

SYA710 Building a New Kernel

702 bytes added, 23:38, 16 July 2012
no edit summary
* create configuration (.config) file
** cd linux-2.6.26
** cp /proc/config.gz . (If this file does not exist, skip ahead to the alternate approach below.)** gzip -d config.gz** mv config .config
## or if you need to install kernel header..Alternate method of getting .config:* If the file /proc/config.gz does not exist on your system, you can get the required file by issuing the following commands:## yum install kerneldevelkernel-devel kernel-headers gcc## cp /usr/src/kernels/2.6.23.1-42.fc8-x86_64/.config ./
** gzip -d config.gz** mv config .config** make oldconfig
* customize your configuration
** make menuconfig
** make modules_install
* create initial ram disk image
** mkinitrd -k vmlinuz-2.6.26 -i initrd-2.6.26(this did not work for me - mkinitrd considered it do be invalid syntax. Using 'mkinitrd initrd-2.6.26 2.6.26' worked, so try that if the first version gives you problems. -Katherine Masseau)** For simplicity the syntax of mkinitrd file for here can be as .. mkinitrd name-of- image kernel-version .i.e mkinitrd initrd-2.6.26 2.6.26** In generel if we have to create a initrd for the current running system the command i normally use mkinitrd -v /boot/initrd-$(uname -r).img $(uname -r)
* update GRUB
** vi /boot/grub/menu.lst
* reboot

Navigation menu