Subject: Re: Compiling and configuring the kernel for a device driver
To: David Brownlee <abs@anim.dreamworks.com>
From: Sera <esha@sharada.ncore.soft.net>
List: tech-pkg
Date: 11/04/1998 15:13:23
--------------4C2FEF7E6A4ED1902DE40600
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

David Brownlee wrote:

>         I'd love to help but I don't know what those files do under
> linux
>         - could you give more details?
>
>                 David/absolute
>

 I have netbsd/i386 and i'm beginning to write a device driver for a
JPEG card on PCI bus.  I picked up a doc from FreeBSD which gives a
brief description of  'Writing Free BSD Device Drivers' . But even
though I could find the files he specifies,  the entries in those files
(ex :  files.i386) are different. So I want to know the actual procedure
NedBSD follows, the files related to that, the syntax of the entries in
the files.

FreeBSD says :
(one of the links from which I picked up :-
winwww.ts.kiev.ua/tech/free/tutorials/ddwg/ddwg.html )

1.Adding to the driver list  - uses the file files.i386
2. Make room in conf.c - uses the file conf.c  (declare your entry
points here)
3.Adding your device to the config file. (add a line describing your
device and on which bus it is)
4. config the Kernel (before building the Kernel makes a compile tree)

Is this procedure holds good for NetBSD also ?  If so can you give me
some information or any doc or pointers to some sites ?


Please do help me
Sera







--------------4C2FEF7E6A4ED1902DE40600
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
David Brownlee wrote:
<BLOCKQUOTE TYPE=CITE>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I'd love
to help but I don't know what those files do under linux
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - could you give more details?

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
David/absolute
<BR>&nbsp;</BLOCKQUOTE>


<P>&nbsp;I have netbsd/i386 and i'm beginning to write a device driver
for a JPEG card on PCI bus.&nbsp; I picked up a doc from FreeBSD which
gives a brief description of&nbsp; 'Writing Free BSD Device Drivers' .
But even though I could find the files he specifies,&nbsp; the entries
in those files (ex :&nbsp; files.i386) are different. So I want to know
the actual procedure NedBSD follows, the files related to that, the syntax
of the entries in the files.

<P>FreeBSD says :
<BR>(one of the links from which I picked up :-&nbsp;&nbsp; <U><FONT COLOR="#3333FF">winwww.ts.kiev.ua/tech/free/tutorials/ddwg/ddwg.html
</FONT></U>)

<P>1.Adding to the driver list&nbsp; - uses the file files.i386
<BR>2. Make room in conf.c - uses the file conf.c&nbsp; (declare your entry
points here)
<BR>3.Adding your device to the config file. (add a line describing your
device and on which bus it is)
<BR>4. config the Kernel (before building the Kernel makes a compile tree)

<P>Is this procedure holds good for NetBSD also ?&nbsp; If so can you give
me some information or any doc or pointers to some sites ?
<BR>&nbsp;

<P>Please do help me
<BR>Sera
<BR>&nbsp;
<BR>&nbsp;
<BR>&nbsp;
<BR>&nbsp;
<BR>&nbsp;
<BR>&nbsp;</HTML>

--------------4C2FEF7E6A4ED1902DE40600--