- From: Ian Abbott <abbotti_at_mev.co.uk>
- Date: Mon, 03 Apr 2006 16:31:16 +0100
On 03/04/06 09:43, sepp hugo wrote: > Dear comedi-group ! > > I've tried to use the National Instruments DAQCard-6036E (PCMCIA) with the > comedi-drivers but unfortunatly I always get an Error / Segmentation fault > when trying to load the comedi module or after inserting the DAQ-Card (plug > and play)... > > Rtai and Comedi install without errors, but with a lot of warnings... > I use the pcmcia-cs package to identify the DAQ-card automatically > (module-dependencies seem to work, because rtai_hal, rtai_lxrt modules get > loaded after inserting card...) > > (rtai-tests work fine... ) > > System: > Pentium III, 128 Mb Ram > Linux-Kernel: 2.6.15.6 > (PCMCIA support is compiled into the kernel...) > Rtai: 3.3 (magma) cvs (28.3.06) > Comedi: cvs (28.3.06) > > > > dmesg after loading comedi-module / inserting card: > > I-pipe: Domain RTAI registered. > RTAI[hal]: <magma> mounted over IPIPE-NOTHREADS 1.2-01. > RTAI[hal]: compiled with gcc version 3.3.5 (Debian 1:3.3.5-13). > RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), > ISOL_ CPUS_MASK: 0). > PIPELINE layers: > c88ed180 9ac15d93 RTAI 200 > c038ff80 0 Linux 100 > RTAI[malloc]: vmalloced extent c8969000, size 2097152. > RTAI[malloc]: loaded (global heap size=2097152 bytes). > RTAI[sched_lxrt]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE). > RTAI[sched_lxrt]: hard timer type/freq = APIC/8333500(Hz); default timing > mode i s periodic; linear ordering of timed lists. > RTAI[sched_lxrt]: Linux timer freq = 250 (Hz), CPU freq = 666795000 hz. > RTAI[sched_lxrt]: timer setup = 998 ns, resched latency = 2943 ns. > comedi: version 0.7.70 - David Schleef <ds_at_schleef.org> > Unable to handle kernel NULL pointer dereference at virtual address 00000000 > printing eip: > c01f7a36 > *pde = 00000000 > Oops: 0000 [#1] > PREEMPT > Modules linked in: comedi rtai_lxrt rtai_hal ipv6 floppy pcspkr rtc 8139cp > via68 6a i2c_isa i2c_core via_agp tsdev mousedev via82cxxx 8139too mii > agpgart psmouse ide_cd cdrom unix > CPU: 0 > EIP: 0060:[<c01f7a36>] Not tainted VLI > EFLAGS: 00010216 (2.6.15.6-IPIPE-RTAI-28_03_06) > EIP is at vsnprintf+0x7a/0x3f4 > eax: 00000000 ebx: c3bdfe50 ecx: 00000000 edx: c3bdfde0 > esi: c3f2bf6c edi: c3bdfee0 ebp: c3f2a000 esp: c3f2bf18 > ds: 007b es: 007b ss: 0068 > Process modprobe (pid: 4182, threadinfo=c3f2a000 task=c772d050) > Stack: 00000084 c3bdfe63 c3bdfee0 c3bdfde0 fffffff4 c3bdfee0 c3f2a000 > c0268db2 > c3bdfe50 00000014 00000000 c3f2bf6c c3f2bf74 08051178 00000001 > c88be10d > c3bdfee0 00000000 00000000 06200000 00000000 c88ff411 00000000 > 656d6f63 > Call Trace: > [<c0268db2>] class_device_create+0x70/0x8e > [<c88be10d>] comedi_init+0x10d/0x18c [comedi] > [<c0133edc>] sys_init_module+0x96/0x23d > [<c0133efb>] sys_init_module+0xb5/0x23d > [<c0102fc8>] syscall_call+0x7/0xb > Code: 24 20 8b 44 24 24 8d 44 18 ff 89 44 24 04 89 d8 48 39 44 24 04 73 10 > c7 44 24 04 ff ff ff ff 89 da f7 da 89 54 24 24 8b 44 24 28 <80> 38 00 0f > 84 4a 03 00 00 8b 44 24 28 0f b6 00 3c 25 74 11 3b The parameters of class_device_create changed in 2.6.15, which is a bit suspicious, but Comedi was changed to cope with the changes. Are you sure Comedi is being built against the correct kernel sources? (Probably so, but I'm just checking!) One other thing you can try is to use the new '--enable-kbuild' option when running the ./configure script. Without this option I got lots of warnings about various functions not being defined, e.g. rt_printk. With the --enable-kbuild option those warnings disappeared and the modules loaded without any warnings or oops messages. I'm not that familiar with RTAI, but at least the modules loaded okay for me! -- -=( Ian Abbott _at_ MEV Ltd. E-mail: <abbotti_at_mev.co.uk> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
Received on 2006-04-03Z14:31:16