All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Leopold Palomo-Avellaneda <leo@alaxarxa.net>,
	"Xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Testing 3.0.6 (Was Re: Cannot initialize TLSF memory manager)
Date: Fri, 24 Nov 2017 13:22:01 +0100	[thread overview]
Message-ID: <c935cb9d-c25d-a23c-2e3b-f4f38599d247@xenomai.org> (raw)
In-Reply-To: <7a8fe24f-3db5-3b30-a080-d4207b61052d@alaxarxa.net>

On 11/24/2017 01:10 PM, Leopold Palomo-Avellaneda wrote:
> On 24/11/17 13:04, Philippe Gerum wrote:
>> On 11/24/2017 01:01 PM, Leopold Palomo-Avellaneda wrote:
>>> On 24/11/17 11:55, Philippe Gerum wrote:
>>>> On 11/24/2017 11:34 AM, Leopold Palomo-Avellaneda wrote:
>>>>> Hi (again)
>>>>>
>>>>> running cross-link I got that:
>>>>>
>>>>>>> with my user
>>>>>>>
>>>>>>> ./cross-link
>>>>>>> mem=0x7f0d630488e0, alloc_size=8192
>>>>>>> Init memory pool returns 1808 bytes
>>>>>>> Running after ...
>>>>>>> sysregd:
>>>>>>> create_directory_recursive("/var/run/xenomai/leopold.palomo/anon@19479"):
>>>>>>> Permission denied
>>>>>
>>>>> ....
>>>>>
>>>>>
>>>>> the permissions are:
>>>>> $ ls -la /var/run/xenomai/
>>>>> total 0
>>>>> drwxr-xr-x  3 root root  60 nov 23 16:03 .
>>>>> drwxr-xr-x 24 root root 860 nov 24 11:12 ..
>>>>> drwxr-xr-x  2 root root  40 nov 24 11:12 root
>>>>>
>>>>> so, IMHO this folder should belongs to xenomai group and permisions g+rw. Right?
>>>>
>>>> There is no such official "Xenomai" group, I mean this is only a
>>>> template in some rule file to illustrate the fact that one could
>>>> actually assign rt privileges to a user group, instead of running apps
>>>> as a sudoer. That could be any group you are willing to mention in the
>>>> xenomai.allowed_group kernel parameter on the kernel command line, or no
>>>> group at all. This is a matter of local installation.
>>>
>>> Ok, the debian package creates it. I have xenomai.allowed_group=113 in the grub.
>>> So, the packaging (installation should solve it).
>>>
>>>>>
>>>>> Changing the permissions manually solved it. It's something about the packaging
>>>>> or the library?
>>>>>
>>>>
>>>> This is not a library issue.
>>>
>>> Ok, mine. Packaging problem.
>>>
>>>>>
>>>>>>> leopold.palomo@bmm3 ~/xenomai/xenomai-3.0.6/system/demo$ sudo ./cross-link
>>>>>>> mem=0x7fc9e73f88e0, alloc_size=8192
>>>>>>> Init memory pool returns 1808 bytes
>>>>>>> Running after ...
>>>>>>> mem=0x7f2e146318e0, alloc_size=8192
>>>>>>> Init memory pool returns 1808 bytes
>>>>>>> Running after ...
>>>>>>> main : can't open /dev/rtdm/rtser0 (write), No such file or directory
>>>>>
>>>>>>
>>>>>> Not being able to open rtser0 is yet another kind of problem: the uart
>>>>>> driver is not up and running, so the devices were not created. crosslink
>>>>>> definitely needs such driver.
>>>>>
>>>>> Yes, I don't have rtser0 entry in /dev/rtdm/. Who does create it?
>>>>>
>>>>
>>>> Any RTDM driver from kernel/drivers/serial, depending on your platform.
>>>
>>> Well, I have /dev/rtdm/* entries but not that one. Is this normal?
>>>
>>
>> Do you have any RTDM-based serial driver enabled in Kconfig?
>>
> 
> xeno_16550A
> 
> I have all modules that I can.
> 
> <M> 16550A UART driver
>                               Hardware access mode (Any access mode)  ---> (X)
> Any access mode
> 
> [*] PCI board support
>                            [*]   Moxa PCI boards
> 
> CONFIG_XENO_OPT_RTDM_COMPAT_DEVNODE=y
> CONFIG_XENO_DRIVERS_AUTOTUNE=m
> 
> #
> # Serial drivers
> #
> CONFIG_XENO_DRIVERS_16550A=m

missing modprobe?

-- 
Philippe.


  reply	other threads:[~2017-11-24 12:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-23 12:10 [Xenomai] Cannot initialize TLSF memory manager Leopold Palomo-Avellaneda
2017-11-23 12:22 ` Philippe Gerum
2017-11-23 14:58   ` Leopold Palomo-Avellaneda
2017-11-23 15:04     ` Philippe Gerum
2017-11-23 15:08       ` Leopold Palomo-Avellaneda
2017-11-23 15:12         ` Philippe Gerum
2017-11-23 15:15           ` Leopold Palomo-Avellaneda
2017-11-23 15:29             ` Philippe Gerum
2017-11-24 10:34               ` [Xenomai] Testing 3.0.6 (Was Re: Cannot initialize TLSF memory manager) Leopold Palomo-Avellaneda
2017-11-24 10:55                 ` Philippe Gerum
2017-11-24 12:01                   ` Leopold Palomo-Avellaneda
2017-11-24 12:04                     ` Philippe Gerum
2017-11-24 12:10                       ` Leopold Palomo-Avellaneda
2017-11-24 12:22                         ` Philippe Gerum [this message]
2017-11-24 12:24                           ` Leopold Palomo-Avellaneda
2017-11-24 14:21                             ` Philippe Gerum
2017-11-24 14:38                               ` Leopold Palomo-Avellaneda
2017-11-25 20:27                                 ` Philippe Gerum
2017-11-23 15:04     ` [Xenomai] Cannot initialize TLSF memory manager Leopold Palomo-Avellaneda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c935cb9d-c25d-a23c-2e3b-f4f38599d247@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=leo@alaxarxa.net \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.