Main Page | Report this Page
Linux Forum Index  »  Linux Setup  »  FC11 recompiling kernel: fail on kernel-firmware...
Page 1 of 1    

FC11 recompiling kernel: fail on kernel-firmware...

Author Message
K.A....
Posted: Mon Sep 14, 2009 10:44 am
Guest
Hello,

I'm running Fedora Core 11 and I'm attempting to recompile a kernel to add
HPFS support. Although I have 13 years of UNIX/LINUX experience at work,
it had always been like a user and it's a first time I'm my own sysadmin
so I'm rather novice sysadmin.
After some searching, I found a kernel compilation procedure at

http://fedoraproject.org/wiki/Docs/CustomKernel

and attempted to perform it. Here's the list of commands
I used (taken from history with irrelevant "ls" removed):

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 <=== Added HPFS support.
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 --with firmware --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

The last command failed with the following error:

<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

Looking at the directory where rpm-s had been created I see a kernel-firmware package WITH architecture in its name:

<localhost>.../SPECS>ls ~/rpmbuild/RPMS/x86_64/
total 688432
-rw-r--r--. 1 22777358 2009-09-10 21:32 kernel-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 22780412 2009-09-10 21:44 kernel-debug-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 303679613 2009-09-10 21:55 kernel-debug-debuginfo-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 6511822 2009-09-10 21:44 kernel-debug-devel-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 303672532 2009-09-10 21:44 kernel-debuginfo-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 37650771 2009-09-10 21:33 kernel-debuginfo-common-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 6496132 2009-09-10 21:33 kernel-devel-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 504703 2009-09-10 21:32 kernel-firmware-2.6.29.4-167.hpfs.fc11.x86_64.rpm
-rw-r--r--. 1 864729 2009-09-10 21:32 kernel-headers-2.6.29.4-167.hpfs.fc11.x86_64.rpm



running "rpm -qa | grep kernel-firmware" resulted in:

kernel-firmware-2.6.29.4-167.fc11.noarch

What I don't understand is how the depemdencies check mechanizm of the "rpm" works?
Where does it looks for packages on which an installed package depends? Does it look
in the directory where it created the rpm-s "~/rpmbuild/RPMS/x86_64" or it looks
at the installed rpm-s? I haven't installed yet the "kernel-firmware-2.6.29.4-167.hpfs.fc11.x86_64.rpm"
because I don't know what will happen with the old "kernel-firmware-2.6.29.4-167.fc11.noarch" - will I mess
the system? From some reading I remember that kernel-firmware is supposed to be architecture-less, so maybe
the "rpmbuild" created an "rpm" file with a wrong name and in a wrong directory: "x86_64" instead of "noarch"?
Should I change the kernel.spec to change the created kernel-firmware to be "noarch" (just guessing,
don't know what to change in kernel.spec for it)?

I'm sure I just forgot something stupidly obvious but I don't know what.

Thanks in advance for any help,
Arie.
 
John Reiser...
Posted: Wed Sep 16, 2009 6:49 pm
Guest
Quote:
I'm running Fedora Core 11 and I'm attempting to recompile a kernel to add
HPFS support.

https://bugzilla.redhat.com/show_bug.cgi?id=515626

# Build both kernel and kernel-firmware with only one rpmbuild:
rpmbuild -bb --target x86_64 --with baseonly --with firmware kernel.spec

or

# Build kernel-firmware separately: (Do this FIRST so that subsequent
# "--target x86_64" leaves you with a directory tree that supports
# fast edit-compile-debug via "edit; make bzImage".)
rpmbuild -bb --target noarch --without doc kernel.spec

--
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Mon Dec 07, 2009 3:14 am