Fedora Linux Support Community & Resources Center
  #1  
Old 10th November 2010, 04:11 PM
Azhar Offline
Registered User
 
Join Date: Apr 2010
Posts: 57
linuxfedorafirefox
Kernel update

I downloaded the source of 2.6.32 kernel from kernel.org.

My questions

1. How can i compile it?

2. Can i install it on FC12.??

3. How can i use yum to update kernel.
Code:
yum update kernel
command doesnt works.
Reply With Quote
  #2  
Old 10th November 2010, 05:37 PM
CSchwangler Offline
Registered User
 
Join Date: Feb 2009
Posts: 2,535
linuxfirefox
Re: Kernel update

If a new kernel becomes available for your version of Fedora, you will get it automatically through yum update, except that you have configured yum such that kernel updates are excluded.

There are a lot of How-to's available on how to compile a kernel, just use Google. This is one of them

http://www.howtoforge.com/kernel_compilation_fedora
Reply With Quote
  #3  
Old 11th November 2010, 06:08 PM
Azhar Offline
Registered User
 
Join Date: Apr 2010
Posts: 57
linuxfedorafirefox
Angry Re: Kernel update

How do i configure yum to include kernel updates?? Or how can i check if its disabled?

---------- Post added at 11:08 PM GMT ---------- Previous post was at 09:14 PM GMT ----------

I was using the following link as guide to compile the kernel

https://wiki.archlinux.org/index.php...Recommended.29

using the traditional method.

After the
Code:
make modules_install
i get the following error

Code:
cp: cannot stat `/home/Azhar/Kernel/linux-2.6.36/modules.builtin': No such file or directory
make: *** [_modinst_] Error 1
Any idea, how i can resolve this??
Reply With Quote
  #4  
Old 11th November 2010, 06:40 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,141
linuxfirefox
Re: Kernel update

Why does the command,
Code:
yum update kernel
presumably on your F12 machine, not work for you? What errors are you getting? Just saying "command doesn't works" doesn't give anyone reading this any clue as to why that isn't working if you don't show, or explain, what the error is.

The current kernel version available in the F12 updates repository is: 2.6.32.23-170.fc12
There should be no reason you have to compile a 2.6.32 kernel from source code unless you have a need to enable a kernel module, or modify one, that isn't already created in the kernel package offered by Fedora.

Does your F12 machine have internet access?

Did you, or someone, disable the "updates" repo?

Kernel updates are not "disabled" by default. In order for that to happen, you would have to add a line to your /etc/yum.conf file which reads: exclude=kernel*. If you had done that, surely you would have remembered.

Are you posting this from your F12 machine?

If so, what is the output of:
Code:
cat /etc/fedora-release
uname -r
cat /etc/yum.repos.d/fedora-updates.repo | grep -m1 enabled
yum repolist


---------- Post added at 01:40 PM GMT ---------- Previous post was at 01:32 PM GMT ----------

Here is the progression of kernel updates on my F12 install since I first installed it.
Code:
BASH:~/-> sudo cat /var/log/yum.log-20100101 | grep "Installed: kernel"
Nov 30 19:47:35 Installed: kernel-headers-2.6.31.5-127.fc12.i686
Dec 02 20:02:20 Installed: kernel-2.6.31.6-145.fc12.i686
Dec 12 23:05:55 Installed: kernel-2.6.31.6-166.fc12.i686
Dec 27 19:36:12 Installed: kernel-2.6.31.9-174.fc12.i686
BASH:~/-> sudo cat /var/log/yum.log | grep "Installed: kernel"
Jan 23 22:40:05 Installed: kernel-2.6.31.12-174.2.3.fc12.i686
Feb 17 20:32:02 Installed: kernel-2.6.31.12-174.2.19.fc12.i686
Feb 24 01:44:25 Installed: kernel-2.6.31.12-174.2.22.fc12.i686
Mar 07 20:03:37 Installed: kernel-2.6.32.9-67.fc12.i686
Mar 13 18:23:49 Installed: kernel-2.6.32.9-70.fc12.i686
Mar 31 00:54:28 Installed: kernel-2.6.32.10-90.fc12.i686
Apr 11 02:12:22 Installed: kernel-2.6.32.11-99.fc12.i686
May 22 23:02:32 Installed: kernel-2.6.32.12-115.fc12.i686
Jul 03 00:35:45 Installed: kernel-2.6.32.14-127.fc12.i686
Aug 03 01:23:53 Installed: kernel-2.6.32.16-141.fc12.i686
Aug 04 11:40:21 Installed: kernel-2.6.32.16-150.fc12.i686
Aug 28 16:52:11 Installed: kernel-2.6.32.19-163.fc12.i686
Sep 04 19:52:11 Installed: kernel-2.6.32.21-166.fc12.i686
Sep 23 23:09:10 Installed: kernel-2.6.32.21-168.fc12.i686
Nov 01 01:39:48 Installed: kernel-2.6.32.23-170.fc12.i686

Last edited by PabloTwo; 11th November 2010 at 06:43 PM.
Reply With Quote
  #5  
Old 12th November 2010, 09:30 AM
Azhar Offline
Registered User
 
Join Date: Apr 2010
Posts: 57
linuxfedorafirefox
Re: Kernel update

Finally someone replies....

First, my mistake, i didn't explain why the command doesnt works. And now after carefully examining the system, i realize that i wasnt loading the latest kernel at boot time....

uname -r
Code:
[root@laptop ~]# uname -r
2.6.32.23-170.fc12.i686
[root@laptop ~]#
Yum update kernel
Code:
[root@laptop ~]# yum update kernel
Loaded plugins: presto, refresh-packagekit
Setting up Update Process
No Packages marked for Update
[root@laptop ~]#
The reason why i was asking about compiling the kernel, and the errors, was because i was trying to install the latest kernel 2.6.36 for FC12. And hence my question in the first post, can i install 2.6.36 in FC12.

Ooops...typo in first post 2.6.32. . No wonder, no one was replying.
Reply With Quote
  #6  
Old 12th November 2010, 03:00 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,141
linuxfirefox
Re: Kernel update

Now things make a lot more sense Well, one possibility, instead of compiling the 2.6.36 kernel yourself from source would be to try and install one already compiled and as an rpm package for F15. You could get that from koji here.

If you click on the "info" link on the kernel-2.6.36-1.fc15.i686.rpm package, you can see the dependencies required,
Quote:
Requires
/bin/sh
/bin/sh
/bin/sh
/sbin/new-kernel-pkg
/sbin/new-kernel-pkg
dracut >= 001-7
fileutils
grubby >= 7.0.10-1
initscripts >= 8.11.1-1
linux-firmware >= 20100806-2
module-init-tools
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
rpmlib(VersionedDependencies) <= 3.0.3
Checking for any questionable dependencies on my F12 system,
Code:
BASH:~/-> rpm -q dracut grubby initscripts linux-firware
dracut-005-5.fc12.noarch
grubby-7.0.9-1.fc12.i686
initscripts-9.02.2-1.i686
package linux-firware is not installed
I find that grubby would first have to be updated to v. 7.0.10, which isn't in the F12 repos but you could get that from koji also here. Looks like there should be no dependency issues installing grubby 7.0.10 on F12.

The other dependency issue is "linux-firmware", which there is no package at all for F12, but again, available from koji here. And that also looks like it should install into F12 without any dependency issues.

All rpm packages from the koji build server are "safe", but they are not "signed", so need to be installed using using the "--nogpgcheck" option if using yum or the "--nosignature" option if using rpm.
Reply With Quote
  #7  
Old 13th November 2010, 11:30 AM
Azhar Offline
Registered User
 
Join Date: Apr 2010
Posts: 57
linuxfedorafirefox
Unhappy Re: Kernel update

Trying to install linux-firmware

Code:
[root@laptop Downloads]# rpm -i linux-firmware-20100806-4.fc13.src.rpm --nosignature
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
so i create a user mockbuild

Code:
[root@laptop Downloads]# useradd -s /sbin/nologin mockbuild
trying to install again

Code:
[root@laptop Downloads]# rpm -ivh linux-firmware-20100806-4.fc13.src.rpm --nosignature
   1:linux-firmware         ########################################### [100%]
Checking for installed software

Code:
[root@laptop Downloads]# rpm -q dracut grubby initscripts linux-firmware
dracut-002-13.4.git8f397a9b.fc12.noarch
grubby-7.0.9-1.fc12.i686
initscripts-9.02-1.i686
package linux-firmware is not installed
What am i missing???
Reply With Quote
  #8  
Old 13th November 2010, 02:13 PM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,024
linuxopera
Re: Kernel update

You are actually installing a srpm (or src.rpm) which only creates tools for you to build an rpm. An rpm is a binary package, whereas srpms are a packge consisting usually of source code and what's called a spec file.

Looks like you clicked the first link, the one marked source. You want the second link, with an rpm suffix, not src.rpm suffix.
You can leave that src.rpm installed, it won't hurt anything.

But you want

http://kojipkgs.fedoraproject.org/pa...c13.noarch.rpm

Then, you can usually use yum to take care of dependencies.

yum localinstall --nogpgcheck linux-firmware-<etc>.rpm

It should pull in any dependencies that you need.
Reply With Quote
Reply

Tags
kernel, kernel update, kernel upgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Fedora 9: latest kernel update (kernel-2.6.25.10-86) won't boot anymore alwin Using Fedora 8 2nd November 2008 02:11 PM
nvidia + kernel update problem - wrong kernel version?! Duli Installation and Live Media 5 6th March 2007 03:36 AM


Current GMT-time: 08:44 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat