git: kern: Support loading firmware from preloaded images or filesystem files

Aaron LI aly at crater.dragonflybsd.org
Mon Oct 5 04:08:16 PDT 2026


commit bfa4ddf915d8c848c358328ac153510f3e577493
Author: LI Leding <lileding at gmail.com>
Date:   Wed Sep 30 12:44:17 2026 +0800

    kern: Support loading firmware from preloaded images or filesystem files
    
    Extend the firmware loading mechanisms to support two more methods:
    
    * preloaded images: load a firmware from an in-memory image preloaded by
      the boot loader.
    
    * firmware files: load a firmware by directly reading a firmware file
      from the filesystem. A new sysctl variable "hw.firmware_path" and a
      tunable of the same name is added to specify the search locations,
      which defaults to "/usr/local/lib/firmware;/usr/lib/firmware".
    
    The first method may be used to apply a CPU microcode update, and the
    second method is mainly used by modern GPU/WiFi drivers to load the
    required firmare directly from binary files (e.g., installed by a
    firmware package).
    
    Co-authored-by: Aaron LI <aly at aaronly.me>
    GitHub-PR: https://github.com/DragonFlyBSD/DragonFlyBSD/pull/55

Summary of changes:
 etc/mtree/BSD.usr.dist    |   2 +
 share/man/man9/firmware.9 | 169 +++++++++++++-------
 sys/kern/subr_firmware.c  | 381 +++++++++++++++++++++++++++++++++++++---------
 sys/kern/subr_module.c    |  20 ++-
 4 files changed, 438 insertions(+), 134 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bfa4ddf915d8c848c358328ac153510f3e577493


-- 
DragonFly BSD source repository


More information about the Commits mailing list