Kernel Compiling Checklist, rev 4

Etanisla Lopez-Ortiz null at etanisla.com
Fri Apr 16 01:08:21 UTC 2004


Evening all,

Haven't had a chance to try version 3 of the KCC, my memory stick died and
had to be replaced. In the down time, I went over everyone's comments about
KCCv3 and condensed them into KCCv4.

Jludwig: Your parallel compiling commands rock! But I'm too chicken to
implement them right now. I'm still learning what the simple commands do!
(Linux IS a learning curve, but I'm enjoying the ride!)

Chris: Once I get the individual steps solidly down, I'll definitely be
&&'ing them when I make out the final version, thank you for the
information! Also, I really hadn't thought about posting this list online
once finalized, I had wrote it for the many times I borked FC and had to
start over again. I got tired of trying to read my scrawled notes and
scribbles at 2 in the morning. But you reminded me that "when given to, give
back" is hard written into the Linux source code. Thank you.

N.Emilie: Thank you for pointing out redundancies and optimizations.
Eventually, I'll be able to keep up with the speedier command entries.

Sam F.: I'm not sure I have correctly divided (or even interpreted) your
&&'d command. If I understand right, the current kernel .config should be
backed up, and the slate cleaned for the new kernel's compile, right? I also
don't quite understand the alias command, yet. (Hooray for man/info pages)

So then, preliminaries aside, I present the Unofficial FC1 2.4.x Kernel
Compiling Checklist, Version 4: (what a mouth full!)


-2: This list (and addendums) for kernels 2.4.x only.
-1: Start with fresh install of FC1 (2.4.22-1.2115)
0:  Insert desired version number where x.x.x is present.
1:  Get desired kernel and extract it.
2:  "mv /scratch/directory/linux-x.x.x /usr/src"
3:  "cd /usr/src/linux-x.x.x"
4:  Copy .config from old kernel to /usr/src/linux-x.x.x
    Since first compile since initial install, use config file found in
/boot.
5:  "make oldconfig" (Keep the stuff that works, and only answer new
questions)
6:  "make xconfig" or "make menuconfig" (as you like it)
7:  "make bzImage"
8:  "make modules"
9:  "make modules_install"
10: "make install"
11: Edit /etc/rc.sysinit and change '/proc/sys/kernel/modprobe' to
/sbin/modprobe'.
12: "shutdown -r now"
13: After rebooting, and selecting new kernel option, type "uname -r" to
verify the new kernel is running.



If recompiling:
-1: This list (and addendums) for kernels 2.4.x only.
0:  Insert desired version number where x.x.x is present.
1:  Get desired kernel and extract it.
2:  "mv /scratch/directory/linux-x.x.x /usr/src"
3:  "cd /usr/src/linux-x.x.x"
4:  "cp .config config.bak"
5:  "make mrproper"
9:  "make oldconfig"
10: "make dep"
11: "make bzImage"
12: "make modules"
13: "make modules_install"
14: "make install"
15: Edit /etc/rc.sysinit and change '/proc/sys/kernel/modprobe' to
/sbin/modprobe'.
16: "shutdown -r now"
17: After rebooting, and selecting new kernel option, type "uname -r" to
verify the new kernel is running.


Afterthought question: Why the need to edit /etc/rc.sysinit?

Okay, I'm done fiddling, time to get dirty.
--Etanisla





More information about the fedora-list mailing list