What's the procedure to rebuild Redhat kernel for FC4??
Neil Cherry
ncherry at comcast.net
Fri Feb 17 13:12:51 UTC 2006
ha haha wrote:
Hey stop laughing at my ha! ;-)
> Got a stupid question here: What's the steps to build
> kernels based on the default kernel on FC4? I just
> need to compile several network and SATA drives
> statically into kernel to corrent wrong
> detection|configuration sequence.
I had the same 'stupid' question, below are the steps I
use (I got them from the folks here on the list).
> Any one can shed a light on it? I've downloaded the
> kernel-2.6.15-1.1831_FC4.src.rpm and installed the
> source rpm. Now should I create a patch to patch all
> the redhat kernel config files like
> kernel-2.6.15-i686-smp.config,
> kernel-2.6.15-x86_64-smp.config? and then run
> "rpmbuild -ba -vv /usr/src/redhat/kernel-2.6.spec" to
> build all 4 kernels kernel-i686.rpm,
> kernel-i686-smp.rpm, kernel-x86_64.rpm,
> kernel-x86_64-smp.rpm with only one command?
>
> If not, what's the procedure?
wget
ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.15-1.1831_FC4.src.rpm
rpm -ihv ~/kernel-2.6.15-1.1831_FC4.src.rpm
# cd ../BUILD/kernel-2.6.12/linux-2.6.12/
cd /usr/src/redhat/SPECS
rpmbuild -bp --target=i686 kernel-2.6.spec
cd ../BUILD/kernel-2.6.15/linux-2.6.15/
cp configs/kernel-2.6.15-i686-smp.config .config
make xconfig # Adjust to taste
make rpm
And when it's done I'll do this:
cd /usr/src/redhat/RPMS/i386/
rpm -ivh kernel-2.6.15prep-1.i386.rpm
cd /boot
mkinitrd initrd-2.6.15-prep.img 2.6.15-prep
If you change kernel version adjust accordingly.
--
Linux Home Automation Neil Cherry ncherry at linuxha.com
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
http://home.comcast.net/~ncherry/ Backup site
More information about the fedora-list
mailing list