![]() |
make a new kernel rpm - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html) +--- Forum: Kernel Related (https://www.linux-noob.com/forums/forum-61.html) +--- Thread: make a new kernel rpm (/thread-1078.html) |
make a new kernel rpm - anyweb - 2007-12-05 thanks to Randall for assistance with this here's how, verify that you have the following installed in your distro (if it supports it) rpm-devel, curses, ncurses-devel and gcc and required deps. Once done, download the latest stable kernel from http://www.kernel.org currently that is 2.6.23.9 once downloaded, unzip the file Code: bunzip2 kernel then cd to the new kernel directory then untar it with Code: tar xvpf kernel then prepare it for compiling... Code: make clean && make mrproper now we want to copy over default settings from a shipped kernel to the new one we will compile Code: cp /boot/config-`uname -r` ./.config where uname -r is the value from your current kernel eg: Quote:[root@localhost ~]# uname -r2.6.23.1-49.fc8 now that you have copied over the 'default settings' from the shipped kernel lets configure the new one by Code: make menuconfig then do a Code: make rpm the above will only make an RPM file of the new kernel for you, if you wanted to test that kernel you'd have to install the rpm as normal. If you want to make the kernel the 'normal' way then do as follows Code: make below is a sample of me actually going through all the steps on a SLED 10sp1 machine. Quote:wget http://www.kernel.org/pub/linux/kernel/v2.....6.23.9.tar.bz2 make a new kernel rpm - znx - 2007-12-06 make rpm is an ace addition to the kernel build :) make a new kernel rpm - anyweb - 2007-12-06 sure is however i reinstalled the same box and then when done, installed the rpm i had created in the process above, it installed just fine but, when I rebooted to test it, it wasnt listed in grub, so by hand i tried to add it, but that didnt work either as it was missing some initrd specific stuff so, how can i make an rpm that contains everything thats needed to install a new kernel+update grub etc ? make a new kernel rpm - anyweb - 2007-12-27 Quote:so, how can i make an rpm that contains everything thats needed to install a new kernel+update grub etc ? is this even possible ? make a new kernel rpm - znx - 2008-01-02 It is possible, but you would need to write your own spec file with a post install script to tamper the grub/lilo setups |