LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 02-18-2016, 03:19 PM   #1
terence
LQ Newbie
 
Registered: Feb 2004
Location: Edinburgh UK
Distribution: CentOS
Posts: 19

Rep: Reputation: 0
install different kernels with conflicting kernel-firmware?


I have for many years had multiple kernel versions installed on various machines running various Linux distros without any problems.
My current setup is a machine running CentOS 6.5, with a 3.10.32 kernel from CentOS, and a 2.6.32 kernel I compiled myself. I use Grub to choose which kernel to boot. But recently, I came across an issue I've never previously encountered. I want to install the newer 3.18.21 kernel while keeping the old 3.10.32 kernel. To make sure the old kernel is kept, I decided to do this manually using rpm. So I used yumdownloader to download:

kernel-3.18.21-16.el6.x86_64.rpm and the required dependency
kernel-firmware-3.18.21-16.el6.noarch.rpm

Doing rpm -i kernel-3.18.21-16.el6.x86_64.rpm throws up an error message saying the kernel-firmware dependency is missing. But when I do rpm -i kernel-firmware-3.18.21-16.el6.noarch.rpm, I get an error message saying the new package conflicts with the existing
kernel-firmware-3.10.32-11.el6.centos.alt.noarch for the existing 3.10.32 kernel. So how do I install both kernels together with their required firmware?

If I do yum install kernel instead, it doesn't complain; I just get:
======================================================================
Package Arch Version Repository Size
======================================================================
Installing:
kernel x86_64 3.18.21-16.el6 Xen4CentOS 36 M
Updating for dependencies:
kernel-firmware noarch 3.18.21-16.el6 Xen4CentOS 6.4 M

But the 'updating for dependencies' bit still worries me. Does it mean that the existing firmware for the 3.10.32 kernel will be wiped out and replaced with the new version? As I see it, the trouble is that the /lib/firmware directory has no subdirectories distinguishing between different kernels, unlike /lib/modules, say.

Any help greatly appreciated.
 
Old 02-18-2016, 04:01 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Not sure about automated firmware installs, but reality is much simpler. Say, one of your kernel drivers requires blob-version-0, so you have it in /lib/firmware. The driver in a newer kernel may require this same version, or it may need a newer version blob-version-1. Both firmwares can happily co-exist and both your kernels will be happy.
 
Old 02-18-2016, 05:56 PM   #3
terence
LQ Newbie
 
Registered: Feb 2004
Location: Edinburgh UK
Distribution: CentOS
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Emerson View Post
Not sure about automated firmware installs, but reality is much simpler. Say, one of your kernel drivers requires blob-version-0, so you have it in /lib/firmware. The driver in a newer kernel may require this same version, or it may need a newer version blob-version-1. Both firmwares can happily co-exist and both your kernels will be happy.
Thanks for your answer.

I've compared the files in the new rpm kernel-firmware-3.18.21-16.el6.noarch.rpm with the existing files in /lib/firmware, and most of the file names are exactly the same. I then extracted
kernel-firmware-3.18.21-16.el6.noarch.rpm to a temporary directory and tested a few files with diff, and sure enough they're identical files. So can I be sure that all blobs with the same file names are in fact identical? If so, I can happily go ahead and install the new kernel along with its firmware.
 
Old 02-18-2016, 06:30 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Yes, all blobs with same name are identical.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install two versions of same rpm , its conflicting currently tejasvinnakota Linux - Enterprise 3 10-21-2015 03:58 PM
What package can I install to get /usr/src/kernels/$(uname -r), kernel-devel not work hyperspherical Linux - Newbie 4 12-23-2012 02:54 PM
[SOLVED] Suggestion: install kernel firmware into /lib/firmware/$(uname -r) qweasd Slackware 7 08-08-2012 02:12 PM
LXer: Kernel Log: Stable kernels analysed, Linux without firmware, new graphics drive LXer Syndicated Linux News 0 03-09-2010 02:40 AM
nvidia conflicting with new kernel 2.6.30.1 himanshu.renegade Linux - Hardware 3 07-11-2009 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration