Difference between revisions of "SYA710 Building a New Kernel"
(New page: === Building a New Kernel === * download source from kernel.org ** wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.tar.bz2 * unpack source ** tar xvjf linux-2.6.26.tar.bz2 * ...) |
Bossa nesta (talk | contribs) (→Building a New Kernel) |
||
Line 6: | Line 6: | ||
* create configuration (.config) file | * create configuration (.config) file | ||
** cd linux-2.6.26 | ** cd linux-2.6.26 | ||
− | ** cp /proc/config.gz . | + | ** cp /proc/config.gz . |
+ | |||
+ | ## or if you need to install kernel header.... | ||
+ | ## yum install kerneldevel | ||
+ | ## cp /usr/src/kernels/2.6.23.1-42.fc8-x86_64/.config ./ | ||
+ | |||
** gzip -d config.gz | ** gzip -d config.gz | ||
** mv config .config | ** mv config .config |
Revision as of 15:51, 14 October 2008
Building a New Kernel
- download source from kernel.org
- unpack source
- tar xvjf linux-2.6.26.tar.bz2
- create configuration (.config) file
- cd linux-2.6.26
- cp /proc/config.gz .
- or if you need to install kernel header....
- yum install kerneldevel
- 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
- compile kernel and modules
- make
- copy kernel image to /boot
- cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.26
- copy system map to /boot
- cp System.map /boot/System.map-2.6.26
- install the modules
- make modules_install
- create initial ram disk image
- mkinitrd -k vmlinuz-2.6.26 -i initrd-2.6.26
- update GRUB
- vi /boot/grub/menu.lst
- reboot