loading a firmware image
Sam Leffler
sam at errno.com
Mon Jul 16 00:32:47 UTC 2007
Maslan wrote:
>> The firmware is bundled in a seperate kernel module that can be loaded,
>> read and then unloaded. See src/sys/modules/iwifw/iwi_bss for an example
>> of the Makefile magic that creates the kld.
>
> if i wrote FIRMWS = filename:shortname:version in the Makefile
> then i should user firmware_get("shortname") rather than
> firmware_register(), is it right ??
>
>
firmware_register is emitted by the Makefile and used by the kld to
register the firmware image under "shortname". Once the image is
registered then other code in the kernel can get a reference to the
image with firmware_get. firmware(9) is a pretty complete description
of these facilities.
Sam
More information about the freebsd-hackers
mailing list