Hello,

In order to use a SDIO based bwfm device a "NVRAM" configuration file
will be needed besides the firmware file. This configuration file is
expected to be in the /etc/firmware directory, in the form of
 brcmfmac{chip}-sdio.txt OR brcmfmac{chip}-sdio.nvram

The need for this configuration file is not described in the man page.
However the device will not be usable without one and an error message
will be shown in the dmesg:
  "failed loadfirmware of file: brcmfmac{chip}-sdio.txt"

Can I suggest to below attached patch. 

I'm a bit unsure on how to indicate where the configuration file comes from:
Under Linux it is recommended that you read the NVRAM contents from
EFI, which I don't think is possible to do under OpenBSD

Hunting down the configuration file through your favorite search engine
can be a frustrating excercise, although you can find them
occasionally included in a windows driver or a linux distro.

Question: Are there plans to include the NVRAM files in bwfm_firmware
package?

Index: share/man/man4/bwfm.4
===================================================================
RCS file: /cvs/src/share/man/man4/bwfm.4,v
retrieving revision 1.10
diff -u -p -u -r1.10 bwfm.4
--- share/man/man4/bwfm.4       10 Nov 2019 14:10:41 -0000      1.10
+++ share/man/man4/bwfm.4       11 Mar 2020 15:41:49 -0000
@@ -77,10 +77,18 @@ driver can be configured at runtime with
 or on boot with
 .Xr hostname.if 5 .
 .Sh FILES
-The driver needs a firmware file which is loaded when the driver
-attaches.
+The 
+.Nm
+driver needs a firmware file which is loaded when the 
+.Nm
+driver attaches.
 A prepackaged version of the firmware can be installed using
 .Xr fw_update 1 .
+.Pp
+sdmmc connected devices need in addition a NVRAM configuration file,
+which is also loaded when the 
+.Nm
+driver attaches.
 .Sh EXAMPLES
 The following example scans for available networks:
 .Pp



Reply via email to