Installing COMEDI
Generic instructions
- Compile the kernel modules
- "su"
- "cd /usr/src"
- Download linux-2.6.x.tar.bz2 from www.kernel.org
- "bzip2 -d -c linux-2.6.x.tar.bz2 | tar x"
- "cd linux-2.6.x"
- "make menuconfig". Choose "Load an Alternate Configuration File" and import your old kernel config. If you are compiling the first time you can probably import it from /boot.
- "make bzImage modules modules_install" and copy your bzImage to /boot (e.g.: "cp arch/i386/boot/bzImage /boot").
- Tell the boot loader that there's a new kernel ("/etc/lilo.conf" or "/boot/grub/menu.lst"). If you've got lilo don't forget to run it.
- reboot
- Download comedi.tar.gz.
- Unpack with "tar xzvf comedi.tar.gz".
- "cd comedi"
- "./configure"
- "make"
- "su"
- "make install"
- "depmod -a"
- Compile/Install comedilib (userspace)
- Download: comedilib.tar.gz
- "tar xzvf comedilib.tar.gz"
- "cd comedilib"
- If you've downloaded from the cvs type: "sh autogen.sh"
- For old hotplug: "./configure --enable-etc-hotplug --sysconfdir=/etc"
- For new udev: "./configure --with-udev-hotplug=/lib --sysconfdir=/etc"
- "make"
- "su"
- "make dev"
- "make install"
- "add /usr/local/lib to /etc/ld.so.conf"
- Testing:
- In comedilib there's a directory which is called "demo". Please try out:
- ./cmd (reads 1 sec of data)
- ./insn (reads 10 values from input 0)
- ./outp -s 1 2000 (outputs 1000 to the output 0)
- ./ao_waveform (10 Hz sine wave at output 0)
- In comedilib there's a directory which is called "demo". Please try out:
- Testing modules:
- Before doing a 'make install' just try to load it and test it. You can use the 'insmod' command to load themodules for testing, e.g.:
- cd /path/to/comedi/comedi/drivers
- insmod comedi.ko
- insmod 8255.ko
- insmod adv_pci_dio.ko
- Before doing a 'make install' just try to load it and test it. You can use the 'insmod' command to load themodules for testing, e.g.:
Back to the FrontPage