From owner-freebsd-hackers Sat Mar 18 11:22: 2 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 795F937B525 for ; Sat, 18 Mar 2000 11:21:59 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p12-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.141]) by peach.ocn.ne.jp (8.9.1a/OCN) with ESMTP id EAA29228; Sun, 19 Mar 2000 04:21:48 +0900 (JST) Message-ID: <38D3D245.F40CE729@newsguy.com> Date: Sun, 19 Mar 2000 04:00:21 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: Wes Peters Cc: "Gary T. Corcoran" , Alfred Perlstein , freebsd-hackers@FreeBSD.ORG Subject: Re: How to read a file from a device driver? References: <38D2FF48.CE3E396B@home.com> <20000317202018.C14789@fw.wintelcom.net> <38D3085D.37F31443@home.com> <38D3108F.2CDEF5BF@softweyr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 need to repackage it. Loader can load the file with a specific -t type, in which case the file is loaded as is. See, for instance, the splash screen code. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone bind them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message