Skip to contentSkip to conversation

I think lib/copperplate depends on glibc while using dual kernel configuration.Am i right?

DISCUSSION 孙世龙 3 participants 4 messages Apr 10, 2020 – Apr 11, 2020

lore
Share & tools
lore

孙世龙

author
#0 lore raw

Hi,
I am using xenomai-3.1.

Two figures are contained in url
https://gitlab.denx.de/Xenomai/xenomai/-/wikis/Start_Here.

Since the architecture showed in figure 2 named xenomai 3 single kernel
configuration, i could draw the conclusion that copperplate interface depends on the glibc.

But i don't think i can draw the same conclusion from the Figure 1.
Xenomai 3 dual kernel configuration.

When i enable the --enable-pshared compiler option, I could clearlly see
the create_main_heap function calls shm_open which is provided by glibc.
So, i think copperplate interface depends on glibc while using dual
kernel configuration.Am i right?

Thanks a lot.Looking forward to your reply.
Best regards.

#1 lore raw
Quoted 10 lines · 孙世龙 via Xenomai

Hi,
I am using xenomai-3.1.

Two figures are contained in url
https://gitlab.denx.de/Xenomai/xenomai/-/wikis/Start_Here.

Since the architecture showed in figure 2 named xenomai 3 single kernel
configuration, i could draw the conclusion that copperplate interface depends on the glibc.

Quoted 7 lines

But i don't think i can draw the same conclusion from the Figure 1.
Xenomai 3 dual kernel configuration.

When i enable the --enable-pshared compiler option, I could clearlly see
the create_main_heap function calls shm_open which is provided by glibc.
So, i think copperplate interface depends on glibc while using dual
kernel configuration.Am i right?

Xenomai does not replace a libc when using the cobalt mode. It only provides alternatives to certain time-sensitive services. So a libc, like glibc, remains a natural dependency, for Xenomai libs themselves as well as the target application.

Jan

#2 lore raw

Hi,
Apr 11, 2020, 09:22 by [email protected]:

Quoted 21 lines · 孙世龙 via Xenomai
Quoted 11 lines

Hi,
I am using xenomai-3.1.

Two figures are contained in url
https://gitlab.denx.de/Xenomai/xenomai/-/wikis/Start_Here.

Since the architecture showed in figure 2 named xenomai 3 single kernel
configuration, i could draw the conclusion that copperplate interface depends on the glibc.

Quoted 8 lines

But i don't think i can draw the same conclusion from the Figure 1.
Xenomai 3 dual kernel configuration.

When i enable the --enable-pshared compiler option, I could clearlly see
the create_main_heap function calls shm_open which is provided by glibc.
So, i think copperplate interface depends on glibc while using dual
kernel configuration.Am i right?

Quoted 5 lines

Xenomai does not replace a libc when using the cobalt mode. It only provides alternatives to certain time-sensitive services. So a libc, like glibc, remains a natural dependency, for Xenomai libs themselves as well as the target application.

What about musl or other libc interpretations? (I haven't tried it yet, it's in my plan.)

Cern.

Quoted 3 lines

Jan

#3 lore raw
Quoted 24 lines · On 11.04.20 18:45, [email protected] wrote:

Hi,
Apr 11, 2020, 09:22 by [email protected]:

Quoted 21 lines · 孙世龙 via Xenomai
Quoted 19 lines

Hi,
I am using xenomai-3.1.

Two figures are contained in url
https://gitlab.denx.de/Xenomai/xenomai/-/wikis/Start_Here.

Since the architecture showed in figure 2 named xenomai 3 single kernel
configuration, i could draw the conclusion that copperplate interface depends on the glibc.

But i don't think i can draw the same conclusion from the Figure 1.
Xenomai 3 dual kernel configuration.

When i enable the --enable-pshared compiler option, I could clearlly see
the create_main_heap function calls shm_open which is provided by glibc.
So, i think copperplate interface depends on glibc while using dual
kernel configuration.Am i right?

Quoted 7 lines
Quoted 5 lines

Xenomai does not replace a libc when using the cobalt mode. It only provides alternatives to certain time-sensitive services. So a libc, like glibc, remains a natural dependency, for Xenomai libs themselves as well as the target application.

What about musl or other libc interpretations? (I haven't tried it yet, it's in my plan.)

It should work, but I didn't try myself. We have uclibc running, at least on some arch.

Jan