LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-03-2015, 01:03 PM   #1
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Rep: Reputation: 40
Question kernel install error.


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
 
Old 01-04-2015, 03:15 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Holy macro ... I knew there was a reason why I quit using RH back in '98. How can a distro make a simple thing so complicated.
 
Old 01-04-2015, 04:04 PM   #3
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by Emerson View Post
Holy macro ... I knew there was a reason why I quit using RH back in '98. How can a distro make a simple thing so complicated.
xe xe , i guess i should be more precise - it's a kernel recompile + patch + RPM creation steps. So the RPM creation, apparently, is not working right for me. kernel and patch application works fine.
 
Old 01-17-2015, 07:38 AM   #4
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
this is embarrassing actually...

installer asked :
Quote:
Requires: kernel-core-uname-r = 3.17.7-300.local.fc21.x86_64
so that's what i should have gave it - specify other packages needed to install the kernel rpm..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no /boot/loader and no /boot/kernel/kernel error message on a free bsd install chownuseradd Linux - Newbie 1 02-09-2008 08:05 PM
Kernel 2.6.7 install error, initrd-2.6.7.img error jjorloff1 Linux - General 3 09-15-2004 12:15 AM
Can't install 10.0 - Kernel error????? epihammer Mandriva 3 06-26-2004 06:02 PM
Kernel Install Error RealmX Slackware 2 02-10-2004 11:50 PM
Install Kernel Error BittaBrotha Slackware 12 06-14-2002 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration