From owner-freebsd-hackers Sun Mar 19 2:24:42 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mimer.webgiro.com (mimer.webgiro.com [212.209.29.5]) by hub.freebsd.org (Postfix) with ESMTP id B3B6437B6F2 for ; Sun, 19 Mar 2000 02:24:39 -0800 (PST) (envelope-from abial@webgiro.com) Received: by mimer.webgiro.com (Postfix, from userid 66) id 67F192DC07; Sun, 19 Mar 2000 11:29:00 +0100 (CET) Received: by mx.webgiro.com (Postfix, from userid 1001) id 7F8E17811; Sun, 19 Mar 2000 11:22:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mx.webgiro.com (Postfix) with ESMTP id 7A7C510E17; Sun, 19 Mar 2000 11:22:44 +0100 (CET) Date: Sun, 19 Mar 2000 11:22:44 +0100 (CET) From: Andrzej Bialecki To: Alfred Perlstein Cc: "Matthew N. Dodd" , "Gary T. Corcoran" , freebsd-hackers@FreeBSD.ORG Subject: Re: How to read a file from a device driver? In-Reply-To: <20000317212751.F14789@fw.wintelcom.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 17 Mar 2000, Alfred Perlstein wrote: > * Matthew N. Dodd [000317 21:22] wrote: > > On Fri, 17 Mar 2000, Gary T. Corcoran wrote: > > > I'm trying to initialize a network device, and I'm trying to download > > > code *into* my device from some binary system files. There is no > > > "user space" or user process, for that matter, to deal with at this > > > point. I just want to (at this step) open a file(s) directly from my > > > device driver, read the file(s), and download the relevant parts to my > > > device. > > > > There isn't really any clean way of doing this so most drivers that need > > to load firmware usually compile them in. :/ > > Now that I think about it, with FreeBSD's ability to dynamically load > and unload modules it would seem like using anything else would be > pretty annoying unless there's something else we don't understand here. I think if you combine the ability to load arbitrary chunks of data (from within bootloader) as modules, with similar auto-loading as in the vfs case, you'll have a good solution. Andrzej Bialecki // WebGiro AB, Sweden (http://www.webgiro.com) // ------------------------------------------------------------------- // ------ FreeBSD: The Power to Serve. http://www.freebsd.org -------- // --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message