Click to See Complete Forum and Search --> : recompile existing kernel?


High_Noonan
02-24-2005, 10:43 AM
I have a question for you all.

Is it possible to recompile an existing, in-place kernel?

Here is the deal, I get my kernel updates installed via apt-get, but the kernels that get installed are very generic (Pentium Pro is the processor selected) and I need to add in the Probe all LUN option for SCSI (4-in-1 card reader recently installed).

I am not looking to do an "upgrade" and would rather just reboot the box to load the new options in without having to worry about loading a new kernel.

I use Fedora Core 2, BTW, so all attempts at using bzImage have failed. It seems like FC2 uses nvlinux or something like that.

Thanks for your help.

ph34r
02-24-2005, 10:49 AM
You should be able to start with a fresh kernel source tree and your existing kernel config, then just add what you need/want. Check if your kernel has the config built in - zcat /proc/config.gz . If it isn't there, then it would be in the config directory of the kernel source rpm for your currently running kernel.

High_Noonan
02-26-2005, 02:13 PM
OK, so my repository of choice has released a new kernel.
I am downloading it and will try to make these changes and then boot into it.

Thanks for the reply.

Oh, BTW, I did try to use the unofficial "Official" HOWTO: Kernel and it uses bzImage. Everything seemed to go fine, but when I tried to boot into the old updated for my needs kernel, it borked because of bzImage. Like I said, I am using Fedora Core 2, and it seems to use nvLinux or something like that. Any ideas?

OK, gonna go kernel hacking and will check back.

bwkaz
02-26-2005, 02:40 PM
Originally posted by High_Noonan
but when I tried to boot into the old updated for my needs kernel, it borked because of bzImage. No, it did not. :)

Nothing in Linux cares what the kernel's file name is, except the bootloader. (Especially the kernel itself.) If your problem is that your bootloader can't find the kernel, it's because the bootloader hasn't been configured properly (or at all). You might want to look at that. ;)

Like I said, I am using Fedora Core 2, and it seems to use nvLinux or something like that. vmlinux seems to be standard among Red Hat-derived distros, though I'm not sure why...

nvlinux.o is the binary-only part of nVidia's Linux driver.

I just think you just need to reconfigure your bootloader.