buildkernel
by
Webmaster Legos
—
last modified
Jul 05, 2012 04:03 PM
Build a new kernel (did not suceed... problems with modules, oct 2001)
rpm -q kernel-headers glibc-devel binutils cpp gcc ncurses-devel make kernel-source
(This was for red had but a look with DrakeConf suggest we have already all packages)
- cd /mnt/cdrom/Mandrake/RPMS
- rpm -ivh <missing packages in the right order>
- cd /usr/src/linux
- make oldconfig : create the current configuration file
- make xconfig <choose options>
- save old configuration
- make xconfig <again because some files are created and modified>
- make oldconfig (? not sure it's necessary again...)
- erase / move former kernel modules:
- make dep >& /var/log/makedep
- make bzImage >& /var/log/makebzimage
- make modules >& /var/log/makemodules
- modules modules_install
<problems with atm modules. Previous kernel had compressed .o in atm>
<problem unchanged if option 4G is not there (original config)> - cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.3-20mdk4G
- cp System.map /boot/System.map-2.4.3-20mdksmp4G
- make clean ! run last...
- Modif lilo: add
image=/boot/vmlinuz-2.4.3-20mdk4G - type "lilo"
- <CRASH>
loadable module support > next > High memory support on 4Gb
<save and exit>
cp .config /root/config-2.4.3-20mdksmp-foo
mv /lib/modules/2.4.3-20mdksmp /root/oldkernel//lib/modules/2.4.3-20mdksmp
mv /lib/modules/2.4.3-20mdk /root/oldkernel//lib/modules/2.4.3-20mdk
label=linux4G
root=/dev/hdc7
initrd=/boot/initrd-smp.img
append=" hdb=ide-scsi"
read-only
- ftp ftp.fr.kernel.org
- cd pub/linux/kernel
http://www.linuxhq.com/kernel/v2.4/changes/index.html#2_4_10
get patch-2.4.10.gz