Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need some help with compiling my kernel under Fedora 11. Why am I trying to compile my kernel, you may ask? Because it is there!! ; ) (Actually, I am trying to learn more about what I am using and doing in Linux).
rpmdev-setuptree
yumdownloader --source kernel
su -c 'yum-builddep kernel-2.6.29.6-217.2.3.fc11.src.rpm'
rpm -Uvh kernel-2.6.29.6-217.2.3.fc11.src.rpm
cd ~/rpmbuild/SPECS
rpmbuild -bp --target=x86_64 kernel.spec
but when I enter this part:
[bill@gryphon SPECS]$ cp -r ~/rpmbuild/BUILD/kernel-2.6.$ver/linux-2.6.$ver.$arch ~/rpmbuild/BUILD/kernel-2.6.$ver.orig
cp: cannot stat `/home/bill/rpmbuild/BUILD/kernel-2.6./linux-2.6..': No such file or directory
[bill@gryphon SPECS]$
I have tried to be logical about it and tried this:
[bill@gryphon SPECS]$ cp -r ~/rpmbuild/BUILD/kernel-2.6.$ver/linux-2.6.$ver.$arch ~/rpmbuild/BUILD/kernel-2.6.$ver.orig
cp: cannot stat `/home/bill/rpmbuild/BUILD/kernel-2.6./linux-2.6..': No such file or directory
[bill@gryphon SPECS]$
According to the guide that you are following that step is only needed if you are patching your kernel source. I'm guessing you don't need to patch your new kernel sources. You can skip that step and continue on with the guide.
I did what both of you suggested, I feel somewhat foolish not catching the patch part, - thanks mcolangelo for pointing this out to me. After running make menuconfig, I compiled the kernel. Everything seemed to go smoothly, until I tried to install the kernel rpm. Then I received this error:
[bill@gryphon SPECS]$ rpm -ivh /home/bill/rpmbuild/RPMS/x86_64/kernel-2.6.29.6-217.2.3.test.fc11.x86_64.rpm
error: Failed dependencies:
kernel-firmware >= 2.6.29.6-217.2.3.test.fc11 is needed by kernel-2.6.29.6-217.2.3.test.fc11.x86_64
I looked in the /rpmbuild/RPMS/x86_64 directory and this is all that is there:
I'm not 100% familiar with the way that Fedora does things but looking at the guide I see that there are a few different options for performing your build. Maybe you need to build your kernel differently?
Based off the error message you are receiving it looks like you needed to build your kernel with the firmware included.
Quote:
[bill@gryphon SPECS]$ rpm -ivh /home/bill/rpmbuild/RPMS/x86_64/kernel-2.6.29.6-217.2.3.test.fc11.x86_64.rpm
error: Failed dependencies:
kernel-firmware >= 2.6.29.6-217.2.3.test.fc11 is needed by kernel-2.6.29.6-217.2.3.test.fc11.x86_64
I know it's a time consuming process, but maybe try rebuilding your kernel with the following command to produce a compatible firmware that will satisfy the dependency.
I rebooted my system and my new kernel was installed. However, (I think with recompiling the kernel, "however", is a key word!), I messed up somewhere and my system froze trying to detect my Logitech mouse.
I guess I will try to go through the options on the kernel.spec file and try to see where I went wrong.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.