i'm running f21.
I do the following steps to recompile the kernel, but consistently run into the same problem ( see below).
What am i missing?
Code:
rpmdev-setuptree
mv ~/ kernel-3.17.7-300.fc21.src.rpm ~/rpmbuild/
rpm -Uhv kernel-3.17.7-300.fc21.src.rpm
cd ~/rpmbuild/SPECS
rpmbuild -bp --target=$(uname -m) kernel.spec
cd ~/rpmbuild/BUILD/kernel-3.17.fc21/linux-3.17.7-300.fc21.x86_64/
cp ./configs/kernel-3.17.7-x86_64.config ./.config
make menuconfig
# apply patch to BIOS
cp ~/Downloads/dsdt.hex ~/rpmbuild/BUILD/kernel-3.17.fc21/vanilla-3.17/include/
cp .config ~/rpmbuild/SOURCES/config-`uname -m`-generic
cd ~/rpmbuild/SPECS
vi kernel.spec
cp ./kernel.spec ~/
rpmbuild -bb --with baseonly --without debuginfo --target=`uname -m` kernel.spec
as the result my attempt to localinstall the kernel:
Code:
cd /home/az/rpmbuild/RPMS/x86_64/
[root@toshiba x86_64]# ls -l
total 50472
-rw-rw-r--. 1 az az 43004 Jan 2 22:46 kernel-3.17.7-300.local.fc21.x86_64.rpm
-rw-rw-r--. 1 az az 19110924 Jan 2 22:46 kernel-core-3.17.7-300.local.fc21.x86_64.rpm
-rw-rw-r--. 1 az az 9630120 Jan 2 22:46 kernel-devel-3.17.7-300.local.fc21.x86_64.rpm
-rw-rw-r--. 1 az az 968036 Jan 2 22:46 kernel-headers-3.17.7-300.local.fc21.x86_64.rpm
-rw-rw-r--. 1 az az 17887924 Jan 2 22:46 kernel-modules-3.17.7-300.local.fc21.x86_64.rpm
-rw-rw-r--. 1 az az 2253936 Jan 2 22:46 kernel-modules-extra-3.17.7-300.local.fc21.x86_64.rpm
-rw-rw-r--. 1 az az 135576 Jan 2 22:46 kernel-tools-3.17.7-300.local.fc21.x86_64.rpm
-rw-rw-r--. 1 az az 58956 Jan 2 22:46 kernel-tools-libs-3.17.7-300.local.fc21.x86_64.rpm
-rw-rw-r--. 1 az az 45852 Jan 2 22:46 kernel-tools-libs-devel-3.17.7-300.local.fc21.x86_64.rpm
-rw-rw-r--. 1 az az 1107044 Jan 2 22:46 perf-3.17.7-300.local.fc21.x86_64.rpm
-rw-rw-r--. 1 az az 411168 Jan 2 22:46 python-perf-3.17.7-300.local.fc21.x86_64.rpm
[root@toshiba x86_64]# yum localinstall kernel-3.17.7-300.local.fc21.x86_64.rpm
Loaded plugins: langpacks, priorities
Examining kernel-3.17.7-300.local.fc21.x86_64.rpm: kernel-3.17.7-300.local.fc21.x86_64
Marking kernel-3.17.7-300.local.fc21.x86_64.rpm as an update to kernel-3.17.7-300.fc21.x86_64
Marking kernel-3.17.7-300.local.fc21.x86_64.rpm as an update to kernel-3.13.10-200.01_dsdt_patch.fc20.x86_64
Marking kernel-3.17.7-300.local.fc21.x86_64.rpm as an update to kernel-3.13.9-200.DEBUG_DSDT.fc20.x86_64
Marking kernel-3.17.7-300.local.fc21.x86_64.rpm as an update to kernel-3.13.8-200.fc20.x86_64
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:3.17.7-300.local.fc21 will be installed
--> Processing Dependency: kernel-core-uname-r = 3.17.7-300.local.fc21.x86_64 for package: kernel-3.17.7-300.local.fc21.x86_64
--> Processing Dependency: kernel-modules-uname-r = 3.17.7-300.local.fc21.x86_64 for package: kernel-3.17.7-300.local.fc21.x86_64
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.x86_64 0:3.13.8-200.fc20 will be erased
--> Processing Dependency: kernel-uname-r = 3.13.8-200.fc20.x86_64 for package: kernel-modules-extra-3.13.8-200.fc20.x86_64
---> Package kernel.x86_64 0:3.13.9-200.DEBUG_DSDT.fc20 will be erased
---> Package kernel.x86_64 0:3.17.7-300.local.fc21 will be installed
--> Processing Dependency: kernel-core-uname-r = 3.17.7-300.local.fc21.x86_64 for package: kernel-3.17.7-300.local.fc21.x86_64
--> Processing Dependency: kernel-modules-uname-r = 3.17.7-300.local.fc21.x86_64 for package: kernel-3.17.7-300.local.fc21.x86_64
--> Running transaction check
---> Package kernel.x86_64 0:3.17.7-300.local.fc21 will be installed
--> Processing Dependency: kernel-core-uname-r = 3.17.7-300.local.fc21.x86_64 for package: kernel-3.17.7-300.local.fc21.x86_64
--> Processing Dependency: kernel-modules-uname-r = 3.17.7-300.local.fc21.x86_64 for package: kernel-3.17.7-300.local.fc21.x86_64
---> Package kernel-modules-extra.x86_64 0:3.13.8-200.fc20 will be erased
--> Finished Dependency Resolution
Error: Package: kernel-3.17.7-300.local.fc21.x86_64 (/kernel-3.17.7-300.local.fc21.x86_64)
Requires: kernel-modules-uname-r = 3.17.7-300.local.fc21.x86_64
Installed: kernel-modules-3.17.7-300.fc21.x86_64 (installed)
kernel-modules-uname-r = 3.17.7-300.fc21.x86_64
Available: kernel-modules-3.17.4-301.fc21.x86_64 (fedora)
kernel-modules-uname-r = 3.17.4-301.fc21.x86_64
Error: Package: kernel-3.17.7-300.local.fc21.x86_64 (/kernel-3.17.7-300.local.fc21.x86_64)
Requires: kernel-core-uname-r = 3.17.7-300.local.fc21.x86_64
Installed: kernel-core-3.17.7-300.fc21.x86_64 (installed)
kernel-core-uname-r = 3.17.7-300.fc21.x86_64
Available: kernel-core-3.17.4-301.fc21.x86_64 (fedora)
kernel-core-uname-r = 3.17.4-301.fc21.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest