<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in extract-fwblobs</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>35dac71c - scripts: add script to extract built-in firmware blobs</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/extract-fwblobs#35dac71c</link>
        <description>scripts: add script to extract built-in firmware blobsThere is currently no tool to extract a firmware blob that is built-inon vmlinux to the best of my knowledge.  So if we have a kernel imagecontaining the blobs, and we want to rebuild the kernel with some debugpatches for example (and given that the image also has IKCONFIG=y), wecurrently can&apos;t do that for the same versions for all the firmwareblobs, _unless_ we have exact commits of linux-firmware for thespecific versions for each firmware included.Through the options CONFIG_EXTRA_FIRMWARE{_DIR} one is able to build akernel including firmware blobs in a built-in fashion.  This is usuallythe case of built-in drivers that require some blobs in order to workproperly, for example, like in non-initrd based systems.Add hereby a script to extract these blobs from a non-stripped vmlinux,similar to the idea of &quot;extract-ikconfig&quot;.  The firmware loader interfacesaves such built-in blobs as rodata entries, having a field for the FWname as &quot;_fw_&lt;module_name&gt;_&lt;firmware_name&gt;_bin&quot;; the tool extracts filesnamed &quot;&lt;module_name&gt;_&lt;firmware_name&gt;&quot; for each rodata firmware entrydetected.  It makes use of awk, bash, dd and readelf, pretty standardtooling for Linux development.With this tool, we can blindly extract the FWs and easily re-add themin the new debug kernel build, allowing a more deterministic testingwithout the burden of &quot;hunting down&quot; the proper version of eachfirmware binary.Link: https://lkml.kernel.org/r/20250120190436.127578-1-gpiccoli@igalia.comSigned-off-by: Guilherme G. Piccoli &lt;gpiccoli@igalia.com&gt;Suggested-by: Thadeu Lima de Souza Cascardo &lt;cascardo@igalia.com&gt;Reviewed-by: Thadeu Lima de Souza Cascardo &lt;cascardo@igalia.com&gt;Cc: Danilo Krummrich &lt;dakr@kernel.org&gt;Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;Cc: Luis Chamberalin &lt;mcgrof@kernel.org&gt;Cc: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Cc: Nathan Chancellor &lt;nathan@kernel.org&gt;Cc: Nicolas Schier &lt;nicolas@fjasle.eu&gt;Cc: &quot;Rafael J. Wysocki&quot; &lt;rafael@kernel.org&gt;Cc: Russ Weight &lt;russ.weight@linux.dev&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;

            List of files:
            /linux-6.15/scripts/extract-fwblobs</description>
        <pubDate>Mon, 20 Jan 2025 19:04:26 +0000</pubDate>
        <dc:creator>Guilherme G. Piccoli &lt;gpiccoli@igalia.com&gt;</dc:creator>
    </item>
</channel>
</rss>
