[Xenomai-help] help: rtdm library linkage error xenomai 2.6.0

2012-02-24 Thread teoman cengiz
Hello,

   My application uses rtdm library but I get weird linkage errors when
I try to compile the source code. Also I try to compile Xenomai  rtdm
examples, I get the same error.

  I use Xenomai 2.6.0, my gcc version is gcc (Ubuntu/Linaro
4.6.1-9ubuntu3) 4.6.1.
  Kernel:  2.6.38.8-xenomai-2.6

  Error Message:

  /usr/xenomai/lib/librtdm.so: undefined reference to `xeno_bind_skin_opt'
 collect2: ld returned 1 exit status

 What is my fault? Can you help me?

Regards.

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


Re: [Xenomai-help] help: rtdm library linkage error xenomai 2.6.0

2012-02-24 Thread Gilles Chanteperdrix
On 02/24/2012 02:01 PM, teoman cengiz wrote:
> Hello,
> 
>My application uses rtdm library but I get weird linkage errors when
> I try to compile the source code. Also I try to compile Xenomai  rtdm
> examples, I get the same error.
> 
>   I use Xenomai 2.6.0, my gcc version is gcc (Ubuntu/Linaro
> 4.6.1-9ubuntu3) 4.6.1.
>   Kernel:  2.6.38.8-xenomai-2.6
> 
>   Error Message:
> 
>   /usr/xenomai/lib/librtdm.so: undefined reference to `xeno_bind_skin_opt'
>  collect2: ld returned 1 exit status
> 
>  What is my fault? Can you help me?

You probably do not use xeno-config to obtain the compilation and link
flags, and you should.

-- 
Gilles.

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


Re: [Xenomai-help] Will ipipe-serial-debug work with a serial port on a PCI board ?

2012-02-24 Thread Philippe Gerum

On 02/23/2012 12:09 PM, Thierry Bultel wrote:

Hello,

I am working on a board that does not have genuine UARTs on it (only
soldered USBtoSerial converters) :-(
But it has a free minPci slot, and I was wondering if it would be
possible to perform serial debug
with serial ports on a PCI board.


In theory, the implementation of __ipipe_serial_debug() for the 8250 
should tap at a high level enough in the TTY infrastructure, to emit 
characters via the PCI serial core properly. In practice, ... I never tried.




Thanks for your advice
Regards,
Thierry Bultel



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



--
Philippe.

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


Re: [Xenomai-help] Freeze while running examples

2012-02-24 Thread Oscar Dávila
2012/2/23 Gilles Chanteperdrix 

> On 02/23/2012 11:43 PM, Oscar Dávila wrote:
> > 2012/2/14 Gilles Chanteperdrix 
> >
> >> On 02/14/2012 06:54 PM, Oscar Dávila wrote:
> >>> I compiled Xenomai succesfully, but when i try to run an example it
> >> freezes
> >>> / machine look up, any help will be apreciated, thanks.
> >>>
> >>> Here is some info about the system, its a Debian 6.0 with a
> >>> kernel 2.6.35.9, xenomai-2.6.0, the adeos
> >>> patch adeos-ipipe-2.6.35.9-x86-2.8-04.patch and Im also using the
> >>> nmi_watchdog=2 in the boot kernel options.
> >>
> >> Please reproduce the bug:
> >> - in text mode, so as to have the full bug trace;
> >> - with frame pointers enabled;
> >> - with highest kernel verbosity for BUGs and backtraces.
> >>
> >
> > How do i do this last point? i mean, i already compile kernel with frame
> > pointers enabled, also i already ran it in text mode, and i active all
> the
> > xenomai debug kernel options. i saw some other debug options in kernel
> > hacking, do i have to active those ones too?
>
> The stack trace looks fine. Could you show us the disassembly of the
> __ipipe_sync_stage function?
>
>
Here is what i think is the disassembly of the __ipipe_sync_stage function,
the full disassembly of the core.c file is in
http://odavilar.0x1fee3.org/xenomai/__ipipe_sync_stage

.globl __ipipe_sync_stage
.type   __ipipe_sync_stage, @function
__ipipe_sync_stage:
.LFB1334:
.loc 1 1247 0
.cfi_startproc
pushl   %ebp
.LCFI66:
.cfi_def_cfa_offset 8
movl%esp, %ebp
.cfi_offset 5, -8
.LCFI67:
.cfi_def_cfa_register 5
pushl   %edi
pushl   %esi
pushl   %ebx
subl$40, %esp
.LBB904:
.loc 1 1252 0
movl$ipipe_percpu_domain, %edx
.LVL259:
.LBB905:
#APP
# 1252 "kernel/ipipe/core.c" 1
movl %fs:this_cpu_off,%eax
# 0 "" 2
.LVL260:
#NO_APP
.LBE905:
.LBE904:
movl(%eax,%edx), %esi
.cfi_offset 3, -20
.cfi_offset 6, -16
.cfi_offset 7, -12
.LVL261:
.LBB906:
.loc 1 1253 0
movl$ipipe_percpu_darray, %edx
.LVL262:
.LBE906:
addl%edx, %eax
.LVL263:
imull   $5736, (%esi), %ecx
addl%ecx, %eax
.LVL264:
.LBB907:
.LBB908:
.loc 2 84 0
#APP
# 84 "/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/bitops.h"
1
bts $0,(%eax)
# 0 "" 2
#NO_APP
.LBE908:
.LBE907:
.loc 1 1256 0
.loc 1 1275 0
leal4(%esi), %ecx
movl%ecx, -32(%ebp)
.LBB909:
.LBB910:
.LBB911:
.file 11 
"/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/ipipe_32.h"
.loc 11 68 0
movl$__ipipe_tick_regs, %ebx
movl%ebx, -16(%ebp)
.LBE911:
.LBE910:
.LBE909:
.LBB917:
.loc 1 1296 0
movl%edx, -40(%ebp)
.LVL265:
.L148:
.LBE917:
.LBB919:
.LBB920:
.LBB921:
.LBB922:
.loc 2 127 0
leal16(%eax), %edx
.LVL266:
movl%edx, -20(%ebp)
.LBE922:
.LBE921:
.LBB924:
.LBB925:
leal8(%eax), %ecx
.LVL267:
movl%ecx, -24(%ebp)
.LBE925:
.LBE924:
.LBB927:
.LBB928:
leal4(%eax), %ebx
movl%ebx, -28(%ebp)
movl%esi, -48(%ebp)
.LVL268:
.L142:
.LBE928:
.LBE927:
.loc 1 648 0
movl4(%eax), %edx
.LVL269:
.loc 1 649 0
testl   %edx, %edx
je  .L140
.LBB930:
.LBB931:
.loc 11 54 0
#APP
# 54 
"/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/ipipe_32.h"
1
bsrl %edx, %edx
# 0 "" 2
.LVL270:
#NO_APP
.LBE931:
.LBE930:
.loc 1 653 0
movl8(%eax,%edx,4), %ecx
.LVL271:
.loc 1 654 0
testl   %ecx, %ecx
je  .L140
.LBB932:
.LBB933:
.loc 11 54 0
#APP
# 54 
"/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/ipipe_32.h"
1
bsrl %ecx, %ecx
# 0 "" 2
.LVL272:
#NO_APP
.LBE933:
.LBE932:
.loc 1 657 0
movl%edx, %ebx
.LVL273:
sall$5, %ebx
addl%ebx, %ecx
.LVL274:
.loc 1 658 0
leal4(%ecx), %edi
.LVL275:
movl(%eax,%edi,4), %ebx
.LVL276:
.loc 1 659 0
testl   %ebx, %ebx
je  .L140
.LBB934:
.LBB935:
.loc 11 54 0
#APP
# 54 
"/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/ipipe_32.h"
1
bsrl %ebx, %esi
# 0 "" 2
.LVL277:
#NO_APP
.LBE935:
.LBE934:
.loc 1 663 0
movl%ecx, %ebx
.LVL278:
sall$5, %ebx
movl%ebx, -36(%ebp)
movl-36(%ebp), %ebx
.LVL279:
addl%esi, %ebx
.LBB936:
.LBB923:
.loc 2 127 0
movl-20(%ebp), %esi
#APP
# 127 "/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/bitops.h"
1
btr %ebx,(%esi)
# 0 "" 2
#NO_APP
.LBE923:
.LBE936:
.loc 1 666 0
cmpl$0, (%eax,%edi,4)
jne .L141
.LBB937:
.LBB926:
.loc 2 127 0
movl-24(%ebp), %esi
#APP
# 127 "/home/odavilar/workspace