Re: How to read a file from a device driver?

2000-03-20 Thread Darrell Anderson
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

Re: How to read a file from a device driver?

2000-03-20 Thread Gary T. Corcoran
Darrell, 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

Re: How to read a file from a device driver?

2000-03-19 Thread Andrzej Bialecki
On Fri, 17 Mar 2000, Alfred Perlstein wrote: * Matthew N. Dodd [EMAIL PROTECTED] [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

Re: How to read a file from a device driver?

2000-03-18 Thread Daniel C. Sobral
Wes Peters wrote: Can you repackage the binary as a data-only kld, with a couple of public symbols wrapping the beginning and end of the binary, or a couple of symbols with start and length? You could then have the loader pre- load the .ko at boot time. As a matter of fact, there is no

How to read a file from a device driver?

2000-03-17 Thread Gary T. Corcoran
Can someone please tell me how I can read a file from a device driver in FreeBSD? I need to download 2 or 3 relatively-large code files to my device, choosing from amongst several different files depending on which mode I'm operating in. Therefore compiling-in the code is not a reasonable

Re: How to read a file from a device driver?

2000-03-17 Thread Gary T. Corcoran
Alfred, Can someone please tell me how I can read a file from a device driver in FreeBSD? I need to download 2 or 3 relatively-large code files to my device, choosing from amongst several different files depending on which mode I'm operating in. Therefore compiling-in the code is not

Re: How to read a file from a device driver?

2000-03-17 Thread Alfred Perlstein
* Gary T. Corcoran [EMAIL PROTECTED] [000317 20:54] wrote: Alfred, Can someone please tell me how I can read a file from a device driver in FreeBSD? I need to download 2 or 3 relatively-large code files to my device, choosing from amongst several different files depending on

Re: How to read a file from a device driver?

2000-03-17 Thread Matthew N. Dodd
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

Re: How to read a file from a device driver?

2000-03-17 Thread Kenneth D. Merry
On Fri, Mar 17, 2000 at 23:59:28 -0500, Matthew N. Dodd 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,

Re: How to read a file from a device driver?

2000-03-17 Thread Wes Peters
"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

Re: How to read a file from a device driver?

2000-03-17 Thread Gary T. Corcoran
"Matthew N. Dodd" 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

Re: How to read a file from a device driver?

2000-03-17 Thread Alfred Perlstein
* Gary T. Corcoran [EMAIL PROTECTED] [000317 21:46] wrote: "Matthew N. Dodd" 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

Re: How to read a file from a device driver?

2000-03-17 Thread Matthew N. Dodd
On Sat, 18 Mar 2000, Gary T. Corcoran wrote: Ugh. This isn't the answer I was looking for... :-( ;-) I can do this in Windows (the original driver), I can do this in Linux (our new port) via a slight kluge which temporarily fiddles with the segment pointers (via standard system routines) to

Re: How to read a file from a device driver?

2000-03-17 Thread Mark Newton
On Fri, Mar 17, 2000 at 11:00:08PM -0500, Gary T. Corcoran wrote: Can someone please tell me how I can read a file from a device driver in FreeBSD? I need to download 2 or 3 relatively-large code files to my device, choosing from amongst several different files depending on which mode