All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Driver testing procedure ?!
@ 2009-05-25 11:46 Cristian Axenie
  2009-05-25 21:28 ` Alexis Berlemont
  0 siblings, 1 reply; 21+ messages in thread
From: Cristian Axenie @ 2009-05-25 11:46 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 5389 bytes --]

Hello!
I've took a snapshot of the git tree from Alexis's when he added the PCIMIO
drivers. I've built my kernel and created an own usbflash filesystem. Now
what should I do to begin testing the drivers ?
The drivers are now kernel built-in and there is no comedi_config anymore.

The outputs from cmd_read and cmd_write are the following, and it seems that
is a problem with the file descriptors :

/usr/xenomai/bin # ./cmd_read
cmd_read: comedi_fill_desc failed (ret=-22)
*** glibc detected *** ./cmd_read: free(): invalid next size (fast):
0x10046008 ***
======= Backtrace: =========
/lib/libc.so.6[0xfd7b1ac]
/lib/libc.so.6[0xfd7cb8c]
/lib/libc.so.6(cfree+0xfc)[0xfd7d280]
./cmd_read[0x100022a0]
/lib/libc.so.6[0xfd22260]
/lib/libc.so.6[0xfd223ec]
======= Memory map: ========
00100000-00103000 r-xp 00100000 00:00 0          [vdso]
0fd04000-0fe40000 r-xp 00000000 08:01 16376      /lib/libc-2.6.so
0fe40000-0fe7f000 ---p 0013c000 08:01 16376      /lib/libc-2.6.so
0fe7f000-0fe81000 r--p 0013b000 08:01 16376      /lib/libc-2.6.so
0fe81000-0fe84000 rwxp 0013d000 08:01 16376      /lib/libc-2.6.so
0fe84000-0fe87000 rwxp 0fe84000 00:00 0
0fe97000-0feab000 r-xp 00000000 08:01 16499      /lib/libpthread-2.6.so
0feab000-0feeb000 ---p 00014000 08:01 16499      /lib/libpthread-2.6.so
0feeb000-0feec000 r--p 00014000 08:01 16499      /lib/libpthread-2.6.so
0feec000-0feed000 rwxp 00015000 08:01 16499      /lib/libpthread-2.6.so
0feed000-0feef000 rwxp 0feed000 00:00 0
0feff000-0ff02000 r-xp 00000000 08:01 47615
/usr/xenomai/lib/librtdm.so.1.0.0
0ff02000-0ff41000 ---p 00003000 08:01 47615
/usr/xenomai/lib/librtdm.so.1.0.0
0ff41000-0ff42000 rwxp 00002000 08:01 47615
/usr/xenomai/lib/librtdm.so.1.0.0
0ff52000-0ff5b000 r-xp 00000000 08:01 47591
/usr/xenomai/lib/libnative.so.3.0.0
0ff5b000-0ff9b000 ---p 00009000 08:01 47591
/usr/xenomai/lib/libnative.so.3.0.0
0ff9b000-0ff9c000 rwxp 00009000 08:01 47591
/usr/xenomai/lib/libnative.so.3.0.0
0ffac000-0ffb0000 r-xp 00000000 08:01 47586
/usr/xenomai/lib/libcomedi.so.0.0.0
0ffb0000-0ffef000 ---p 00004000 08:01 47586
/usr/xenomai/lib/libcomedi.so.0.0.0
0ffef000-0fff0000 rwxp 00003000 08:01 47586
/usr/xenomai/lib/libcomedi.so.0.0.0
10000000-10004000 r-xp 00000000 08:01 47292      /usr/xenomai/bin/cmd_read
10043000-10044000 rwxp 00003000 08:01 47292      /usr/xenomai/bin/cmd_read
10044000-10067000 rwxp 10044000 00:00 0          [heap]
48000000-4801d000 r-xp 00000000 08:01 16303      /lib/ld-2.6.so
4801d000-48020000 rw-p 4801d000 00:00 0
48020000-48023000 rw-s 00000000 08:01 31436      /dev/rtheap
48023000-48026000 rw-s 00000000 08:01 31436      /dev/rtheap
4805c000-4805d000 r--p 0001c000 08:01 16303      /lib/ld-2.6.so
4805d000-4805e000 rwxp 0001d000 08:01 16303      /lib/ld-2.6.so
bfdda000-bfdef000 rw-p bffeb000 00:00 0          [stack]
Aborted


/usr/xenomai/bin # ./cmd_write
cmd_write: comedi_get_desc failed (ret=-22)
*** glibc detected *** ./cmd_write: free(): invalid next size (fast):
0x10046008 ***
======= Backtrace: =========
/lib/libc.so.6[0xfd7b1ac]
/lib/libc.so.6[0xfd7cb8c]
/lib/libc.so.6(cfree+0xfc)[0xfd7d280]
./cmd_write[0x100021a0]
/lib/libc.so.6[0xfd22260]
/lib/libc.so.6[0xfd223ec]
======= Memory map: ========
00100000-00103000 r-xp 00100000 00:00 0          [vdso]
0fd04000-0fe40000 r-xp 00000000 08:01 16376      /lib/libc-2.6.so
0fe40000-0fe7f000 ---p 0013c000 08:01 16376      /lib/libc-2.6.so
0fe7f000-0fe81000 r--p 0013b000 08:01 16376      /lib/libc-2.6.so
0fe81000-0fe84000 rwxp 0013d000 08:01 16376      /lib/libc-2.6.so
0fe84000-0fe87000 rwxp 0fe84000 00:00 0
0fe97000-0feab000 r-xp 00000000 08:01 16499      /lib/libpthread-2.6.so
0feab000-0feeb000 ---p 00014000 08:01 16499      /lib/libpthread-2.6.so
0feeb000-0feec000 r--p 00014000 08:01 16499      /lib/libpthread-2.6.so
0feec000-0feed000 rwxp 00015000 08:01 16499      /lib/libpthread-2.6.so
0feed000-0feef000 rwxp 0feed000 00:00 0
0feff000-0ff02000 r-xp 00000000 08:01 47615
/usr/xenomai/lib/librtdm.so.1.0.0
0ff02000-0ff41000 ---p 00003000 08:01 47615
/usr/xenomai/lib/librtdm.so.1.0.0
0ff41000-0ff42000 rwxp 00002000 08:01 47615
/usr/xenomai/lib/librtdm.so.1.0.0
0ff52000-0ff5b000 r-xp 00000000 08:01 47591
/usr/xenomai/lib/libnative.so.3.0.0
0ff5b000-0ff9b000 ---p 00009000 08:01 47591
/usr/xenomai/lib/libnative.so.3.0.0
0ff9b000-0ff9c000 rwxp 00009000 08:01 47591
/usr/xenomai/lib/libnative.so.3.0.0
0ffac000-0ffb0000 r-xp 00000000 08:01 47586
/usr/xenomai/lib/libcomedi.so.0.0.0
0ffb0000-0ffef000 ---p 00004000 08:01 47586
/usr/xenomai/lib/libcomedi.so.0.0.0
0ffef000-0fff0000 rwxp 00003000 08:01 47586
/usr/xenomai/lib/libcomedi.so.0.0.0
10000000-10003000 r-xp 00000000 08:01 47293      /usr/xenomai/bin/cmd_write
10043000-10044000 rwxp 00003000 08:01 47293      /usr/xenomai/bin/cmd_write
10044000-10067000 rwxp 10044000 00:00 0          [heap]
48000000-4801d000 r-xp 00000000 08:01 16303      /lib/ld-2.6.so
4801d000-48020000 rw-p 4801d000 00:00 0
48020000-48023000 rw-s 00000000 08:01 31436      /dev/rtheap
48023000-48026000 rw-s 00000000 08:01 31436      /dev/rtheap
4805c000-4805d000 r--p 0001c000 08:01 16303      /lib/ld-2.6.so
4805d000-4805e000 rwxp 0001d000 08:01 16303      /lib/ld-2.6.so
bfdbe000-bfdd3000 rw-p bffeb000 00:00 0          [stack]
Aborted


Some hints ?

How should I test the validity of my solution? In fact how can I test that
the NI drivers are working properly now that are Xenomai built-in?

Best !

[-- Attachment #2: Type: text/html, Size: 7062 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Xenomai-help] Driver testing procedure ?!
@ 2009-06-16 15:10 Cristian Axenie
  2009-06-16 16:06 ` Alexis Berlemont
       [not found] ` <72cf3fb0906160852v46b1602fwe39b135d8b11ba97@domain.hid>
  0 siblings, 2 replies; 21+ messages in thread
From: Cristian Axenie @ 2009-06-16 15:10 UTC (permalink / raw)
  To: Alexis Berlemont, Alexis Berlemont, xenomai

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

Hi !
I've got a snapshot of the current git update but I still receive some
errors! Now the kernel is stable and doesn't crashes anymore but it seems
that there is a problem with attaching a driver !

Here's the output !

/usr/xenomai/sbin # ./comedi_config comedi0 comedi_pcimio
PCI: Unable to reserve mem region #1:1000@domain.hid for device 0000:00:10.0
Comedi: comedi_pcimio: pcmio_attach: error setting up mite
Comedi: comedi_assign_driver: call(drv->attach) failed (ret=-5)
comedi_config: comedi_snd_attach failed ret=-5


THe fake and the loop drivers are attaching properly !

Best !

[-- Attachment #2: Type: text/html, Size: 661 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2009-06-17 12:51 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-25 11:46 [Xenomai-help] Driver testing procedure ?! Cristian Axenie
2009-05-25 21:28 ` Alexis Berlemont
2009-05-25 21:35   ` Cristian Axenie
2009-05-25 22:10     ` Alexis Berlemont
     [not found]       ` <9c789a000905251516j5272ae7bpc60aea8fdc17d50c@domain.hid>
2009-05-25 22:32         ` Cristian Axenie
2009-05-26 13:55           ` Alexis Berlemont
2009-05-26 14:36             ` Cristian Axenie
2009-05-26 15:19               ` Cristian Axenie
2009-05-26 14:29                 ` Alexis Berlemont
2009-05-26 21:48               ` Philippe Gerum
     [not found]                 ` <9c789a000905261525q45cbaa3ag25855befde1cb130@domain.hid>
2009-05-26 22:31                   ` [Xenomai-help] Fwd: " Cristian Axenie
2009-05-26 22:35                     ` [Xenomai-help] " Cristian Axenie
2009-05-27 21:47                       ` Cristian Axenie
2009-05-28  6:38                         ` Alexis Berlemont
2009-06-04  0:23                           ` Alexis Berlemont
2009-06-04  8:20                             ` Cristian Axenie
2009-06-04  9:00                               ` Alexis Berlemont
  -- strict thread matches above, loose matches on Subject: below --
2009-06-16 15:10 Cristian Axenie
2009-06-16 16:06 ` Alexis Berlemont
     [not found] ` <72cf3fb0906160852v46b1602fwe39b135d8b11ba97@domain.hid>
     [not found]   ` <9c789a000906161348g43721abdu42aa2e727fcfd0cf@domain.hid>
2009-06-16 20:49     ` Cristian Axenie
     [not found]       ` <9c789a000906161402y53c793f9n93635f9e044e358d@domain.hid>
2009-06-17 12:51         ` Cristian Axenie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.