[ATrpms-users] HowTo modify/recompile an atrpms FC3 kernel
Thomas Börkel
thomas at boerkel.de
Wed Mar 16 15:54:06 CET 2005
HI!
What is the recommended way to modify (change some config option,
recompile and install) an atrpms kernel on FC3?
Goal:
After installing (by "make install" or "make rpm" and "rpm --upgrade"),
it should look like the same atrpms kernel, making it possible to still
use atrpms kernel modules of that kernel.
I have done this so far:
# apt-get source kernel=2.6.10-1.766_FC3
# rpmbuild -bp --target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec
# cd /usr/src
# ln -s redhat/BUILD/kernel-2.6.10/linux-2.6.10/ linux
# ln -s redhat/BUILD/kernel-2.6.10/linux-2.6.10/ linux-2.6.10
# make mrproper
# copy /boot/config-2.6.10-1.766_FC3 .config
Edit .config to my wishes.
Edit Makefile and set EXTRAVERSION to "-1.766_FC3"
# make oldconfig
# make
This works. But this does not:
1.
After "make install", I get the 3 kernel files in /boot, but the kernel
does not boot because of insmod errors.
2.
make rpm does not work:
# make rpm
make clean
set -e; cd ..; ln -sf /usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10
kernel-2.6.101.766_FC3
set -e; cd ..; tar -cz -f kernel-2.6.101.766_FC3.tar.gz
kernel-2.6.101.766_FC3/.
set -e; cd ..; rm kernel-2.6.101.766_FC3
set -e; \
/bin/sh
/usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10/scripts/mkversion >
/usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10/.tmp_version
set -e; \
mv -f /usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10/.tmp_version
/usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10/.version
rpmbuild --target i386 -ta ../kernel-2.6.101.766_FC3.tar.gz
Building target platforms: i386
Building for target i386
error: File ../kernel-2.6.101.766_FC3.tar.gz: No such file or directory
sh: ../kernel-2.6.101.766_FC3.tar.gz: No such file or directory
sh: ../kernel-2.6.101.766_FC3.tar.gz: No such file or directory
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2
I do not kow, why it writes 2.6.101 instead of 2.6.10...
Any hints/tipps are greatly appreciated.
Thanks!
Thomas
More information about the atrpms-users
mailing list