Re: Configuring Comedi-0.7.70

We are using comedi to address two boards (ni_pcidio and daqboard2000) using a 
commercial process control software. I just went over the procedure to get it 
working on SuSE 10.0. The ni_pcidio is working, the daq we haven't tested 
yet. Here is what I do:

1. Prepare the system
- install packages kernel-source, make and automatically
  selected depending packages
- install package ncurses-devel (needed for make menuconfig)
- run online update to bring installed packages to current level
- reboot in case the kernel got updated
- become root ("su")
- copy configuration of currently running kernel to source tree:
  "zcat /proc/config.gz > /usr/src/linux/.config"
- "cd /usr/src/linux"
- "make menuconfig", don't change anything, just exit
  with save configuration

1a. compile and install kernel
- compile kernel:
  "make clean"
  "make bzImage"
- compile kernel modules:
  "make modules"
- install kernel:
  "cp /boot/vmlinuz /boot/vmlinuz.old"
  "cp arch/i386/boot/bzImage /boot/vmlinuz"
- install modules:
  "make modules_install"
- install new System.map:
  "cp System.map /boot/"
- clean up (not required, but saves space):
  "make clean"
- add line for old kernel in /boot/grub/menu.lst:
  title Old Kernel
    kernel (hd0,1)/boot/vmlinuz.old root=/dev/hdc2 vga=0x317 splash=silent 
desktop showopts
    initrd (hd0,1)/boot/initrd
- shut down the computer and reboot with the new kernel

2. Compile/install comedi kernel modules (cvs snapshot)
- unpack comedi to a location of your choice, you don't need to
  be root for this: "tar xvfz comedi.tar.gz"
- as root, descend into the unpacked directory: "cd comedi/"
- create configuration files: "./autogen.sh"
- configure the sources without pcmcia: "./configure --disable-pcmcia"
- "make" to compile everything
- "make install" to install the comedi kernel modules
- "depmod -a" to create module dependencies
- "make dev" to created devices

3. Compile/install comedi userspace library
- unpack comedi library: "tar xvfz comedilib.tar.gz"
- as root, descend into the unpacked directory: "cd comedilib/"
- create configuration files: "./autogen.sh"
- configure the sources: "./configure --disable-pcmcia"
- "make" to compile everything
- "make install"

4. Load the comedi driver for the ni_pcidio board
- as root, load the pcidio kernel module: "/sbin/modprobe ni_pcidio"
- "/usr/local/sbin/comedi_config /dev/comedi0 ni_pcidio"
- test that the kernel module is loaded correctly: "lsmod"
  you should get something like
    Module                  Size  Used by    Not tainted
  ... other entries ...
ni_pcidio               7936  0
mite                    7812  1 ni_pcidio
8255                    4608  2 daqboard2000,ni_pcidio
comedi                 26516  3 daqboard2000,ni_pcidio,8255
  ... other entries ...



On Thursday 03 November 2005 13:06, you wrote:
> Thank you for answering.
>
> I didn't make anything in the kernel. I just installed the I/O card.
> What should make?
> Is it necessary compile the kernel again, or is it enough to compile the
> modules?
> Which are the steps that I should do to install the plate Advantech PCM3730
> in the pc104 with the red hat 7.3 (kernel 2.4.28-3)?
>
> Thank you
>
> >From: Wolfgang Braun <braun_at_pdi-berlin.de>
> >Reply-To: braun_at_pdi-berlin.de
> >To: comedi_at_comedi.org
> >Subject: Re: Configuring Comedi-0.7.70
> >Date: Thu, 3 Nov 2005 12:09:50 +0100
> >
> >Did you run
> >depmod -a
> >as root after installing the kernel modules?
> >
> >On Thursday 03 November 2005 11:43, Pedro Serra wrote:
> > > Hi
> > >
> > > I've compiled and installed the comedi-0.7.70 and comedilib-0.7.19 whit
> > > success. When I configure my board (Advantech PCM 3730)
> > >
> > > >>/sbin/modprobe comedi
> > >
> > > The output is:
> > >
> > > /lib/modules/2.4.18-3/comedi/comedi.o : unresolved symbol
> > > register_chrdev_R02ca188e
> > > /lib/modules/2.4.18-3/comedi/comedi.o : unresolved symbol
> > > __pollwait_R88d2ac43
> > > /lib/modules/2.4.18-3/comedi/comedi.o : unresolved symbol
> > > fasync_helper_R3587b11f
> > > /lib/modules/2.4.18-3/comedi/comedi.o : unresolved symbol
> > > remove_proc_entry_Rb4cc32b6
> > > /lib/modules/2.4.18-3/comedi/comedi.o : unresolved symbol
> > > remove_wait_queue_R8b89dc43
> > > /lib/modules/2.4.18-3/comedi/comedi.o : unresolved symbol
> > > add_wait_queue_R4567cd50
> > > /lib/modules/2.4.18-3/comedi/comedi.o : unresolved symbol
> > > create_proc_entry_Ra60a30fa
> > > /lib/modules/2.4.18-3/comedi/comedi.o : unresolved symbol
> >
> >init_mm_R114872b3
> >
> > > /lib/modules/2.4.18-3/comedi/comedi.o : unresolved symbol
> > > kill_fsync_Re54149a8
> > > /lib/modules/2.4.18-3/comedi/comedi.o : unresolved symbol
> >
> >mem_map_R2d57b9df
> >
> > > /lib/modules/2.4.18-3/comedi/comedi.o : insmod
> > > /lib/modules/2.4.18-3/comedi/comedi.o failed
> > > /lib/modules/2.4.18-3/comedi/comedi.o : insmod comedi failed
> > >
> > >
> > >
> > > _______________________________________________
> > > comedi mailing list
> > > comedi_at_comedi.org
> > > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
> >
> >--
> >Dr. Wolfgang Braun
> >Paul-Drude-Institut
> >für Festkörperelektronik
> >Hausvogteiplatz 5-7
> >D-10117 BERLIN
> >
> >phone (downtown office): +49-(0)30-20377-366
> >phone (BESSY): +49-(0)30-6392-3436
> >fax (downtown): +49-(0)30-20377-201
> >fax (BESSY): +49-(0)30-6392-2969
> >mobile: +49-(0)160-99882210
> >
> >_______________________________________________
> >comedi mailing list
> >comedi_at_comedi.org
> >https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi

-- 
Dr. Wolfgang Braun
Paul-Drude-Institut
für Festkörperelektronik
Hausvogteiplatz 5-7
D-10117 BERLIN

phone (downtown office): +49-(0)30-20377-366
phone (BESSY): +49-(0)30-6392-3436
fax (downtown): +49-(0)30-20377-201
fax (BESSY): +49-(0)30-6392-2969
mobile: +49-(0)160-99882210 

Received on 2005-11-03Z12:15:17