DragonFly kernel List (threaded) for 2007-07
DragonFly BSD
DragonFly kernel List (threaded) for 2007-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: loading a firmware image


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 16 Jul 2007 09:36:45 -0700 (PDT)

: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@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]