Re: [Xenomai-core] Analogy DIO speed

2010-02-23 Thread Alexis Berlemont
Hi,

Stefan Schaal wrote:
> Hi Alexis,
> 
> On Feb 18, 2010, at 14:34, Alexis Berlemont wrote:
> 
>> I have some problems with
>>> implementing commands on my NI6259 so far.
>> Could you remind me what was the problem ?
> 
> See the print-outs below for the problem we have.
> 
> Thanks so much for looking into this!
> 
> -Stefan
> 
> 
> 
> 
> Using the cmd_write() function that you provide in analogy, we get the 
> following problem:
> 
I am currently trying to fix this bug, which is not that easy. I just
have one question (that I remember I have already asked you in some way,
but I just want to be sure):
Does this bug occur the very first time you launched cmd_write (I mean
after a reboot) ?

> r...@xenomai:/usr/src/xenomai/src/utils/analogy# ./cmd_write -v
> cmd_write: device analogy0 opened (fd=0)
> cmd_write: basic descriptor retrieved
>subdevices count = 14
>read subdevice index = 0
>write subdevice index = 1
> cmd_write: complex descriptor retrieved
> cmd_write: channel 0
>ranges count = 3
>range's size = 16 (bits)
> cmd_write: channel 1
>ranges count = 3
>range's size = 16 (bits)
> cmd_write: scan size = 4
> cmd_write: size to write  = 400
> cmd_write: command successfully sent
> cmd_write: triggering failed (ret=-32)
> 
> r...@xenomai:/usr/src/xenomai/src/utils/analogy# dmesg -c
> [133345.213865] Analogy: analogy_ni_pcimio: ni_mio_common: interrupt: 
> b_status=0002 m1_status=80a8
> [133345.332719] Analogy: analogy_ni_pcimio: ni_ao_wait_for_dma_load: timed 
> out waiting for dma load<3>Analogy: a4l_do_special_insn: execution of the 
> instruction failed (err=-32)
> 
> 
> Another problem we have is with the --mmap option:
> 
> r...@xenomai:/usr/src/xenomai/src/utils/analogy# ./cmd_write -v --mmap
> cmd_write: device analogy0 opened (fd=0)
> cmd_write: basic descriptor retrieved
>subdevices count = 14
>read subdevice index = 0
>write subdevice index = 1
> cmd_write: complex descriptor retrieved
> cmd_write: channel 0
>ranges count = 3
>range's size = 16 (bits)
> cmd_write: channel 1
>ranges count = 3
>range's size = 16 (bits)
> cmd_write: scan size = 4
> cmd_write: size to write  = 400
> cmd_write: buffer size = 65536 bytes
> cmd_write: a4l_mmap() failed (ret=-22)
> 
> 
> r...@xenomai:/usr/src/xenomai/src/utils/analogy# dmesg -c
> [133408.942998] Analogy: a4l_ioctl_mmap: mmap not allowed on this subdevice
> 
> 

Alexis.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Xenomai in Debian

2010-02-23 Thread Philippe Gerum
On Tue, 2010-02-23 at 17:52 +0100, Stefan Kisdaroczi wrote:
> Hi,
> 
> Am 14.02.2010 10:38, schrieb Philippe Gerum:
> > 
> > 
> > In the future, maybe we could simply provide a wrapper script accepting
> > sub-commands, such as "xeno latency, xeno sigtest" etc, to be put
> > into /usr/bin by distros, which would hide the actual location of those
> > binaries?
> >
> > In any case, thanks for your work so far. We probably need to discuss
> > the packaging issues on this list, so that we get both consistency and
> > usability in the future.
> > 
> > Gilles and Roland, if this is fine with you, I'll handle the liaison
> > role with upstream packagers, so please CC me explicitly on those mails.
> > We'll sort out this issue, it doesn't look that bad anyway.
> 
> Roland added a xeno wrapper to the debian.org xenomai package 2.5.1-3.
> 
> I synced now the debian/ directories from debian.org and xenomai.org:
>  - For debian.org I sent patches to the Debian bugtracker [1] [2].
>Another patch for dpkg-cross support [3] I sent to Roland privately.
>  - For xenomai.org I attached patches to this mail (against -2.5.git).
> 
> If both parties apply the patches the debian directories are in sync,
> except some minor differences in the debian/control file, see patch
> do-not-commit-please.patch. I would like to keep these changes out so
> that the xenomai.org packages are compatible with Debian 5.0 Lenny.
> The debian.org packages are for Debian 6.0 Squeeze.
> 

Merged into my queue (except the last one as mentioned). This will be
pushed upstream to Gilles for 2.5.2. Thanks.

> Thanks
> kisda
> 
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571099
> [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571104
> [3] 
> http://git.xenomai.org/?p=xenomai-2.5.git;a=commitdiff;h=5bcd18f714f4cbeaaac0cc4a08e6c9f375aa3b77


-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Xenomai in Debian

2010-02-23 Thread Stefan Kisdaroczi
Hi,

Am 14.02.2010 10:38, schrieb Philippe Gerum:
> 
> 
> In the future, maybe we could simply provide a wrapper script accepting
> sub-commands, such as "xeno latency, xeno sigtest" etc, to be put
> into /usr/bin by distros, which would hide the actual location of those
> binaries?
>
> In any case, thanks for your work so far. We probably need to discuss
> the packaging issues on this list, so that we get both consistency and
> usability in the future.
> 
> Gilles and Roland, if this is fine with you, I'll handle the liaison
> role with upstream packagers, so please CC me explicitly on those mails.
> We'll sort out this issue, it doesn't look that bad anyway.

Roland added a xeno wrapper to the debian.org xenomai package 2.5.1-3.

I synced now the debian/ directories from debian.org and xenomai.org:
 - For debian.org I sent patches to the Debian bugtracker [1] [2].
   Another patch for dpkg-cross support [3] I sent to Roland privately.
 - For xenomai.org I attached patches to this mail (against -2.5.git).

If both parties apply the patches the debian directories are in sync,
except some minor differences in the debian/control file, see patch
do-not-commit-please.patch. I would like to keep these changes out so
that the xenomai.org packages are compatible with Debian 5.0 Lenny.
The debian.org packages are for Debian 6.0 Squeeze.

Thanks
kisda

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571099
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571104
[3] 
http://git.xenomai.org/?p=xenomai-2.5.git;a=commitdiff;h=5bcd18f714f4cbeaaac0cc4a08e6c9f375aa3b77
From f8bfbe147654f9eb240b0e94d774185940444b8d Mon Sep 17 00:00:00 2001
From: Stefan Kisdaroczi 
Date: Tue, 23 Feb 2010 13:06:52 +0100
Subject: [PATCH] debian: copyright: fix typo and add project url

---
 debian/copyright |4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/debian/copyright b/debian/copyright
index 683e276..b3980df 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,6 +3,8 @@ On: Sat Mar 3 12:00 GMT 2007
 
 The primary author of the upstream package is Philippe Gerum.
 
+It was downloaded from http://www.xenomai.org/
+
 Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008 Philippe Gerum 
.
 Copyright (C) 2005 Dmitry Adamushko 
 Copyright (C) 2001,2003,2004,2005,2006,2008 Gilles Chanteperdrix 

@@ -11,7 +13,7 @@ Copyright (C) 2006 Wolfgang Grandegger 
 
 License:
 
-Xenmai is licensed under GPL version 2, the user space libraries are LGPL
+Xenomai is licensed under GPL version 2, the user space libraries are LGPL
 version 2.1.
 On Debian systems, the complete texts of the GNU General Public License v2
 and the GNU Lesser General Public License v2 can be found in the file
-- 
1.5.6.5

From d3827b9eda17d8332748767b2ae5282f5fcb283d Mon Sep 17 00:00:00 2001
From: Stefan Kisdaroczi 
Date: Tue, 23 Feb 2010 16:21:23 +0100
Subject: [PATCH] debian: libxenomai1: sync from debian.org

---
 debian/libxenomai1.lintian  |2 +-
 debian/libxenomai1.postinst |2 +-
 debian/libxenomai1.postrm   |2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/libxenomai1.lintian b/debian/libxenomai1.lintian
index 42a4149..0f6a514 100644
--- a/debian/libxenomai1.lintian
+++ b/debian/libxenomai1.lintian
@@ -1,2 +1,2 @@
 # no contained shared library names refer to "xenomai", therefore own name
-libxenomai1: package-name-doesnt-match-sonames libnative1 libpsos0 
libpthread-rt1 librtai0 librtdk0 librtdm1 libuitron0 libvrtx0 libvxworks1
+libxenomai1: package-name-doesnt-match-sonames libanalogy1 libnative3 libpsos0 
libpthread-rt1 librtai0 librtdk0 librtdm1 libuitron0 libvrtx0 libvxworks1
diff --git a/debian/libxenomai1.postinst b/debian/libxenomai1.postinst
index dfdaa46..8afc6fc 100644
--- a/debian/libxenomai1.postinst
+++ b/debian/libxenomai1.postinst
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 
 rm -f /etc/udev/rules.d/xenomai.rules
 ln -sf ../xenomai.rules /etc/udev/rules.d/xenomai.rules
diff --git a/debian/libxenomai1.postrm b/debian/libxenomai1.postrm
index a269ef5..3559eb5 100644
--- a/debian/libxenomai1.postrm
+++ b/debian/libxenomai1.postrm
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 
 case "$1" in
   purge | remove)
-- 
1.5.6.5

From c05d1fbfdd9360785b82be3d4437fe2b0e39b647 Mon Sep 17 00:00:00 2001
From: Stefan Kisdaroczi 
Date: Tue, 23 Feb 2010 16:28:39 +0100
Subject: [PATCH] debian: linux-patch-xenomai.README.Debian: sync from debian.org

---
 debian/linux-patch-xenomai.README.Debian |8 +---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/linux-patch-xenomai.README.Debian 
b/debian/linux-patch-xenomai.README.Debian
index a6aaa6b..3304bf5 100644
--- a/debian/linux-patch-xenomai.README.Debian
+++ b/debian/linux-patch-xenomai.README.Debian
@@ -4,12 +4,14 @@ Xenomai kernel patches in Debian
 With this package, you can patch and build kernels suitable for usage with
 Xenomai. This can be done with, e.g.:
 
-# cd /usr/src/linux-source-2.6.24
-# fakeroot make-kpkg --initr

Re: [Xenomai-core] [Adeos-main] I-pipe for 2.6.32 PPC

2010-02-23 Thread Richard Cochran
On Tue, Feb 23, 2010 at 11:07:57AM +0100, Philippe Gerum wrote:
> With ipipe-2.6.33 solely tracking mainline, only the few temporary trees
> with not-mainlined-yet features/support will pull from the DENX tree to
> get them.

Okay, its now clear to me. Thanks for the explanation.

Richard

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] [Adeos-main] I-pipe for 2.6.32 PPC

2010-02-23 Thread Philippe Gerum
On Tue, 2010-02-23 at 08:53 +0100, Richard Cochran wrote:
> Philippe,
> 
> After updating my ipipe git repo, I notice that you have done
> something new with ipipe-2.6.32-powerpc, back in January.  Previously,
> the Denx bits appeared as "squashed" commits. Now, the Denx commits
> appear individually.
> 
> I am curious, what's up with that?
> 

I wanted to rebase on the official DENX stable branch, since my work was
previously based on a dev snapshot, and I did this by fetching+merging
that branch into mine, based on v2.6.32.2; in that case, the changes
appear as individual commits I guess. I did not want to mess with jumbo
patches and the error-prone manual operations they entail.

With ipipe-2.6.33 solely tracking mainline, only the few temporary trees
with not-mainlined-yet features/support will pull from the DENX tree to
get them.

> Thanks,
> Richard
> 
> ___
> Adeos-main mailing list
> adeos-m...@gna.org
> https://mail.gna.org/listinfo/adeos-main


-- 
Philippe.



___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core