Date: Fri, 17 Mar 2000 22:13:51 -0700 From: Wes Peters <wes@softweyr.com> To: "Gary T. Corcoran" <garycor@home.com> Cc: Alfred Perlstein <bright@wintelcom.net>, freebsd-hackers@FreeBSD.ORG Subject: Re: How to read a file from a device driver? Message-ID: <38D3108F.2CDEF5BF@softweyr.com> References: <38D2FF48.CE3E396B@home.com> <20000317202018.C14789@fw.wintelcom.net> <38D3085D.37F31443@home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"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. 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. The only other way is to wait until the system is up and load the code into your driver through an ioctl. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ 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?38D3108F.2CDEF5BF>