View Single Post
  #1  
Old 28th August 2009, 07: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