Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Development process for drivers

2 views
Skip to first unread message

Chris Double

unread,
Jun 16, 2006, 9:03:00 AM6/16/06
to
Once the code for driver is written and compiles successfuly, is the
correct process for running and testing it to use the service command
to bring it up?

service up /home/chris/mydriver/mydriver

And then shut it down when wanting to change it? Or is it sufficient to
rebuild it and use 'refresh'?

Is there anything else that needs to be configured for Minix to know
about the driver?

Do driver developers usually test their drivers seperate to running it
like the above (just running the process with stubs for
sending/receiving messages for example)?

Chris.
--
http://www.minixtips.com

Philip Homburg

unread,
Jun 16, 2006, 9:20:22 AM6/16/06
to
In article <1150462980.6...@h76g2000cwa.googlegroups.com>,

Chris Double <chris....@gmail.com> wrote:
>Once the code for driver is written and compiles successfuly, is the
>correct process for running and testing it to use the service command
>to bring it up?
>
> service up /home/chris/mydriver/mydriver

Drivers that provide block or character special devices also need the
'-dev' option.

>And then shut it down when wanting to change it? Or is it sufficient to
>rebuild it and use 'refresh'?

Yes.

>Is there anything else that needs to be configured for Minix to know
>about the driver?

For block and chracter specials you also need to tell FS about the major
device.

For ethernet drivers, you need to tell inet (using /etc/inet.conf)


--
That was it. Done. The faulty Monk was turned out into the desert where it
could believe what it liked, including the idea that it had been hard done
by. It was allowed to keep its horse, since horses were so cheap to make.
-- Douglas Adams in Dirk Gently's Holistic Detective Agency

tyskdi...@yahoo.se

unread,
Jun 19, 2006, 11:30:10 AM6/19/06
to
I found a good description of the driver writing process in this
document:

http://www.cs.vu.nl/~lmbronwa/es1371/

Chris Double

unread,
Jun 19, 2006, 4:24:07 PM6/19/06
to

That's exactly the type of information I was looking for. Thanks!

Chris.
--
http://www.minixtips.com

0 new messages