• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Kernel recompile: new image?

smp

Diamond Member
Hey all, I'm reading an NHF and the howto right now, I'm going to be recomiling my kernel today. I just installed this system on an old P133 (Debian 2.2.19) and I want to recompile so that I can learn how to do it, and compile some stuff (I think) I need into the kernel. I'm actually trying to get ipchains working and all that stuff so that I can get routing working on this box. Anyways, I'm trying to figure out what the kernel image is? Is it base2_2.tgz that is found here? Is that the kernel?
Sorry I know this is a really lame question and everything, but I'm a lamer so what can I do?
 
base2_2.tgz is the Debian base system, the first thing extracted during install before the package manager is usable.

The kernel image is usually called vmlinuz-version inside of /boot, or if it's just compiled it'll be arch/i386/boot/bzImage below the source tree you just compiled in, usually /usr/src/linux-version.
 
Hmm.. so if I want to recompile my kernel, do I make a copy of the kernel that i have and recompile that? I'm confused.
 
smp, YGICQ (you've got icq).

the "kernel image" is probably a binary, which is not what you want for recompiling. you want linux-x.y.z.tar.gz or linux-x-y-z.tar.bz2

brief directions on recompiling a kernel if you use lilo:
1. cd to /usr/src
2. look for a linux directory. if its there, cd to it. if not:
a) go to http://www.kernel.org and grab the .tar.bz2 source (2.2.19 if you want to stay there... 2.2.20 if you want the newest 2.2.x kernel, or 2.4.14 if you want the absolute latest)
b) un-bzip/tar it to /usr/src/linux
3. in the linux directory, "make menuconfig" (or make xconfig, but i hate xconfig). select what you want. make sure you keep ext2 support, and any disk drivers you need or you won't be able to mount root and it will kernel panic when you reboot
4. "make dep"
5. "make bzImage"
6. "make modules"
7. "make modules_install"
8. "cp arch/i386/boot/bzImage /boot/bzImage-testing"
9. edit your /etc/lilo.conf and add the new kernel. usethe same arguments as for the old one
10. "lilo"
11. reboot
12. select new kernel
13. pray 🙂

ICQ me (or aim, ctho9305) if you want more detailed help
 
The first kernel recompile is always a tough one. You really never know what you want to build into the kernel and what modules you want and...... well, you get the point. 😉 Your best bet is to know EVERYTHING about your system and what you want to use it for. That will better prepare you for the compile..
 
Back
Top