From owner-freebsd-arch@FreeBSD.ORG Wed Jan 25 01:26:55 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AF1D16A41F for ; Wed, 25 Jan 2006 01:26:55 +0000 (GMT) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6ABED43D49 for ; Wed, 25 Jan 2006 01:26:54 +0000 (GMT) (envelope-from max@love2party.net) Received: from [84.163.226.78] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1F1ZQx1BRE-00009y; Wed, 25 Jan 2006 02:26:52 +0100 From: Max Laier Organization: FreeBSD To: freebsd-arch@freebsd.org Date: Wed, 25 Jan 2006 02:27:29 +0100 User-Agent: KMail/1.9.1 References: <43A8EE23.3010202@errno.com> In-Reply-To: <43A8EE23.3010202@errno.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3564629.9jZ3dugsRC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200601250227.35868.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Subject: Re: firmware loading X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2006 01:26:55 -0000 --nextPart3564629.9jZ3dugsRC Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 21 December 2005 06:54, Sam Leffler wrote: > Florent Thoumie and I have been working on some generic support for > loading firmware using kld's. You can find a proof of concept at: > > http://www.freebsd.org/~sam/firmware.tgz > > It has code to manage firmware images and load them on demand by > requesting a kld through standard facilities. Firmware is packaged > using a genfw program that's included. You can package one or more > firmware images in a single kld. I've packaged the iwi firmware as a > boot image in a single kld + kld's for each operating mode that have two > firmware images. The tarball also includes modified versions of the iwi > and ipw drivers to use the code. I tested iwi, Florent is working on ipw. > > If you're interested in this stuff feel free to pick it up; I've run out > of time to work on it. There are some potential issues with holding > locks over the linker calls and the genfw program could use some TLC and > probably a new name (plus the man page needs to be completed). > > It appears ispfw can be reworked to use this code. iwi and ipw > definitely can use it. Not sure who else can/should use it. An updated version of this work is here:=20 http://people.freebsd.org/~mlaier/firmware-20060125.tgz It includes the following changes: =2D Firmware module generation with awk and ld (no special tool required). = The=20 kmod.mk Makefile has been changed to support this and it's now very easy to= =20 build a firmware module. =2D Versioning =2D firmware_put() safe from any context =2D digi(4) converted. ATTENTION: this was done blindly - if you have digi= (4)=20 hardware I'd appreciate reports! =2D Plenty iwi(4) changes which make it work much better for me - though th= ere=20 are some rough edges still. =2D firmware(9) manpage To try it, just copy the contents of the tarball over src and apply the two= =20 patches in sys/conf to the respective files. The firmware support can be=20 loaded as a module itself, so testing is really easy. My plan is to import the basic firmware support on the weekend (if no=20 objections are raised). Drivers would be converted later after some more=20 testing. The aim of this is to avoid more and more handrolled sollutions. = I=20 didn't yet have time to look at ispfw, but will do that as well. So, any objections? Comments? Feedback? Thanks! =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart3564629.9jZ3dugsRC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBD1tQHXyyEoT62BG0RAlrcAJwOpsC++iOVgDh85UR0BB99gyDRyACeLBkq s2eHnWGtvhAmF8MqsYQ71vM= =uQgn -----END PGP SIGNATURE----- --nextPart3564629.9jZ3dugsRC--