All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro
@ 2017-03-04  3:26 Nitin Kulkarni
  2017-03-04  4:30 ` [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro - part 2 Nitin Kulkarni
  2017-03-05 15:51 ` [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro Philippe Gerum
  0 siblings, 2 replies; 4+ messages in thread
From: Nitin Kulkarni @ 2017-03-04  3:26 UTC (permalink / raw)
  To: xenomai

Hi,

I have patched the Xenomai 3.0.3 to an Ostro XT linux distribution and after flashing the image and booting on the Intel Joule board I installed the Xenomai libraries natively. When I run the Latency test it gives this message and stops.


root@intel-corei7-64:~/Xenlib# /usr/xenomai/bin/latency
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
/usr/xenomai/bin/latency: pthread_create(latency): Operation not permitted

Although I am running as a root user it gives this error. I have not added any user group through the Kernel command line parameter xenomai.allowed_group?.
when I run the command

dmesg | grep -i xenomai


I get this from the Kernel log
[    0.000000] Command line: rootwait console=tty0 xenomai.sysheap_size=256 xenomai.state=enabled xenomai.smi=detect xenomai.smi_mask=1 console=ttyS2,115200 video=efifb maxcpus=4 noxsave reboot=efi kmemleak=off fsck.mode=skip no-ima ro root=PARTUUID=12345678-9abc-def0-0fed-cba987654321 rootfstype=ext4 installer
[    0.000000] Kernel command line: rootwait console=tty0 xenomai.sysheap_size=256 xenomai.state=enabled xenomai.smi=detect xenomai.smi_mask=1 console=ttyS2,115200 video=efifb maxcpus=4 noxsave reboot=efi kmemleak=off fsck.mode=skip no-ima ro root=PARTUUID=12345678-9abc-def0-0fed-cba987654321 rootfstype=ext4 installer
[    0.668993] [Xenomai] scheduling class idle registered.
[    0.669456] [Xenomai] scheduling class rt registered.
[    0.670016] I-pipe: head domain Xenomai registered.
[    0.672804] [Xenomai] Cobalt v3.0.3 (Groovy Cosmic Halo)

?
Please let me know how to handle this issue.

Regards,
Nitin









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

* [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro - part 2
  2017-03-04  3:26 [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro Nitin Kulkarni
@ 2017-03-04  4:30 ` Nitin Kulkarni
  2017-03-05 15:46   ` Philippe Gerum
  2017-03-05 15:51 ` [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro Philippe Gerum
  1 sibling, 1 reply; 4+ messages in thread
From: Nitin Kulkarni @ 2017-03-04  4:30 UTC (permalink / raw)
  To: xenomai

After the below things happened I added a regular user (nitin) to the allowed_group parameter file in /sys/module/xenomai/parameters/allowed_group


Then executed the latency test to get this message :


nitin@intel-corei7-64:/usr/bin$ /usr/xenomai/bin/latency
   0"000.000| WARNING: [main] cannot open RTDM device /dev/rtdm/memdev-private: Permission denied
   0"000.000| WARNING: [main] cannot map private umm area: Permission denied
   0"000.000| BUG in init_bind(): [main] (CONFIG_DEVTMPFS_MOUNT not enabled?)

?I must be doing something wrong. Please let me know.

- Nitin


________________________________
From: Nitin Kulkarni
Sent: Saturday, March 4, 2017 4:26 AM
To: xenomai@xenomai.org
Subject: Latency test fails after in a Xenomai patched Ostro XT linux distro


Hi,

I have patched the Xenomai 3.0.3 to an Ostro XT linux distribution and after flashing the image and booting on the Intel Joule board I installed the Xenomai libraries natively. When I run the Latency test it gives this message and stops.


root@intel-corei7-64:~/Xenlib# /usr/xenomai/bin/latency
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
/usr/xenomai/bin/latency: pthread_create(latency): Operation not permitted

Although I am running as a root user it gives this error. I have not added any user group through the Kernel command line parameter xenomai.allowed_group?.
when I run the command

dmesg | grep -i xenomai


I get this from the Kernel log
[    0.000000] Command line: rootwait console=tty0 xenomai.sysheap_size=256 xenomai.state=enabled xenomai.smi=detect xenomai.smi_mask=1 console=ttyS2,115200 video=efifb maxcpus=4 noxsave reboot=efi kmemleak=off fsck.mode=skip no-ima ro root=PARTUUID=12345678-9abc-def0-0fed-cba987654321 rootfstype=ext4 installer
[    0.000000] Kernel command line: rootwait console=tty0 xenomai.sysheap_size=256 xenomai.state=enabled xenomai.smi=detect xenomai.smi_mask=1 console=ttyS2,115200 video=efifb maxcpus=4 noxsave reboot=efi kmemleak=off fsck.mode=skip no-ima ro root=PARTUUID=12345678-9abc-def0-0fed-cba987654321 rootfstype=ext4 installer
[    0.668993] [Xenomai] scheduling class idle registered.
[    0.669456] [Xenomai] scheduling class rt registered.
[    0.670016] I-pipe: head domain Xenomai registered.
[    0.672804] [Xenomai] Cobalt v3.0.3 (Groovy Cosmic Halo)

?
Please let me know how to handle this issue.

Regards,
Nitin









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

* Re: [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro - part 2
  2017-03-04  4:30 ` [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro - part 2 Nitin Kulkarni
@ 2017-03-05 15:46   ` Philippe Gerum
  0 siblings, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2017-03-05 15:46 UTC (permalink / raw)
  To: Nitin Kulkarni, xenomai

On 03/04/2017 05:30 AM, Nitin Kulkarni wrote:
> After the below things happened I added a regular user (nitin) to the allowed_group parameter file in /sys/module/xenomai/parameters/allowed_group
> 
> 
> Then executed the latency test to get this message :
> 
> 
> nitin@intel-corei7-64:/usr/bin$ /usr/xenomai/bin/latency
>    0"000.000| WARNING: [main] cannot open RTDM device /dev/rtdm/memdev-private: Permission denied
>    0"000.000| WARNING: [main] cannot map private umm area: Permission denied
>    0"000.000| BUG in init_bind(): [main] (CONFIG_DEVTMPFS_MOUNT not enabled?)
> 
> ?I must be doing something wrong. Please let me know.

You need to tell udev to set appropriate permissions to the RTDM devices
via some rule file, so that users from this group may access those
devices, e.g.

# Xenomai real-time devices
SUBSYSTEM=="rtdm", MODE="0660", GROUP=<your-group>

-- 
Philippe.


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

* Re: [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro
  2017-03-04  3:26 [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro Nitin Kulkarni
  2017-03-04  4:30 ` [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro - part 2 Nitin Kulkarni
@ 2017-03-05 15:51 ` Philippe Gerum
  1 sibling, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2017-03-05 15:51 UTC (permalink / raw)
  To: Nitin Kulkarni, xenomai

On 03/04/2017 04:26 AM, Nitin Kulkarni wrote:
> Hi,
> 
> I have patched the Xenomai 3.0.3 to an Ostro XT linux distribution and after flashing the image and booting on the Intel Joule board I installed the Xenomai libraries natively. When I run the Latency test it gives this message and stops.
> 
> 
> root@intel-corei7-64:~/Xenlib# /usr/xenomai/bin/latency
> == Sampling period: 100 us
> == Test mode: periodic user-mode task
> == All results in microseconds
> /usr/xenomai/bin/latency: pthread_create(latency): Operation not permitted
> 
> Although I am running as a root user it gives this error. I have not added any user group through the Kernel command line parameter xenomai.allowed_group?.
> when I run the command
> 
> dmesg | grep -i xenomai
> 
> 
> I get this from the Kernel log
> [    0.000000] Command line: rootwait console=tty0 xenomai.sysheap_size=256 xenomai.state=enabled xenomai.smi=detect xenomai.smi_mask=1 console=ttyS2,115200 video=efifb maxcpus=4 noxsave reboot=efi kmemleak=off fsck.mode=skip no-ima ro root=PARTUUID=12345678-9abc-def0-0fed-cba987654321 rootfstype=ext4 installer
> [    0.000000] Kernel command line: rootwait console=tty0 xenomai.sysheap_size=256 xenomai.state=enabled xenomai.smi=detect xenomai.smi_mask=1 console=ttyS2,115200 video=efifb maxcpus=4 noxsave reboot=efi kmemleak=off fsck.mode=skip no-ima ro root=PARTUUID=12345678-9abc-def0-0fed-cba987654321 rootfstype=ext4 installer
> [    0.668993] [Xenomai] scheduling class idle registered.
> [    0.669456] [Xenomai] scheduling class rt registered.
> [    0.670016] I-pipe: head domain Xenomai registered.
> [    0.672804] [Xenomai] Cobalt v3.0.3 (Groovy Cosmic Halo)

v3.0.3 is outdated, with nasty issues. You should use the latest stable
code from: git://git.xenomai.org/xenomai-3.git, branch stable-3.0.x

> 
> ?
> Please let me know how to handle this issue.

Any message visible in the kernel log after enabling
CONFIG_XENO_OPT_DEBUG_COBALT?

-- 
Philippe.


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

end of thread, other threads:[~2017-03-05 15:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-04  3:26 [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro Nitin Kulkarni
2017-03-04  4:30 ` [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro - part 2 Nitin Kulkarni
2017-03-05 15:46   ` Philippe Gerum
2017-03-05 15:51 ` [Xenomai] Latency test fails after in a Xenomai patched Ostro XT linux distro Philippe Gerum

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.