[TriLUG] kernel customizing question

Ed Hill ed at eh3.com
Sun Nov 17 20:30:04 EST 2002


On Sun, 2002-11-17 at 17:58, gregbrown at mindspring.com wrote:
> Howdy all.  I have a quick question for you.  I have compiled a custom kernel
> using the steps outlined on this website:
> http://www.rhce2b.com/kernel.shtml
> 
> Essentially, they are:
> cd /usr/src/linux-2.4
> (as root)
> mkproper
> make oldconfig
> make xconfig
> (change some options)
> (save changes)
> make dep
> make clean
> edit makefile (added custom-greg to file name)
> make bzImage
> make modules
> make modules_install
> cp /usr/src/linux-2.4/arch/i386/boot/bzImage /boot/vmlinuz-2.4.18-3custom-greg
> 
> I then changed the the /etc/lilo.conf file to reflect the changes
> 
> prompt
> timeout=50
> default=linux
> boot=/dev/hda
> map=/boot/map
> install=/boot/boot.b
> message=/boot/message
> linear
> 
> image=/boot/vmlinuz-2.4.18-3custom-greg
> 	label=linux-2.4.18-3custom-greg
> 	initrd=/boot/initrd-2.4.18-3custom-greg.img
> 	read-only
> 	root=/dev/hda3


After editing /etc/lilo.conf, you need to run /sbin/lilo to update the
boot sector.

And note that if you were using GRUB, this step wouldn't be necessary. 
In addition you'd be able to edit the grub.conf entries *at boot time*
which is very useful if you accidentally mess up the configuration. 
GRUB is much nicer than lilo...

hth,
Ed


-- 
Edward H. Hill III, PhD 
Post-Doctoral Researcher   |  Email:  ed at eh3.com,  ehill at mines.edu
Division of ESE            |  URLs:   http://www.eh3.com
Colorado School of Mines   |    http://cesep.mines.edu/people/edhill.php
Golden, CO  80401          |  Phones:  303-384-2094, 303-273-3483
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20021117/bcd9e4c1/attachment.pgp>


More information about the TriLUG mailing list