On 03-Apr-2002 Poul-Henning Kamp wrote:
> In message <[EMAIL PROTECTED]>, "Kreider, Carl"
> write
> s:
>>
>>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?
> 
> Don't even think about it.
> 
> At the time your driver is probed/attached, there is no filesystems
> mounted yet.
> 
> Best suggestion is to use an ioctl to download the data from
> userland.

Or load the firmware using kldload or from the loader using a type string
similar to the way we do MFS root filesystems.

-- 

John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to