Compile Toolchain with lxrt target

Hello,

I have some doubts about how to compile orocos toolchain. I'm trying to use bootstrap.sh script, as explained on Quick Start page, but it doesn't give me an option to use lxrt target, only gnulinux and xenomai, like this:

 the target operating system for Orocos/RTT (gnulinux or xenomai) [gnulinux] 
What am I suppose to do? Compile RTT separately?

thanks in advance,

Darlan

kernel log

I'm with problems to attach some file. Here is kernel log:

Oct 11 21:23:41 twil sudo: darlanioris : TTY=pts/5 ; PWD=/home/darlanioris/orocos_rtt/install/bin ; USER=root ; COMMAND=./deployer-lxrt Oct 11 21:23:42 twil kernel: Unable to handle kernel NULL pointer dereference at 00000000000004c8 RIP: Oct 11 21:23:42 twil kernel: [<ffffffff88263557>] :rtai_lxrt:rtai_lxrt_invoke+0xeec/0x1aed Oct 11 21:23:42 twil kernel: PGD 222ec067 PUD 410d067 PMD 0 Oct 11 21:23:42 twil kernel: Oops: 0000 [11] PREEMPT Oct 11 21:23:42 twil kernel: CPU 0 Oct 11 21:23:42 twil kernel: Modules linked in: rtai_pcican rtai_mbx rtai_sem rtai_lxrt rtai_hal sunrpc snd_pcm_oss snd_mixer_oss snd_seq_midi snd_seq_midi_event snd_seq iptable_filter ip_tables ip6table_filter ip6_tables x_tables ipv6 af_packet loop dm_mod snd_via82xx_modem snd_via82xx snd_ac97_codec ac97_bus rtc_cmos sr_mod snd_mpu401 parport_pc i2c_viapro i2c_core floppy snd_pcm shpchp rtc_core rtc_lib cdrom ns558 gameport parport snd_timer snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore pci_hotplug snd_page_alloc skge k8temp hwmon sg ehci_hcd sd_mod uhci_hcd usbcore edd ext3 mbcache jbd fan pata_via sata_via libata scsi_mod thermal processor Oct 11 21:23:42 twil kernel: Pid: 10458, comm: deployer-lxrt Not tainted 2.6.22-rtai #3 Oct 11 21:23:42 twil kernel: RIP: 0010:[<ffffffff88263557>] [<ffffffff88263557>] :rtai_lxrt:rtai_lxrt_invoke+0xeec/0x1aed Oct 11 21:23:42 twil kernel: RSP: 0018:ffff81002840de18 EFLAGS: 00010202 Oct 11 21:23:42 twil kernel: RAX: 00000000000002c0 RBX: ffffffff882718c0 RCX: ffffffff88271600 Oct 11 21:23:42 twil kernel: RDX: 000000000000002c RSI: 0000000000000000 RDI: 000000000002c808 Oct 11 21:23:42 twil kernel: RBP: 00007fff3e1fcff0 R08: 0000000000624270 R09: 0000000000000026 Oct 11 21:23:42 twil kernel: R10: 6d6e6f7269766e65 R11: ffffffff8824baee R12: 0000000000000001 Oct 11 21:23:42 twil kernel: R13: 0000000000623f80 R14: 0000000000000000 R15: 000000000061d400 Oct 11 21:23:42 twil kernel: FS: 00002b7570633c00(0000) GS:ffffffff804e2000(0000) knlGS:00000000f696b6d0 Oct 11 21:23:42 twil kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b Oct 11 21:23:42 twil kernel: CR2: 00000000000004c8 CR3: 0000000004e22000 CR4: 00000000000006e0 Oct 11 21:23:42 twil kernel: Process deployer-lxrt (pid: 10458, threadinfo ffff81002840c000, task ffff8100177841c0) Oct 11 21:23:42 twil kernel: Stack: 00000000849ca0d4 00007fff3e1fd260 0000000000000000 00002b756cba05b0 Oct 11 21:23:42 twil kernel: 0000000000000004 ffff8100120f8ba0 0000000000000002 0000000000030002 Oct 11 21:23:42 twil kernel: ffff81003e7a67c0 ffffffff80277efa ffff81000002c808 0000000000008241 Oct 11 21:23:42 twil kernel: Call Trace: Oct 11 21:23:42 twil kernel: [<ffffffff80277efa>] __dentry_open+0x130/0x1d9 Oct 11 21:23:42 twil kernel: [<ffffffff8027805a>] do_filp_open+0x2d/0x3d Oct 11 21:23:42 twil kernel: [<ffffffff802a1ddf>] inotify_inode_queue_event+0x4b/0xe8 Oct 11 21:23:42 twil kernel: [<ffffffff8824bb4a>] :rtai_hal:intercept_syscall_prologue+0x5c/0x115 Oct 11 21:23:42 twil kernel: [<ffffffff8021583a>] __ipipe_syscall_root+0x78/0xfa Oct 11 21:23:42 twil kernel: [<ffffffff803fa744>] __ipipe_syscall_root_thunk+0x35/0x6a Oct 11 21:23:42 twil kernel: [<ffffffff80209b77>] system_call+0x57/0x97 Oct 11 21:23:42 twil kernel: Oct 11 21:23:42 twil kernel: Oct 11 21:23:42 twil kernel: Code: 8b 04 25 c8 04 00 00 85 c0 79 07 31 ff e8 a4 b3 ff ff 48 8b Oct 11 21:23:42 twil kernel: RIP [<ffffffff88263557>] :rtai_lxrt:rtai_lxrt_invoke+0xeec/0x1aed Oct 11 21:23:42 twil kernel: RSP <ffff81002840de18> Oct 11 21:23:42 twil kernel: CR2: 00000000000004c8

Compile Toolchain with lxrt target

2011/10/10 <darlan [dot] ioris [..] ...>

> Hello,
>
> I have some doubts about how to compile orocos toolchain. I'm trying to use
> bootstrap.sh script, as explained on Quick Start page, but it doesn't give
> me an option to use lxrt target, only gnulinux and xenomai, like this:
>
> the target operating system for Orocos/RTT (gnulinux or xenomai)
> [gnulinux]
>
> What am I suppose to do? Compile RTT separately?
>
> thanks in advance,
>
> Darlan
>

Did you tried to answer "lxrt" even if not proposed ?

> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

Compile Toolchain with lxrt target

On Mon, Oct 10, 2011 at 8:42 PM, <darlan [dot] ioris [..] ...> wrote:
> Hello,
>
> I have some doubts about how to compile orocos toolchain. I'm trying to use bootstrap.sh script, as explained on Quick Start page, but it doesn't give me an option to use lxrt target, only gnulinux and xenomai, like this:
>
>  the target operating system for Orocos/RTT (gnulinux or xenomai) [gnulinux]
>
> What am I suppose to do? Compile RTT separately?

Pick 'gnulinux' when it asks for an option, then, before you build it, set:

export OROCOS_TARGET=lxrt

and (re)build again. Make sure to keep OROCOS_TARGET set in all
consoles, because
when unset, gnulinux is assumed again. Apart from that, there's no
reason why bootstrap.sh shouldn't offer lxrt as well.

For honesty, I must say that it has been more than a year ago since I
tested the lxrt target, it's also not part of my test farm.

Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Peter,I tried to do what you

Peter,

I tried to do what you said, I compile with gnulinux target, then set orocos targer to lxrt. I used this command to rebuild:

autoproj rebuild || tellfailbuild

nevertheless it compiled to gnulinux targed, because it assumed default value again.

So I tried to configure and compile for myself. I cleaned rtt/build directory and used ccmake to set new configurations (like orocos_target, rtai path ...) and generate a new Makefile. I run make and make install and it seemed to worked well. I repeat this for ocl, too. But when I try to run deployer-lxrt, it is killed by segmentation fault, like this:

/orocos_rtt/install/bin> sudo deployer-lxrt Killed

I have attached kernel log.

Is there something I'm doing wrong? Have someone been using lxrt target recentely? I'd like to know, because if not, I think I'll try xenomai for my project.

thanks! Darlan

Peter,I tried to do what you

On Wed, Oct 12, 2011 at 12:47 AM, <darlan [dot] ioris [..] ...> wrote:
> Peter,
>
> I tried to do what you said, I compile with gnulinux target, then set orocos targer to lxrt. I used this command to rebuild:
>
> autoproj rebuild || tellfailbuild
>
> nevertheless it compiled to gnulinux targed, because it assumed default value again.
>
> So I tried to configure and compile for myself. I cleaned rtt/build directory and used ccmake to set new configurations (like orocos_target, rtai path ...) and generate a new Makefile. I run make and make install and it seemed to worked well. I repeat this for ocl, too.
> But when I try to run deployer-lxrt, it is killed by segmentation fault, like this:
>
> /orocos_rtt/install/bin> sudo deployer-lxrt
> Killed

I've checked your kernel log... could you recompile RTT with this cmake setting:

cd rtt/build
cmake .. -DOROSEM_OS_LXRT_CHECK=TRUE
and re-make rtt and ocl.

Then you might get an error warning just before it gets killed.

Peter

debug

Peter,

I run deployer-lxrt with debug and I got this message:

darlanioris@twil:~/orocos-2.5/install/bin> sudo ./deployer-lxrt LXRT NOT INITIALISED IN THIS THREAD pid=21909,

    BUT TRIES TO INVOKE LXRT FUNCTION >>rtos_mutex_init<< ANYWAY
deployer-lxrt: /home/darlanioris/orocos-2.5/rtt/rtt/os/lxrt/fosi.c:162: rtos_mutex_init: Assertion `rt_agent() != 0' failed. Aborted

debug

I have the same problem, any ideas?