Date: Wed, 3 Apr 2002 10:32:35 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: "Kreider, Carl" <carl.kreider@windriver.com> Cc: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: read a file from a driver Message-ID: <Pine.BSF.4.21.0204031031050.26496-100000@InterJet.elischer.org> In-Reply-To: <20020403101614.A12363@indy.doctordesign.com>
next in thread | previous in thread | raw e-mail | index | archive | help
generally the answer is "You can't do that" BUT you could make a loadable module with the firmware, and load both the module and the driver before booting from the boot blocks.. then you can unload the firmware module after booting (or whenever) On Wed, 3 Apr 2002, Kreider, Carl wrote: > > I am working on an embedded project running FreeBSD, and my driver > for our custom card needs to load an FPGA with code. I know I can > compile the code in as data, but for ease of development, I would > rather fetch the FPGA code from a file. With a driver in kernel > space. Really. > > Can it be done? If so, how? open() and read() are obviously in libc > which rules them out. Do I have to write my own in assembler? > > -- > Carl Kreider > Wind River Doctor Design Services > 700 E Beardsley Suite 14A > Elkhart Indiana 46514 > 219-206-8050 x104 > carl.kreider@windriver.com ckreider@doctordesign.com > ckreider@acm.org ckreider@gte.net > ============================================================= > On two occasions I have been asked [by members of Parliament], 'Pray, Mr. > Babbage, if you put into the machine wrong figures, will the right answers > come out?' I am not able rightly to apprehend the kind of confusion of > ideas that could provoke such a question. > -- Charles Babbage > ============================================================= > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0204031031050.26496-100000>