Date: Mon, 17 Oct 2005 18:32:52 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: bharmaji@gmail.com Cc: freebsd-drivers@freebsd.org Subject: Re: loading microcode automatically while loading the driver Message-ID: <20051017.183252.78709558.imp@bsdimp.com> In-Reply-To: <67beabb0510171712v1b1a5d18p15d5a866776392ec@mail.gmail.com> References: <67beabb0510171712v1b1a5d18p15d5a866776392ec@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <67beabb0510171712v1b1a5d18p15d5a866776392ec@mail.gmail.com> Bharma Ji <bharmaji@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051017.183252.78709558.imp>