ISA Board DAS1602 with ubuntu

226 views
Skip to first unread message

Lichtmacher

unread,
Jun 26, 2012, 11:43:07 AM6/26/12
to comed...@googlegroups.com
Hello,
I'm a newbie.
I have two old Metrabyte DAS1602 ISA Cards. Comedy seems to support them.
I'm using ubuntu lucid. There are deb-package shipped by ubuntu (libcomedi0 and comedi-source). Compiling comedi-source I got errors so I got by git the actual source from http://www.comedi.org/. After installing different packages (linux-headers-generic, git-core, autoconf, libtool, flex, bison) it was possible to compile.

What I did:

comedi:
./autogen.sh
./configure
make
sudo make install
sudo depmod -a
sudo make dev

comedilib:
./autogen.sh
./configure --with-udev-hotplug=/lib --sysconfdir=/etc
make
sudo make install


modprobe das16
(or line "das16" added to /etc/modules)

lsmod | grep das16
das16                  12674  0
comedi_fc               1757  1 das16
8255                    3870  1 das16
comedi                 32783  3 das16,comedi_fc,8255


But comedi_config is putting out an error:

sudo comedi_config -v /dev/comedi0 das-1602 0x300,5,3,0,0,0,0,0
comedi.o not loaded


ll /dev/come*
crw-rw-rw- 1 root root 98,  0 2012-06-26 17:33 /dev/comedi0
crw-rw-rw- 1 root root 98,  1 2012-06-26 17:33 /dev/comedi1
crw-rw-rw- 1 root root 98, 10 2012-06-26 17:33 /dev/comedi10
crw-rw-rw- 1 root root 98, 11 2012-06-26 17:33 /dev/comedi11
crw-rw-rw- 1 root root 98, 12 2012-06-26 17:33 /dev/comedi12
crw-rw-rw- 1 root root 98, 13 2012-06-26 17:33 /dev/comedi13
crw-rw-rw- 1 root root 98, 14 2012-06-26 17:33 /dev/comedi14
crw-rw-rw- 1 root root 98, 15 2012-06-26 17:33 /dev/comedi15
crw-rw-rw- 1 root root 98,  2 2012-06-26 17:33 /dev/comedi2
crw-rw-rw- 1 root root 98,  3 2012-06-26 17:33 /dev/comedi3
crw-rw-rw- 1 root root 98,  4 2012-06-26 17:33 /dev/comedi4
crw-rw-rw- 1 root root 98,  5 2012-06-26 17:33 /dev/comedi5
crw-rw-rw- 1 root root 98,  6 2012-06-26 17:33 /dev/comedi6
crw-rw-rw- 1 root root 98,  7 2012-06-26 17:33 /dev/comedi7
crw-rw-rw- 1 root root 98,  8 2012-06-26 17:33 /dev/comedi8
crw-rw-rw- 1 root root 98,  9 2012-06-26 17:33 /dev/comedi9


After reboot there are no device files:
sudo comedi_config -v /dev/comedi0 das-1602 0x300,5,3,0,0,0,0,0
/dev/comedi0: No such file or directory

ll /dev/come*
ls: Zugriff auf /dev/come* nicht möglich: Datei oder Verzeichnis nicht gefunden


Did I miss something. Any hints welcome!

Thank you Lichtmacher!

Ian Abbott

unread,
Jun 26, 2012, 2:04:37 PM6/26/12
to comed...@googlegroups.com
You didn't say which version of Ubuntu you were using, but the
"comedi-source" package is quite old. You're probably better off using
the latest git snapshot from www.comedi.org.

1.

Add a file "/etc/modprobe.d/comedi.conf" containing the line:

options comedi comedi_num_legacy_minors=4

That will reserve 4 /dev/comedi0 to /dev/comedi3 for use with devices
configured by the comedi_config program. Otherwise, there won't be any
/dev/comedi* devices when you load the comedi module.

2.

To avoid the kernel's pre-built comedi modules interfering with the
comedi modules you build and install yourself, you may need to change
the search order for kernel modules. The simplest way to do that is to
use 'dkms' which will install the modules under "/lib/modules/$(uname
-r)/updates/dkms" and have the additional benefit of rebuilding the
Comedi modules when the kernel is updated.

To use dkms, grab the latest comedi sources using git and then do:

sudo dkms install /path/to/comedi

where "/path/to/comedi" is the path to your comedi sources.

If you don't want to use dkms, you'll have to modify
/etc/depmod.d/ubuntu.conf and add the "comedi" subdirectory before
"updates".

(Note, I've updated the dkms.conf file in comedi git just before sending
this email and tested it with Ubuntu 11.10. I haven't tried the latest
Ubuntu 12.04 yet.)

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

Reply all
Reply to author
Forward
0 new messages