- From: Jeff Shadley <pres_at_shadley.com>
- Date: Thu, 11 Sep 2003 15:02:01 -0500
Hi all,
Trying to configure RTAI for the first time and getting a message I don't
understand:
-> comedi_config /dev/comedi0 cb_pcidas
comedi.o not loaded
I loaded the modules for my board (DAS-1002) by hand and they load OK.
I have tried other combinations with identical results such as:
-> comedi_config /dev/comedi1 cb_pcidas
comedi.o not loaded
-> comedi_config /dev/comedi0 cb_pcidas 1,1
comedi.o not loaded
An lsmod reveals this:
Module Size Used by Tainted: P
rt_server 5820 0 (unused)
3c59x-rt 19812 0 (unused)
rtnet 36128 0 [rt_server 3c59x-rt]
cb_pcidas 12292 0 (unused)
8255 2048 0 [cb_pcidas]
comedi_fc 752 0 [cb_pcidas]
kcomedilib 4048 0 (unused)
comedi 25792 0 [cb_pcidas 8255 comedi_fc kcomedilib]
rtai_fifos 19912 1 [rt_server]
rtai_shm 6056 0 (unused)
rtai_sched 44024 0 [rt_server rtnet]
rtai 32000 3 [3c59x-rt rtnet comedi_fc kcomedilib comedi
Source for comedi_config:
rtai_fifos rtai_shm rtai_sched]
fn=argv[optind];
fd=open(fn,O_RDWR);
if(fd<0){
switch(errno){
case ENODEV:
fprintf(stderr,_("comedi.o not loaded\n")); <--------Naughty one.
break;
case ENXIO:
fprintf(stderr,_("device not configured\n"));
break;
case EPERM:
fprintf(stderr,_("modprobe problem\n"));
break;
default:
perror(fn);
break;
}
exit(1);
}
It seems that it's failing to open the file given in the first non-option
argument (/dev/comedi0). I guess I don't understand why it can't open it.
here's the device files:
-> ls -l /dev/come*
crw-rw-rw- 1 root root 98, 0 Sep 11 05:01 /dev/comedi0
crw-rw-rw- 1 root root 98, 1 Sep 11 05:01 /dev/comedi1
crw-rw-rw- 1 root root 98, 2 Sep 11 05:01 /dev/comedi2
crw-rw-rw- 1 root root 98, 3 Sep 11 05:01 /dev/comedi3
It seems to at least see the file. Asking for a non-existent file gives a
different error message.
-> comedi_config bogus_file cb_pcidas
comedi2: No such file or directory <---- Different message
If I do
-> chmod 000 /dev/comedi0
-> comedi_config /dev/comedi0 cb_pcidas
comedi.o not loaded (I get the same mesage)
-> chmod 777 /dev/comedi0
-> comedi_config /dev/comedi0 cb_pcidas
comedi.o not loaded (same message)
cat /proc/comedi reveals:
comedi version 0.7.66
format string: "%2d: %-20s %-20s %4d",i,driver_name,board_name,n_subdevices
no devices
cb_pcidas:
cb_pcidas
8255:
8255
depmod gives an interesting result:
depmod: *** Unresolved symbols in
/lib/modules/2.4.20-rthal5/comedi/comedi/drivers/dt2814.o
depmod: *** Unresolved symbols in
/lib/modules/2.4.20-rthal5/comedi/comedi/drivers/dt282x.o
depmod: *** Unresolved symbols in
/lib/modules/2.4.20-rthal5/comedi/comedi/drivers/pcl816.o
depmod: *** Unresolved symbols in
/lib/modules/2.4.20-rthal5/comedi/comedi/drivers/pcl818.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-rthal5/rtai/lock_task.o
depmod: *** Unresolved symbols in
/lib/modules/2.4.20-rthal5/rtai/lock_thread.o
depmod: *** Unresolved symbols in
/lib/modules/2.4.20-rthal5/rtai/rtai_sched_mup.o
depmod: *** Unresolved symbols in
/lib/modules/2.4.20-rthal5/rtai/rtai_sched_smp.o
Is that a clue?
Appreciate the help.
-Jeff Shadley
jeff_at_shadley.com
Received on 2003-09-11Z19:02:01