Date: Sun, 15 Jul 2007 17:13:52 -0700 From: Sam Leffler <sam@errno.com> To: Maslan <maslanbsd@gmail.com> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>, Andrew Thompson <thompsa@freebsd.org> Subject: Re: loading a firmware image Message-ID: <469AB840.50103@errno.com> In-Reply-To: <319cceca0707151516h502fcf42hd7f68e2351120407@mail.gmail.com> References: <319cceca0707151335jd8aef89k635d7edb01d08691@mail.gmail.com> <20070715212757.GA17029@heff.fud.org.nz> <319cceca0707151516h502fcf42hd7f68e2351120407@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?469AB840.50103>