Operating System - Linux
1828041 Members
1839 Online
109973 Solutions
New Discussion

Re: how to compile kernel and (if needed) boot off backup kernel?

 
SOLVED
Go to solution
abc_18
Regular Advisor

how to compile kernel and (if needed) boot off backup kernel?

Does anyone have a "how to compile the kernel" cheat sheet that is known to work for the Fedora Core 4 (kernel 2.6) flavor?

I'm looking for something that (also) includes instrs for making a backup copy of the current kernel, and instrs for doing an attended mode boot (that's what it's called in HP-UX land, I don't know what it's called in linux-land) off of that backed up kernel - in case the newly-recompiled kernel doesn't work out.

Thanks in advance.
9 REPLIES 9
Huc_1
Honored Contributor
Solution

Re: how to compile kernel and (if needed) boot off backup kernel?

Have a look at the following link

http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html

Jean-Pierre
Smile I will feel the difference
Ivan Ferreira
Honored Contributor

Re: how to compile kernel and (if needed) boot off backup kernel?

First, install the kernel source three as explained in the Fedora Core 4 Release Notes:

fedora.redhat.com/docs/release-notes/

Then run:
cd /usr/src/linux
cp /boot/config- .config
make mrproper
make menuconfig -------> select options
make dep -----> (only needed in 2.4 kernels)
make clean
make bzImage
make modules
make modules_install
make install

The make install command will add an entry in the grub.conf for the new kernel, and maintain the old kernel entry. If you have problems booting the new kernel, just select to boot the old kernel.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Arunvijai_4
Honored Contributor

Re: how to compile kernel and (if needed) boot off backup kernel?

abc_18
Regular Advisor

Re: how to compile kernel and (if needed) boot off backup kernel?

Ivan, I couldn't find the Fedore Core kernel src here:

> fedora.redhat.com/docs/release-notes/

All I saw were links for downloading the
ISO images for a full Fedora install.

Could you please give me a more direct/specific URL?

Thanks in advance.
Arunvijai_4
Honored Contributor

Re: how to compile kernel and (if needed) boot off backup kernel?

abc_18
Regular Advisor

Re: how to compile kernel and (if needed) boot off backup kernel?

Okay, one more question...
The files here (below) aren't zipped tarballs,
they're rpm files. What's the cmd/syntax
I should use to download them?

Thanks again....

---- cut here ----

Here it is,
http://download.fedora.redhat.com/pub/fedora/linux/core/updates
/4/
or
http://download.fedora.redhat.com/pub/fedora/linux/core/update
s/4/i386/

or
http://download.fedora.redhat.com/pub/fedora/linux/core/updates
/4/SRPMS/
Sergejs Svitnevs
Honored Contributor

Re: how to compile kernel and (if needed) boot off backup kernel?

According th FC4 release notes (http://fedora.redhat.com/docs/release-notes/fc4/), You can obtain kernel-src file by running the following command:
# up2date --get-source kernel

Alternative link to the kernel source:
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/

Release notes document also has installation manual (check out "6.2.2.3. Preparing for Kernel Development" section).

Regards,
Sergejs
Arunvijai_4
Honored Contributor

Re: how to compile kernel and (if needed) boot off backup kernel?

Its fine if its not .zipped, you can use wget to download files,

# wget -c

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
abc_18
Regular Advisor

Re: how to compile kernel and (if needed) boot off backup kernel?

.