loading a firmware image

Matthew Dillon dillon at apollo.backplane.com
Mon Jul 16 09:38:20 PDT 2007


:Hello,
:
:What is the best way to load a firmware image (microcode) ?
:AFAIK I've to load the image file first in memory then call
:firmware_register() but my problem is how should i load the image in
:memory ?? or should FIRMWS in Makefile be enough ???
:
:Thanks alot
:
:-- 
:System Programmer

    There are two ways to do it.  First you can just embed the firmware
    in the driver itself.  Second you can have the driver use the API
    in kern/kern_firmware.c to load the firmware.   Doing it the second
    way only works once root has been mounted so automating it in the
    driver would require creating a SYSINIT that runs after root has
    mounted or loading the driver with kldload after the system has booted.

					-Matt
					Matthew Dillon 
					<dillon at backplane.com>





More information about the Kernel mailing list