Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Kernel Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th August 2009, 06:07
kaza kaza is offline
Junior Member
 
Join Date: Jul 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Building new kernel (FC11): final "rpm -ivh" failed on "kernel-firmware"

Hello,

I attempted (for the first time) to recompile a kernel (to add HPFS support).
I found a step-by-step guide of custom kernel creation on
http://fedoraproject.org/wiki/Docs/CustomKernel
and attempted to follow it. All went well until the kernel install
command: it failed in requiring the kernel-firmware:


<localhost>.../SPECS>rpm -ivh ~/rpmbuild/RPMS/x86_64/kernel-2.6.29.4-167.hpfs.fc11.x86_64.rpm
error: Failed dependencies:
kernel-firmware >= 2.6.29.4-167.hpfs.fc11 is needed by kernel-2.6.29.4-167.hpfs.fc11.x86_64

After some searching I understand that kernel-firmware is a sourceless
package so I need to somehow to link the firmware files with the kernel,
how can I do it? I did the kernel-creation not a a root, and when I see
what kernel packages are installed on my system I see the firmware too:

<localhost>.../rpmbuild>rpm -qa | grep kernel
kernel-2.6.29.4-167.fc11.x86_64
kernel-headers-2.6.29.4-167.fc11.x86_64
kernel-firmware-2.6.29.4-167.fc11.noarch
kerneloops-0.12-5.fc11.x86_64
kernel-devel-2.6.29.4-167.fc11.x86_64

Here is an excert from the history of the commands I used
while attempting to re-compile the kernel (with some "ls" removed
as irrelevant):

108 22:21 uname -m
111 22:28 rpmdev-setuptree
119 22:31 yumdownloader --source kernel
125 22:40 su -c 'yum-builddep kernel-2.6.29.4-167.fc11.x86_64.src.rpm'
126 23:16 su -c 'yum-builddep kernel-2.6.29.4-167.fc11.src.rpm'
127 23:53 su -c 'yum-builddep download/kernel-2.6.29.4-167.fc11.src.rpm'
129 23:55 rpm -Uvh kernel-2.6.29.4-167.fc11.src.rpm
133 23:59 rpmbuild -bp --target=`uname -m` kernel.spec
137 0:03 cd ../BUILD/kernel-2.6.29/linux-2.6.29.x86_64
141 0:07 cp configs/kernel-2.6.29.4-x86_64.config ./config
145 0:08 make oldconfig
146 0:09 make xconfig
149 0:26 uname -i
156 0:30 cp .config ~/rpmbuild/SOURCES/config-x86_64-generic
157 0:30 cd ~/rpmbuild/SPECS
159 0:31 ne kernel.spec & <=== Changed buildid to ".hpfs".
160 0:37 rpmbuild -bb --target=`uname -m` kernel.spec
164 6:23 rpm -ivh ~/rpmbuild/RPMS/x86_64/kernel-2.6.29.4-167.hpfs.fc11.x86_64.rpm

I downloaded the kernel-firmware-2.6.29.4-167.fc11.noarch.rpm package
but I don't know what should I change in the kernel creation process
in order for the kernel-firmware to be used?

Thanks inadvance for any help.
Reply With Quote
Sponsored Links
  #2  
Old 29th August 2009, 12:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Can you post the output of
Code:
ls -la ~/rpmbuild/RPMS/x86_64/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 29th August 2009, 17:51
kaza kaza is offline
Junior Member
 
Join Date: Jul 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Can you post the output of
Code:
ls -la ~/rpmbuild/RPMS/x86_64/
?
Hello falco, thanks for the reply.

Here's the oitput:
<localhost>.../sounds>ls -la ~/rpmbuild/RPMS/x86_64/
total 687960
drwxr-xr-x. 2 kaza kaza 4096 2009-08-27 02:03 .
drwxr-xr-x. 3 kaza kaza 4096 2009-08-27 01:39 ..
-rw-r--r--. 1 kaza kaza 22777425 2009-08-27 01:40 kernel-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 kaza kaza 22780538 2009-08-27 01:52 kernel-debug-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 kaza kaza 303681852 2009-08-27 02:04 kernel-debug-debuginfo-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 kaza kaza 6511404 2009-08-27 01:52 kernel-debug-devel-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 kaza kaza 303670832 2009-08-27 01:51 kernel-debuginfo-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 kaza kaza 37652474 2009-08-27 01:40 kernel-debuginfo-common-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 kaza kaza 6497207 2009-08-27 01:40 kernel-devel-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 kaza kaza 864729 2009-08-27 01:40 kernel-headers-2.6.29.4-167.hpfs.fc11.x86_64.rpm


I see that there is no kernel-firmware here, I downloaded the
kernel-firmware-2.6.29.4-167.fc11.noarch.rpm
file (currently in ~/download directory), will simply renaming it
to kernel-firmware-2.6.29.4-167.fc11.hpfs.noarch.rpm
and placing it in
~/rpmbuild/RPMS/noarch
be enough to solve the problem or something more complicated
is required?

Thanks in advance.
Reply With Quote
  #4  
Old 30th August 2009, 12:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by kaza View Post
I see that there is no kernel-firmware here, I downloaded the
kernel-firmware-2.6.29.4-167.fc11.noarch.rpm
file (currently in ~/download directory), will simply renaming it
to kernel-firmware-2.6.29.4-167.fc11.hpfs.noarch.rpm
and placing it in
~/rpmbuild/RPMS/noarch
be enough to solve the problem or something more complicated
is required?
I think it's worth a try.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 31st August 2009, 22:51
kaza kaza is offline
Junior Member
 
Join Date: Jul 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tried this, same error message

Quote:
Originally Posted by falko View Post
I think it's worth a try.
Hi Falko,

It seems not as trivial as I thought: just copying the RPM file and renaming it
to have ".hpfs" in its name isn't enough. I'm a LINUX beginner (as sysadmin,
as a user I use UNIX/LINUX for 12 years at work) so currently large part
of the kernel compilation process looks like "woodoo" to me. It seems
I have to alter some of the earlier steps but I don't know which and how.
I'm lacking the knowledge about how the kernel installation process
decides where are the files/directories from which it can deduce
what packages are installed and what should I do for it to recognize
the old named package as a new one (with ".hpfs" in the name)
or to change the dependencies of the new kernel to depend
on the old kernel-firmware instead of the new one.
I'm hesitating to install the renamed

kernel-firmware-2.6.29.4-167.hpfs.fc11.noarch.rpm

as I'm not sure if I won't ruin something.

Any ideas?

TIA,
kaza.
Reply With Quote
  #6  
Old 1st September 2009, 15:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Is kernel-firmware mentioned somewhere in the .spec file of the kernel package?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
domains not accessible gillesdevals Installation/Configuration 3 17th June 2009 09:12
Ispconfig IE7 Xen aurelius Installation/Configuration 8 19th October 2008 10:46
Google Apps dayjahone General 19 29th March 2008 17:25
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
WG311v2 almost working with Edgy (w/o ndiswrapper) need help with the rest caudata Server Operation 11 13th November 2006 20:02


All times are GMT +2. The time now is 01:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.