Click to See Complete Forum and Search --> : Kernel Compiling


fuzzy
11-17-2000, 01:38 PM
I have successfully integrated a recent version of kernel 2.4 into my system but now want to make a few changes.
How far do I have to go?
I assume

make menuconfig (or xconfig)
make dep
make clean
make bzImage

But that's it right? I mean, since LILO is already pointing to the correct kernel, I don't need to worry about that anymore, or am I wrong?
(Oh, I suppose I should do a make modules and make modules_install, too, after make bzImage, right?)
TIA!

------------------
"Suppose you were an idiot... And suppose you were a member of Congress...But I repeat myself."
--- Mark Twain

The_Stack
11-17-2000, 01:48 PM
make menuconfig
make dep
make clean
make bzImage

make a backup of your old kernel:
cp /vmlinuz /vmlinuz_BACKUP

then assuming you are targeting x86:
cp /usr/src/linux/arch/i386/boot/bzImage /vmlinuz

then reinstall the boot loader so that it will know you have recompiled the kernel:
/sbin/lilo

If you've changed any modules you will also have to do:
make modules
make modules_install


Much information can be gained by visiting /usr/doc http://www.linuxnewbie.org/ubb/smile.gif

Good Luck!

fuzzy
11-17-2000, 02:00 PM
Thank you!
After installing and configuring the kernel, I realize I made some dumb choices and I can sense a significant drag in performance so I want to streamline it a bit by recompiling it.
Thanks.

------------------
"Suppose you were an idiot... And suppose you were a member of Congress...But I repeat myself."
--- Mark Twain

Danger Fan
11-17-2000, 02:11 PM
i've made it a habit of running "make mrproprer (maybe its mbproper, i forget)" before "make config". it deletes stale.o files that you need to get rid of.

klamath
11-17-2000, 03:03 PM
But 'make mrproper' also deletes your old kernel configuration (.config) so you have to select all the options again.

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the BBB (http://bbb.sourceforge.net)

fuzzy
11-17-2000, 03:10 PM
Yeah, that could be ugly.
I just want to make a few changes to my already-existing configuration.
make mrproper is good when you're starting with a fresh kernel install.
But I suppose copying my current /vmlinuz to /vmlinuz_old is good in case my "revisions" are more like "collisions", eh? http://www.linuxnewbie.org/ubb/smile.gif
Then, once I know the new configuration is good, rm the current one?


------------------
"Suppose you were an idiot... And suppose you were a member of Congress...But I repeat myself."
--- Mark Twain

[This message has been edited by fuzzy (edited 17 November 2000).]