Installing COMEDI

Generic instructions

  1. Compile the kernel modules
    1. "su"
    2. "cd /usr/src"
    3. Download linux-2.6.x.tar.bz2 from www.kernel.org
    4. "bzip2 -d -c linux-2.6.x.tar.bz2 | tar x"
    5. "cd linux-2.6.x"
    6. "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.
    7. "make bzImage modules modules_install" and copy your bzImage to /boot (e.g.: "cp arch/i386/boot/bzImage /boot").
    8. 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.
    9. reboot
    10. Download comedi.tar.gz.
    11. Unpack with "tar xzvf comedi.tar.gz".
    12. "cd comedi"
    13. "./configure"
    14. "make"
    15. "su"
    16. "make install"
    17. "depmod -a"
  2. Compile/Install comedilib (userspace)
    1. Download: comedilib.tar.gz
    2. "tar xzvf comedilib.tar.gz"
    3. "cd comedilib"
    4. If you've downloaded from the cvs type: "sh autogen.sh"
      1. For old hotplug: "./configure --enable-etc-hotplug --sysconfdir=/etc"
      2. For new udev: "./configure --with-udev-hotplug=/lib --sysconfdir=/etc"
    5. "make"
    6. "su"
    7. "make dev"
    8. "make install"
    9. "add /usr/local/lib to /etc/ld.so.conf"
  3. 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)
  4. 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
      Use 'rmmod' to unload the module after testing, e.g. 'rmmod adv_pci_dio'.

Back to the FrontPage

ComediWiki: Installation instructions (last edited 2008-11-22 02:44:32 by huseyinkozan)