Re: How to plug in a new driver??

On 17/05/2007 14:10, Askar Ibragimov wrote:
> Hi,
> 
> I have troubles now with plugging in some driver for Advantech PCI1751
> that I got along with the card, it is written for some older version
> of comedi.
> 
> The documentation about how to install a new driver is just obsolete
> (and has NOTHING to do wit actuall process now!). I had to find a
> correct recipe in a blog(!)
> http://pramode-ce.livejournal.com/5161.html
> 
> I did what that guy says (included two lines like this):
> 
> The driver source, `phoenix.c' should be placed under the
> comedi/drivers directory. Then, Makefile.am should be changed in two
> places:
>    * `phoenix.ko' should be added to module_PROGRAMS
>    * phoenix_ko_SOURCES should be set to `phoenix.c'
> then run autoreconf and configure.
> I got entries about the driver in Makefile but somehow, it still not
> compile. So my question is how I can get the driver being recognized
> by Comedi?

The blog entry is out of date.

The method is described fairly accurately (if rather tersely) in 
Documentation/comedi/Hardware_Driver.HOWTO as included in comedi-0.7.72 
and 0.7.73, section 3 - "Adding new drivers".  Don't follow the 
instructions *too* literally though, i.e. you don't need to call it 
'mydriver.c'!

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2007-05-18Z08:12:37