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.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 048ADC3A5A9 for ; Mon, 4 May 2020 12:59:23 +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 AB70E206D9 for ; Mon, 4 May 2020 12:59:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K08Zv22s" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB70E206D9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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 1jVag7-0007mk-0B; Mon, 04 May 2020 08:58:35 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1jVag4-0007ma-KI for kernelnewbies@kernelnewbies.org; Mon, 04 May 2020 08:58:32 -0400 Received: by mail-wr1-x442.google.com with SMTP id s8so10491630wrt.9 for ; Mon, 04 May 2020 05:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=hf/zsx67s0oYDaZb+l4+B/o4GcEJN8dqniTMInpYBEo=; b=K08Zv22sppv0bZIza6PjLqcC6h3Odm2Kd047fMkWAoYYRwWw7wR2K4vMay4G5j8f6D dK17oDxrvQsCMMiGHqGvNmZmxOPwTDwlzp8wujEWureARFdHPtuwcNFMc9CHJmRY/IuI 9ni2xzP0SvhED5gVLRWpoSjkHTBkk60tV9pN9UICRUquV4OAe+SSG+UFCBkFnapcBML+ rziJxqtkUnmYeRCeN8T1q5a0rT+ICvqDXIWHrKDvYNyihyBqMnLI/05Ij80ubgQ/6bYT gnLy3l7TtyPN8yaLG3AgfxwooFuhKOCHyMJT29HPtq0Ie4LlY3dClENNljXE9XIpTJN0 YuDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=hf/zsx67s0oYDaZb+l4+B/o4GcEJN8dqniTMInpYBEo=; b=BjzYfnVA6NS3Xj1Pw4NPGGwv6bzqIIl9HUEYQjjCbGaoA3hEhu/ry1DBUTs7LsUtUL KOpbPSoH22rHaq7cWdG6EZN9TdMc/kHJma0d/0mCK/mJJ2XfgWZ/23oPctsc2I2rU2Gd woo1RoM/mM5h0ZVdSEWghzTQSTRY5q1bRDG/4B67CY5YXtwdA6aKihDxA6MqJ5ZGQVaG D2GISxBVWoXhtPBIckKeqQxzgWlWEWRMLUogaRK5Q8AKlbfGSlfdzpHU/v1evofMvecZ K3U91O+wueGI6anaH+s7MavXWQRBEHPupJovn3yvo9iI1EhIN9ABaAUsQVSbgBVe1+V2 RxwQ== X-Gm-Message-State: AGi0PuYcX3KTKNQijpuakg/XzTdG9scwMf4GkbWcmreMg4pqiFT+2HKl OrhVyNKb3mYlNidffVuco2+nJHL/zFM= X-Google-Smtp-Source: APiQypK9kKCB/3z+80Ta/7gmG8R845Vp1xhBFETCJ8pC8aTaVLUlpT/CQIB5u5HQFN2hCdbF0fQIwg== X-Received: by 2002:a5d:438c:: with SMTP id i12mr18937723wrq.14.1588597049681; Mon, 04 May 2020 05:57:29 -0700 (PDT) Received: from localhost ([213.57.108.231]) by smtp.gmail.com with ESMTPSA id o6sm20007796wrw.63.2020.05.04.05.57.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 05:57:28 -0700 (PDT) Date: Mon, 4 May 2020 15:56:40 +0300 From: Doron Behar To: kernelnewbies@kernelnewbies.org Subject: Re: What is the minimal set of firmware files I need for my hardware? Message-ID: <20200504125640.zfwp72h4j3pqthul@NUX> Mail-Followup-To: kernelnewbies@kernelnewbies.org References: <20200504102635.psgndj4j7qk46g2b@NUX> <20200504104555.GA1571331@kroah.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200504104555.GA1571331@kroah.com> 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 12:45:55PM +0200, Greg KH wrote: > 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. Thanks for replying greg, So I have the command `modinfo` available, should I just iterate _all_ the files in /usr/lib/modules/5.6.7/kernel ? For example: ``` $ modinfo /usr/lib/modules/5.6.7/kernel/net/ieee802154/ieee802154.ko.xz filename: /usr/lib/modules/5.6.7/kernel/net/ieee802154/ieee802154.ko.xz author: Dmitry Eremin-Solenikov description: IEEE 802.15.4 configuration interface license: GPL v2 depends: retpoline: Y intree: Y name: ieee802154 vermagic: 5.6.7 SMP mod_unload sig_id: PKCS#7 signer: sig_key: sig_hashalgo: unknown signature: ``` Doesn't seem informative regarding firmware files. Should I expect other .ko.xz files to give a line with `firmware: `? Plus, how do I know what modules does my system need and which it doesn't? Doron. _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies