Re: RHEL: Rebuilding kernel with different .config
- From: Lenard <lenard@xxxxxxxxx>
- Date: Thu, 26 Jan 2006 12:14:20 GMT
Vic wrote:
> Hi All.
>
> I'm trying to rebuild a kernel on RHEL4 (WBEL4 actually, but it's the
> vanilla RH kernel). I'm trying to rebuild from SRPM, and create a set or
> RPMs. The only trick thing is that I'm trying to use a custom set of
> config files.
>
> To date, everything I've tried has left my configs either ignored or
> over-written by the rpmbuild process. Can anyone point me at a
> walk-through of how to do it?
Maybe this will help;
http://fedora.redhat.com/docs/release-notes/fc4/errata/#sn-kernel
Basically after downloading and installing the kernel src.rpm from
the /usr/src/redhat/SPECS file do (this is the exact command needed);
rpmbuild -bp --target $(arch) kernel-2.6.spec
Then from where the kernel source is located (redhat or classic) do;
(apply any patches you want first)
make mrproper
cp /boot/config-<kernel_version_number> .config
make xconfig (or menuconfig or gconfig) to customize the kernel
make
make modules_install
make install
Reboot and test your new kernel, when happy go back the the kernel source
location and do; make rpm
The copying of the config file will provide you a starting point to build
your new kernel. The make <something>config will change the .config as
changes are made. The 'make rpm' command will create both a new src.rpm and
installable binary rpm file of your new kernel. See 'man rpm' on how to add
the new binary kernel rpm to the database without installing it. You have
already installed it with the 'make install' command, no need to do it
again.
--
"A personal computer is called a personal computer because it's yours,
Anything that runs on that computer, you should have control over."
Andrew Moss, Microsoft's senior director of technical policy, 2005
.
- References:
- Prev by Date: Re: Anyone able to make Java runtime work with Fedora core 4?
- Next by Date: High availability
- Previous by thread: RHEL: Rebuilding kernel with different .config
- Next by thread: Anyone able to make Java runtime work with Fedora core 4?
- Index(es):
Relevant Pages
|