From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7724C3A5A9 for ; Mon, 4 May 2020 10:47:09 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 94E852071C for ; Mon, 4 May 2020 10:47:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="Mm2cggNb"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="piaPNvvB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 94E852071C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jVYbu-0003EP-9m; Mon, 04 May 2020 06:46:06 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jVYbr-0003EB-W8 for kernelnewbies@kernelnewbies.org; Mon, 04 May 2020 06:46:04 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 8CC6A6B0 for ; Mon, 4 May 2020 06:45:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 04 May 2020 06:45:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=2DX0+96cq8E+MVLTCDpyypjc9Wm rXvrtR9h6AoXamds=; b=Mm2cggNbyWoOE/sF6LsWFkU+E3XezESdOgMvRSYi6xx CcQtuZyjQAKRolwLD1WPYG7+tfShV8aP5H1B4Etku3KWGCIDWBTz065ntFFvowGg CoacGJ3DHiMcFRXBR3ef7zJK1AET8ROsQQU2iypGuB/P7yU66YIQHxtZ3vXLyo9C Thq00e9HDTM6PqwacJ2V1OpxWlyOZNHRbf9XrubRo8OyzfKroaRCE93sUSjsmoDo SsPUZeLDS2KKGRzImgv7+sia3ywfkUvolbNIl+IRZXYBW1GPRChYdkuMtC2ez80Q u3uc3v4+0RZ+isxRuMA1iMNGQ76QsQdDJ8g4dHHLEXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=2DX0+9 6cq8E+MVLTCDpyypjc9WmrXvrtR9h6AoXamds=; b=piaPNvvBtVPeaOkkLFt9Fz A6rFc/SRVZlCGar00ZbrwRDytNWNMN3mi+pdk00ukspa9zq5Sf9iNpSAuBXpzhfs IUMeq5lv2+Yd2vTrmuaYUKCf6jF4BRG0B3KZwcNClse1cJwyFjBPXfO7XpdvCH1L hNFIjQGkA+ncx41da9uABghnZhfP4GRnFWKYvZfFU6B3NpumI+O4MOwox2Oxoyt/ iKDphF5JePp0ayi+yOgumu+C5Cvn02pXqunSXC0FJ0QeKNVGQ3wzL/oQZAC3rZQ9 t3uMKB3HMbY55F4LBbvZSt7WV9uwvYzTGuGs6hc83g73XYgkYY3XwwG/WJ65M9yA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeeggddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhmqeen ucggtffrrghtthgvrhhnpeeuueelkeevhffgjedulefhfeetgfdvjefgkeelfeduuefgie evvdevtefhgfehueenucffohhmrghinhepkhgvrhhnvghlrdhorhhgpdhlihhnuhigfhhr ohhmshgtrhgrthgthhdrohhrghenucfkphepkeefrdekiedrkeelrddutdejnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhho rghhrdgtohhm X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 55CF43066011; Mon, 4 May 2020 06:45:57 -0400 (EDT) Date: Mon, 4 May 2020 12:45:55 +0200 From: Greg KH To: kernelnewbies@kernelnewbies.org Subject: Re: What is the minimal set of firmware files I need for my hardware? Message-ID: <20200504104555.GA1571331@kroah.com> References: <20200504102635.psgndj4j7qk46g2b@NUX> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200504102635.psgndj4j7qk46g2b@NUX> X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org 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