Fedora Linux Support Community & Resources Center
  #1  
Old 24th March 2011, 07:34 PM
xd1936's Avatar
xd1936 Offline
Registered User
 
Join Date: Oct 2010
Posts: 17
linuxfedorafirefox
Replacement Kernel?

Hello all!

Feel free to flame me if this is a totally n00b question, but:

Is it possible to upgrade just the kernel in F14 to 2.6.38 from rawhide/the F15 Alpha? There's some hardware support I'd like, and the speed bump is always good!
  #2  
Old 24th March 2011, 07:49 PM
roelj Offline
Registered User
 
Join Date: Jun 2009
Location: Netherlands
Age: 21
Posts: 279
linuxfedorafirefox
Re: Replacement Kernel?

I think it's possible.
Download the kernel from koji.fedoraproject.org and install using yum:
Code:
yum install kernel-2.6.38*.rpm --nogpgcheck
You could also compile it yourself:
1. Download it from kernel.org
2. Unpack
Code:
tar jxvf linux-2.6.38.tar.bz2
3. And compile
Code:
cd kernel-2.6.38
make mrproper
make clean
make menuconfig # customization can be done here (enable that scheduling patch for example).
make bzImage
make modules
make modules_install
make install
Hopefully I provided the correct way to compile the kernel.
  #3  
Old 24th March 2011, 07:51 PM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 806
windows_xp_2003chrome
Re: Replacement Kernel?

I think that it is generally possible. If it asks you to update other things like udev,
then you need to start being more cautious. Just make sure you install the kernel
in-addition to your working F14 kernel in case you need to revert. It's also a good
idea to edit /etc/grub.conf to add in a delay and uncomment hiddenmenu to make
it easier to switch between kernels if there does turn out to be a problem.
  #4  
Old 24th March 2011, 08:34 PM
Fenrin Online
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 858
linuxfirefox
Re: Replacement Kernel?

If you don't use the ATI/AMD binary graphics driver (catalyst 11.2), it should work fine. The ATI/AMD binary driver+kernel 2.6.38 does not work well yet.
  #5  
Old 24th March 2011, 08:42 PM
jvillain Offline
Registered User
 
Join Date: Aug 2008
Posts: 226
linuxfirefox
Re: Replacement Kernel?

If you are feeling risqué you can always grab 2.6.39 out of koji install it via rpm and take it for a burn.
  #6  
Old 24th March 2011, 08:53 PM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 883
linuxredhatfirefox
Re: Replacement Kernel?

The way I would go about installing a different fedora versions kernel is:
Code:
su -c 'yum install rpmdevtools yum-utils'
rpmdev-setuptree
cd ~/rpmbuild/SRPMS
wget http://kojipkgs.fedoraproject.org/pa...6.fc15.src.rpm
su -c 'yum-builddep kernel-2.6.38.1-6.fc15.src.rpm'
rpmbuild --rebuild --with baseonly  --without debuginfo --target=`uname -m` kernel-2.6.38.1-6.fc15.src.rpm
and when finished you should have the new kernel.rpm in your ~/rpmbuild/RPM/...i686 or xx86_64 folder. You can then cd to the folder and install with something like:
Code:
su -
cd /home/YOURUSERNAME/rpmbuild/RPMS/XXXXXis either i686 or X86_64/
yum localinstall --nogpgcheck kernel-<version>.rpm


---------- Post added at 03:53 PM ---------- Previous post was at 03:43 PM ----------

EDIT: It is definitely a good idea to edit /boot/grub/grub.conf and match the following lines before a reboot:

Quote:
timeout=9
# hiddenmenu

Last edited by AndrewSerk; 24th March 2011 at 08:46 PM.
  #7  
Old 24th March 2011, 09:56 PM
xd1936's Avatar
xd1936 Offline
Registered User
 
Join Date: Oct 2010
Posts: 17
linuxfedorafirefox
Re: Replacement Kernel?

Love the awesome replies, thanks everyone!

I'm currently getting this error. Missing something stupid?

Code:
Examining kernel-2.6.38.1-6.fc15.i686.rpm: kernel-2.6.38.1-6.fc15.i686
Marking kernel-2.6.38.1-6.fc15.i686.rpm as an update to kernel-2.6.35.6-45.fc14.i686
Marking kernel-2.6.38.1-6.fc15.i686.rpm as an update to kernel-2.6.35.11-83.fc14.i686
kernel-2.6.38.1-6.fc15.i686.rpm: does not update installed package.
Error: Nothing to do
EDIT: That was with the --nogpgcheck flag as well. Just so we're clear.
  #8  
Old 24th March 2011, 10:26 PM
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 1,409
linuxfirefox
Re: Replacement Kernel?

Try using install, instead of update:
Code:
sudo yum --nogpgcheck install ./kernelnamegoeshere
dd_wizard
  #9  
Old 24th March 2011, 10:30 PM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 883
linuxfedorafirefox
Re: Replacement Kernel?

Hello,
Yup, sometimes if there are too many differences between kernels/versions you just can't install them, and must rebuild them. Even if you follow my instructions in post #6 when you get to "su -c 'yum-builddep kernel-2.6.38.1-6.fc15.src.rpm' " there may be deps that are not available for your version of fedora( I'm pretty sure you will have this with linux-firmware ". If you have that issue, go to koji.fedoraproject.org and do a search for the package, download the .src.rpm to your ~/rpmbuild/SRPMS and rebuild it with something like:
Code:
rpmbuild --rebuild Foo.src.rpm
then cd to your ~/rpmbuild/RPMS/xxx_will_probably_be_noarch and install it using --nogpgcheck
and continue with the kernel install instructions.

Last edited by AndrewSerk; 24th March 2011 at 10:51 PM.
  #10  
Old 25th March 2011, 11:56 AM
mps2006 Offline
Registered User
 
Join Date: Sep 2006
Posts: 170
linuxfirefox
Re: Replacement Kernel?

FYI I tried installing .38 kernel from koji on F14. Mostly works fine, but X would crash shortly after log-in to kde. Non-compositing WM's worked fine, and there was no prob with .37 kernel.

This was on a nivida card using the nouveau driver. Not sure if it was just to do with the .38 kernel or that F15 uses a newer version of xorg than F14. if you have to update X as well, then there will be a huge cascade of dependencies.

cheers
M.
  #11  
Old 25th March 2011, 01:13 PM
sej7278 Offline
Registered User
 
Join Date: Sep 2004
Posts: 2,008
linuxfirefox
Re: Replacement Kernel?

recompiling srpm's or tarballs means you won't get updates via yum.

here's how i recently got kernel 2.6.38-0.rc7.git2.3.fc16.x86_64 on f14 (not sure why it went straight to f16 not 15):
Code:
yum install fedora-release-rawhide.noarch
this will then enable /etc/yum.repos.d/fedora-rawhide.repo
Code:
[rawhide]
name=Fedora - Rawhide - Developmental packages for the next Fedora release
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=$basearch
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
includepkgs=kernel*
note you must add the "includepkgs=kernel*" line to the bottom of that file to ONLY pull in kernels, otherwise you'll find you're upgraded to f15!

as i have an nvidia gfx card i also enabled the rpmfusion-nonfree-rawhide repo with "includepkgs=*nvidia*" to ONLY pull in nvidia rpms:

/etc/yum.repos.d/rpmfusion-nonfree-rawhide.repo
Code:
[rpmfusion-nonfree-rawhide]
name=RPM Fusion for Fedora Rawhide - Nonfree
#baseurl=http://download1.rpmfusion.org/nonfree/fedora/development/$basearch/os/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-rawhide&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-latest-$basearch file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-rawhide-$basearch
includepkgs=*nvidia*
then a regular "yum update" will pull in the latest kernel and nvidia packages and keep them up-to-date when you use yum in future.

Last edited by sej7278; 25th March 2011 at 01:19 PM.
  #12  
Old 25th March 2011, 02:23 PM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 806
windows_xp_2003chrome
Re: Replacement Kernel?

Just to clarify, rawhide is not the same as F15, that is why you got F16 packages.
  #13  
Old 25th March 2011, 02:31 PM
sej7278 Offline
Registered User
 
Join Date: Sep 2004
Posts: 2,008
linuxfirefox
Re: Replacement Kernel?

Quote:
Originally Posted by vallimar View Post
Just to clarify, rawhide is not the same as F15, that is why you got F16 packages.
yes i guess rawhide is a moving target, i just thought as f15 is still alpha that it would essentially be rawhide at the moment.....
  #14  
Old 25th March 2011, 02:40 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfedorakonqueror
Re: Replacement Kernel?

Quote:
Originally Posted by sej7278 View Post
recompiling srpm's or tarballs means you won't get updates via yum.

here's how i recently got kernel 2.6.38-0.rc7.git2.3.fc16.x86_64 on f14 (not sure why it went straight to f16 not 15):
Code:
yum install fedora-release-rawhide.noarch
this will then enable /etc/yum.repos.d/fedora-rawhide.repo
Code:
[rawhide]
name=Fedora - Rawhide - Developmental packages for the next Fedora release
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=$basearch
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
includepkgs=kernel*
note you must add the "includepkgs=kernel*" line to the bottom of that file to ONLY pull in kernels, otherwise you'll find you're upgraded to f15!

as i have an nvidia gfx card i also enabled the rpmfusion-nonfree-rawhide repo with "includepkgs=*nvidia*" to ONLY pull in nvidia rpms:

/etc/yum.repos.d/rpmfusion-nonfree-rawhide.repo
Code:
[rpmfusion-nonfree-rawhide]
name=RPM Fusion for Fedora Rawhide - Nonfree
#baseurl=http://download1.rpmfusion.org/nonfree/fedora/development/$basearch/os/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-rawhide&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-latest-$basearch file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-rawhide-$basearch
includepkgs=*nvidia*
then a regular "yum update" will pull in the latest kernel and nvidia packages and keep them up-to-date when you use yum in future.
Don't you also need to go in the fedora-update.repo file and put in :
excludepkgs=*kernel so the normal kernel's don't clash with rawhide ones or is yum able to see that the rawhide kernel you have is of higher version so it ignores the normal kernels from the fedora-updates?
  #15  
Old 25th March 2011, 03:25 PM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 883
linuxredhatfirefox
Re: Replacement Kernel?

Quote:
Originally Posted by mps2006 View Post
FYI I tried installing .38 kernel from koji on F14. Mostly works fine, but X would crash shortly after log-in to kde.
This was on a nivida card using the nouveau driver.
cheers
M.
Code:
$ uname -r
2.6.38.1-6.fc14.x86_64
The ...38 works fine here, installed as described in post #6. I am not running a nivida but a intell.


Quote:
Originally Posted by sej7278 View Post
recompiling srpm's or tarballs means you won't get updates via yum.
That is true if you mean you won't get kernel updates, but all other updates should still work fine.

Quote:
Originally Posted by sej7278 View Post
here's how i recently got kernel 2.6.38-0.rc7.git2.3.fc16.x86_64 on f14 (not sure why it went straight to f16 not 15):
Code:
yum install fedora-release-rawhide.noarch
.
I believe if you do that, you are no longer running F14 but rawhide. I can envision this causing other issues from pulling in rawhide packages.

Last edited by AndrewSerk; 25th March 2011 at 03:33 PM.
 

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
Help Needed - Kernel Replacement Tombro Installation and Live Media 5 15th July 2007 05:43 PM


Current GMT-time: 00:19 (Thursday, 23-05-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