From: Greg KH <greg@kroah.com>
To: kernelnewbies@kernelnewbies.org
Subject: Re: What is the minimal set of firmware files I need for my hardware?
Date: Mon, 4 May 2020 12:45:55 +0200 [thread overview]
Message-ID: <20200504104555.GA1571331@kroah.com> (raw)
In-Reply-To: <20200504102635.psgndj4j7qk46g2b@NUX>
On Mon, May 04, 2020 at 01:26:35PM +0300, Doron Behar wrote:
> I hope this question fits to this List.
>
> Today I learned that my distro's `linux-unfree-firmware` package is 491
> Mb in size. I'm pretty sure my hardware doesn't need all of these files.
> Maybe different Linux distros call this package differently, but I'm talking
> about the firmware files that come from:
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/
>
> I think I can reduce this disk usage if I'll only know what files
> I can exclude from there.
>
> Is there any official documentation, that states exactly what files from
> That git repo are needed per device / computer model? Perhaps the official
> documentation of my Computer's hardware will state that? There's a Linux
> from scratch webpage[1] that gives some info for popular hardware, but I'm
> wondering if there's a bit more "official" information available
> somewhere.
>
> [1]: http://linuxfromscratch.org/blfs/view/svn/postlfs/firmware.html
The kernel macro MODULE_FIRMWARE() will show the firmware file that a
specific kernel module needs. So if you look a the output of modinfo
for all of the modules that your system needs, you will see a "firmware"
line that shows the name that your hardware needs for that specific
driver/module.
Just take those specific files and put them on your disk and you should
be fine. Note, I think tools that generate initrd images can do this
automatically, so perhaps you should look at what they do as an example
for this.
Hope this helps,
greg k-h
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next prev parent reply other threads:[~2020-05-04 10:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-04 10:26 What is the minimal set of firmware files I need for my hardware? Doron Behar
2020-05-04 10:45 ` Greg KH [this message]
2020-05-04 12:56 ` Doron Behar
2020-05-04 13:06 ` Greg KH
2020-05-04 15:20 ` Doron Behar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200504104555.GA1571331@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).