Re: subr_firmware: implementing firmware_path kenv support

From: Benjamin Lee McQueen <mcq_at_disroot.org>
Date: Wed, 04 Mar 2026 04:20:14 UTC
On 2026-02-27 22:13, Warner Losh wrote:
> On Thu, Feb 26, 2026 at 6:34 PM Benjamin Lee McQueen
> <mcq@disroot.org> wrote:
> 
>> hi freebsd-hackers@
>> 
>> i'm looking into the TODO in sys/kern/subr_firmware.c ~line 288
>> which
>> mentions
>> looping over a path list fetched from a firmware_path kenv that the
>> loader sets.
>> 
>> after looking through the src, it looks like the loader doesn't set
>> the
>> kenv yet
>> 
>> would an implementation require a loader change in stand/ or have i
>> misread
>> something?
>> 
>> also, before i start writing after the above has been clarified,
>> is this a desired feature?
>> what's the format for the path list? (colon seperated, or like
>> commas or
>> sometihng else)?
> 
> It likely is a desirable thing. We likely want it to default to the
> normal kernel loading
> path if this is not set.
> 
> Neither the kernel nor the loader use/define/set this, so I'd suggest
> making it as much
> we do for module_path.
> 
> Warner