From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7FF4813897C for ; Sun, 10 Feb 2013 21:07:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80ADA21C0F3; Sun, 10 Feb 2013 21:06:59 +0000 (UTC) Received: from mailgate.internet.lu (mailgate.internet.lu [195.218.0.131]) by pigeon.gentoo.org (Postfix) with SMTP id 4D09F21C04A for ; Sun, 10 Feb 2013 21:06:58 +0000 (UTC) Received: from silis.lu (emailproxy-3.online.lu [195.218.24.15]) by mailgate.internet.lu (Postfix) with SMTP id 184049C1696 for ; Sun, 10 Feb 2013 22:06:55 +0100 (CET) Received: from 158.64.156.70 by 195.218.24.15 INC_SMTP_SERVER 2.57; Sun, 10 Feb 2013 22:13:53 +0100 Received: from neptune.home (neptune.home [IPv6:2001:960:7ab:0:2c0:9fff:fe2d:39d]) by smtp.home (Postfix) with ESMTPS id 7CB22144C7A for ; Sun, 10 Feb 2013 22:06:54 +0100 (CET) Date: Sun, 10 Feb 2013 22:06:45 +0100 From: Bruno To: gentoo-dev@lists.gentoo.org Subject: Re: RFC: install linux-firmware with kernel sources (was Re: [gentoo-dev] Lastrite: Firmware cleanup, part #1) Message-ID: <20130210220645.69ada543@neptune.home> In-Reply-To: References: <5117560B.3090709@gentoo.org> <20130210174634.77631769@sf> <1360508715.26312.8.camel@belkin4> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.12; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 8773ba4f-0fad-4b75-bf91-44d8ac35e5a6 X-Archives-Hash: 8a6a51e593d4e709c9b3880c5e2ed335 On Sun, 10 February 2013 Maxim Kammerer wrote: > On Sun, Feb 10, 2013 at 5:05 PM, Pacho Ramos wrote: > > I agree as I have also needed to google and search in forums to get > > proper firmware installed in the past in some machines :/ > > for fw in $(strings -a -n 10 $(find /lib/modules -name '*.ko') | sed > -n 's/^firmware=//p' | sort -u); do > if [ ! -e /lib/firmware/${fw} ]; then > echo ${fw} > fi > done > > I guess you can do something similar with vmlinux.bin if compiling > modules into kernel. Last I looked into that the list of firmwares needed by built-in drivers is not available as is the case for modules (and in addition those built-in drivers may need the firmware long before /lib/firmware/ is available) Bruno > Looking into kernel sources is more robust, but > gets annoying fast. Full script I am using is here: > https://github.com/mkdesu/liberte/blob/master/src/root/helpers/lst-firmwares > > You can encounter superfluous warnings with modules that support > multiple firmware subversions (e.g., iwlwifi).