-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 05 November 2002 11:51 pm, Edward Dekkers wrote: > > The build completed without error, though. Here's the steps I used: > > # rpm -Fvh kernel-source-2.4.18-17.8.0.i386.rpm > > # cd /usr/src/linux-2.4.18-17.8.0/ > > # make mrproper > > # cp configs/kernel-2.4.18-athlon.config .config > > # make oldconfig > > # make dep > > # make bzImage && make modules && echo "Finished!" > > Michael - I've never built a kernel before but with your notes gave it > a go. > > The steps outlined by you above do indeed work here too (although I'm > running 7.2 and built a 7.2 kernel). > > Would you mind posting the final steps to get it booting as well?
The final steps are quite simple: # make modules_install This will install the modules in /lib/modules/${version_string} The version string is defined in the make file. Red Hat kernel source packages should have the extra version set to "custom", which will prevent wiping out your current modules directory. My Makefile has: VERSION = 2 PATCHLEVEL = 4 SUBLEVEL = 18 EXTRAVERSION = -17.8.0custom Which gives us 2.4.18-17.8.0custom # make install This runs /sbin/installkernel, which will handle installing the kernel, setting up either grub or lilo, and creating an initrd.img file if necessary. The kernel I built should exactly match Red Hat's stock kernel, since I made no changes to the config file. Here's my grub.conf after running "make install" default=2 timeout=10 splashimage=(hd1,0)/grub/splash.xpm.gz title Red Hat Linux (2.4.18-17.8.0custom) root (hd1,0) kernel /vmlinuz-2.4.18-17.8.0custom ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi initrd /initrd-2.4.18-17.8.0custom.img title Red Hat Linux (2.4.18-17.8.0) root (hd1,0) kernel /vmlinuz-2.4.18-17.8.0 ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi initrd /initrd-2.4.18-17.8.0.img title Red Hat Linux (2.4.18-14) root (hd1,0) kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi initrd /initrd-2.4.18-14.img If all went well, it should even boot for you when you finish. ;) - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9yLDdn/07WoAb/SsRApPUAJ9RdVQV7SXoZ6VOmppD15zNPmqzMgCeMpU3 Iwx5dZqMg1IBXRA2n5UoAvg= =66mc -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list