LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-07-2012, 08:24 PM   #1
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
Suggestion: install kernel firmware into /lib/firmware/$(uname -r)


I noticed that udev shipped with Slackware 13.37 picks up firmware in this order:
Code:
Firmware files are looked up in:
  /lib/firmware/updates/$(uname -r)
  /lib/firmware/updates
  /lib/firmware/$(uname -r)
  /lib/firmware
IMHO, it would make sense to have the firmware in /lib/firmware/$(uname -r). It would be irrelevant to people who use the stock kernel (aside from the necessity to update their custom scripts, if any). At the same time, it would make the life of folks who upgrade the kernel a bit easier, by making the firmware loading a bit more predictable. Moreover, it seems to be the place where Linus thinks firmware should be placed, so it would be in line with the Slackware philosophy.
 
Old 08-07-2012, 08:35 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by qweasd View Post
Moreover, it seems to be the place where Linus thinks firmware should be placed, so it would be in line with the Slackware philosophy.
Wait, did Linus really say that? That seems hard to believe. Everyone ships it in /lib/firmware, and I can't think of a good reason to do otherwise, since firmware runs on the hardware that uses it and is not tied in any way to the machine architecture.
 
Old 08-07-2012, 08:56 PM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
I was under the impression that the firmware from the firmware git repo was a superset of that shipped in the kernel src tree. If so then I think /lib/firmware is the appropriate place to put it.

/usr/lib/firmware/$(uname -r) seems like it'd be the correct place if one were only using the firmware included in the kernel src repo, but not for that taken from the separate git repo.


But, I could be getting the wrong end of the stick.
 
Old 08-07-2012, 09:00 PM   #4
qweasd
Member
 
Registered: May 2010
Posts: 621

Original Poster
Rep: Reputation: Disabled
Sorry to drag Linus into this, that was uncalled for Still, I thought this idea was worth airing, and I am not at all dissuaded by the fact that everyone else is doing it the lame way. I didn't pick Slackware because it was a consensus distro
 
Old 08-07-2012, 09:06 PM   #5
qweasd
Member
 
Registered: May 2010
Posts: 621

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
I was under the impression that the firmware from the firmware git repo was a superset of that shipped in the kernel src tree.
May be it's just my ignorance showing. What firmware git repo are you talking about?
 
Old 08-08-2012, 02:54 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
This is where Slackware -current (i.e. 14.0 and onwards) pulls its kernel firmware from: git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git .

Eric
 
Old 08-08-2012, 01:22 PM   #7
qweasd
Member
 
Registered: May 2010
Posts: 621

Original Poster
Rep: Reputation: Disabled
What is the difference between firmware set from git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git and the one that comes with git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git ?
 
Old 08-08-2012, 02:12 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by qweasd View Post
What is the difference between firmware set from git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git and the one that comes with git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git ?
RTFM is the most educational answer as always: http://git.kernel.org/?p=linux/kerne...README;hb=HEAD

OK, here is a copy:
Code:
This repository contains all these firmware images which have been
extracted from older drivers, as well various new firmware images which
we were never permitted to include in a GPL'd work, but which we _have_
been permitted to redistribute under separate cover.
Eric
 
  


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
Failure to find E100 firmware even though present in /lib/firmware afhartman Linux - Networking 2 07-27-2009 07:31 AM
Files in /lib/firmware YellowOrange Linux - Newbie 3 03-01-2008 10:53 AM
/lib/firmware... agayer Linux - Hardware 2 12-14-2006 04:35 AM
messed up my ipod firmware..need new firmware.. casimir Linux - Hardware 2 09-13-2004 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:52 PM.

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