Rock/RTT error: Xenomai process memory not locked

Hello,

I am following the Rock tutorials on a gumstix (ARM9) platform with
Xenomai-2.6.0

While building Rock stable, the RTT compilation failed an error, which
was resolved as Bug 913 - Patch for xenomai 2.6.0.

http://bugs.orocos.org/show_bug.cgi?id=913

For some reason the RTT that the rock installer downloaded did not have
the patch, so I applied it manually and the compilation went smoothly.

When trying to run my component for the first time with ruby start.rb, I
got an error

Xenomai: binding failed: Operation not permitted.

So I did sudo root;source /path/to/rock/env.sh;ruby start.rb

This gave the error

root@gumstix:/home/sagar/rock/basics_tutorial/orogen/message_producer/scripts#
ruby start.rb
Orocos[WARN]: the RTT is built with MQ support, but creating message
queues fails with: Function not implemented
Xenomai: process memory not locked (missing mlockall?)
root@gumstix:/home/sagar/rock/basics_tutorial/orogen/message_producer/scripts#

How to resolve this?

Thanks in advance,
Sagar

Rock/RTT error: Xenomai process memory not locked

On 06/29/2012 12:38 AM, Sagar Behere wrote:
> Hello,
>
> I am following the Rock tutorials on a gumstix (ARM9) platform with
> Xenomai-2.6.0
>
> While building Rock stable, the RTT compilation failed an error, which
> was resolved as Bug 913 - Patch for xenomai 2.6.0.
>
> http://bugs.orocos.org/show_bug.cgi?id=913
>
> For some reason the RTT that the rock installer downloaded did not have
> the patch, so I applied it manually and the compilation went smoothly.
>
> When trying to run my component for the first time with ruby start.rb, I
> got an error
>
> Xenomai: binding failed: Operation not permitted.
>
> So I did sudo root;source /path/to/rock/env.sh;ruby start.rb
>
> This gave the error
>
> root@gumstix:/home/sagar/rock/basics_tutorial/orogen/message_producer/scripts#
> ruby start.rb
> Orocos[WARN]: the RTT is built with MQ support, but creating message
> queues fails with: Function not implemented
> Xenomai: process memory not locked (missing mlockall?)
> root@gumstix:/home/sagar/rock/basics_tutorial/orogen/message_producer/scripts#

The exact same error occurs even on an amd64 build with xenomai-2.6.0
+vanilla kernel-2.6.38-8 on debian squeeze.

Regards,
Sagar

> How to resolve this?
>
> Thanks in advance,
> Sagar