From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 15 21:41:40 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8585A16A402 for ; Sun, 15 Jul 2007 21:41:40 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id 33F7C13C481 for ; Sun, 15 Jul 2007 21:41:40 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 3FBEE1CC58; Mon, 16 Jul 2007 09:27:57 +1200 (NZST) Date: Mon, 16 Jul 2007 09:27:57 +1200 From: Andrew Thompson To: Maslan Message-ID: <20070715212757.GA17029@heff.fud.org.nz> References: <319cceca0707151335jd8aef89k635d7edb01d08691@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <319cceca0707151335jd8aef89k635d7edb01d08691@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: FreeBSD Hackers Subject: Re: loading a firmware image X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2007 21:41:40 -0000 On Sun, Jul 15, 2007 at 11:35:12PM +0300, Maslan wrote: > 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 ?? 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. Andrew