- From: Eric Hudson <ehudson_at_midlandhome.net>
- Date: Fri, 18 Feb 2005 10:02:23 -0600
Steve,
I can see the module loading on bootup and I verify its presence by doing
lsmod. But it still says cannot open /dev/comedi0 . Below is what I have in
/etc/modules.conf
alias adc cb_pcidas64
alias char-major-98 comedi
alias char-major-98-0 cb_pcidas64
#post-install cb_pcidas64
PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH;comedi_config /dev/comedi0
pci-das6034
post-install cb_pcidas64 \
/usr/local/sbin/comedi_config /dev/comedi0 cb_pcidas64 0,14;\ /bin/echo
"Configured /dev/comedi0 to /dev/comedi0 for cb_pcidas64"
This is the output from lspci -v :
0000:00:14.0 ff00: Measurement Computing: Unknown device 0063 (rev 02)
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at e6803000 (32-bit, non-prefetchable) [size=256]
I/O ports at e800 [size=256]
Memory at e6804000 (32-bit, non-prefetchable) [size=4K]
Memory at e6805000 (32-bit, non-prefetchable) [size=4K]
Thanks,
Eric
-----Original Message-----
From: comedi-admin_at_comedi.org [mailto:comedi-admin_at_comedi.org] On Behalf Of
Steve Sharples
Sent: Friday, February 18, 2005 3:14 AM
To: comedi_at_comedi.org
Subject: RE: comedi_config yields device not configured..
The modules.conf file (modprobe.conf for 2.6 kernels) tells modprobe how
to behave, it doesn't actually load the module, either at boot time or any
other. As Emmanuel said:
> Now a `modprobe adc` associate comedi0 to card on bus 4 and slot 9
If you want to get the module loaded automatically at boot time, add the
`modprobe adc' command to something like /etc/rc.local
Cheers,
Steve.
On Thu, 17 Feb 2005, Eric Hudson wrote:
> I have this in my /etc/modules.conf and I've after rebooting if I run
./info
> I get "cannot open /dev/comedi0" and I do this as root. In order to get
> ./info to work I have to issue comedi_config /dev/comedi0 cb_pcidas64
>
> Why is this? Shouldn't this autoload ?
>
> Thanks,
>
> Eric
>
> -----Original Message-----
> From: Emmanuel Mayssat [mailto:emmanuel_mayssat_at_lynceantech.com]
> Sent: Thursday, February 17, 2005 10:30 AM
> To: Eric Hudson
> Cc: comedi_at_comedi.org
> Subject: Re: comedi_config yields device not configured..
>
> You do not seem to configure the comedi module correctly
>
> On my computer, when I do lspci, I get:
> 04:09.0 Class ff00: Computer Boards PCI-DAS6402/16 (rev 02)
>
> Note the 4 and 9 at the beginning of the line.
>
> Now in /etc/modules.conf I have
>
> alias adc cb_pcidas64
>
> post-install cb_pcidas64 \
> /usr/local/sbin/comedi_config /dev/comedi0 cb_pcidas64 4,9;\
> /bin/echo "Configured /dev/comedi0 to /dev/comedi0 for cb_pcidas64"
>
> Now a `modprobe adc` associate comedi0 to card on bus 4 and slot 9
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
comedi mailing list
comedi_at_comedi.org
https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
Received on 2005-02-18Z16:02:23