Re: [iwlwifi] fail to load firmware

From: Bjoern A. Zeeb <bz_at_freebsd.org>
Date: Wed, 29 Dec 2021 18:00:19 UTC
On Wed, 29 Dec 2021, Kyle Evans wrote:

> On Wed, Dec 29, 2021 at 11:36 AM Bjoern A. Zeeb <bz@freebsd.org> wrote:
>>
>> On Wed, 29 Dec 2021, Bjoern A. Zeeb wrote:
>>
>>> On Wed, 29 Dec 2021, Pete Wright via freebsd-wireless wrote:
>>>
>>> Hi Pete,
>>>
>>>> hello - i've got an intel device currently working under iwm:
>>>>
>>>> iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0xdd338000-0xdd33bfff at
>>>> device 20.3 on pci0
>>>> iwm0: hw rev 0x310, fw ver 34.3125811985.0, address
>>>>
>>>> after building CURRENT on the 28th and attempting to load if_iwlwifi via
>>>> /boot/loader.conf i get these errors when the firmware tries to load:
>>
>> I am sorry; I hadn't fully realised;  if you load the driver from
>> loader you'd have to load the fimrware manually as well as otherwise
>> there's no file system yet to load it from.
>>
>> Problem is the loader.conf syntax doesn't allow you to say,
>> foo-bar-baz_load="YES".
>>
>
> FWIW you can work around this, but it's ugly. We offer ${module}_name
> to specify the actual name of a module, so:
>
> my_fw_with_dashes_load="YES"
> my_fw_with_dashes_name="my-fw-with-dashes"

Oh, cool.  Thank you!  I didn't know that worked generally :-)
A lot better than any crude exec hacks I'd have used old-school way.

/bz

-- 
Bjoern A. Zeeb                                                     r15:7