loading microcode automatically while loading the driver
M. Warner Losh
imp at bsdimp.com
Mon Oct 17 17:33:35 PDT 2005
In message: <67beabb0510171712v1b1a5d18p15d5a866776392ec at mail.gmail.com>
Bharma Ji <bharmaji at gmail.com> writes:
: I need to run a script that loads microcode onto a chip after its driver has
: been loaded during startup. How can this be done? In essence - the
: requirement is to run a user specified script during startup(but only after
: the driver has been loaded)
There's a number of different options for this. By far the easiest is
to create a rc.d script and place it in /etc/rc.d or
/usr/local/etc/rc.d. You can load firmware and do whatever else you
need to do there.
Another alternative is to hook into devd and have a script run when
the driver attaches. This would have the advantage of running
automatically when you load the driver as well as at boot.
IF all you want to do is load firmware, you can use techniques similar
to isp and ispfw to place the firmware in a module that's loaded as
necessary to load the device's firmware.
Warner
More information about the freebsd-drivers
mailing list