Skip to contentSkip to conversation

EAFNOSUPPORT despite kernel build in

DISCUSSION Johannes Holtz 2 participants 2 messages Dec 4, 2018

lore
Share & tools
lore
#0 lore raw

Hello,

When I request a socket with AF_RTIPC I get an EAFNOSUPPORT in return. int sock = socket(AF_RTIPC, SOCK_DGRAM, IPCPROTO_IDDP);

rtipc.h is included
#include <rtdm/rtipc.h>

I have build the support for RTIPC into the kernel (not a module) and expected this to work more or less out of the box. Did I forget something or must this feature be a module?
I have searched for a solution but haven't found anything.

Here information about the system:

virtual machine (VBox) with 1 CPU,  2.5GB RAM, 15GB disk

base kernel version is 3.18.20

xenomai  version is 2.6.5 (from the download page not from the git repo)

using the included ipipe patch xenomai-2.6.5/ksrc/arch/x86/patches/ipipe-core-3.18.20-x86-7.patch

the kernel config has the feature enabled

root@xeno:~/kernelbuild# grep RTIPC /boot/config-3.18.20
CONFIG_XENO_DRIVERS_RTIPC=y
CONFIG_XENO_DRIVERS_RTIPC_XDDP=y
CONFIG_XENO_DRIVERS_RTIPC_IDDP=y
CONFIG_XENO_DRIVERS_RTIPC_BUFP=y
#1 lore raw
Quoted 5 lines · Johannes Holtz via Xenomai

Hello,

When I request a socket with AF_RTIPC I get an EAFNOSUPPORT in return. int sock = socket(AF_RTIPC, SOCK_DGRAM, IPCPROTO_IDDP);

You likely didn't wrap this posix application to link against the Xenomai libs, rather than normal libc. See manuals / wikis.

Quoted 9 lines

rtipc.h is included
#include <rtdm/rtipc.h>

I have build the support for RTIPC into the kernel (not a module) and expected this to work more or less out of the box. Did I forget something or must this feature be a module?
I have searched for a solution but haven't found anything.

Quoted 7 lines

Here information about the system:

virtual machine (VBox) with 1 CPU,  2.5GB RAM, 15GB disk

base kernel version is 3.18.20

xenomai  version is 2.6.5 (from the download page not from the git repo)

Don't start anything new on 2.6 anymore, it's long retired.

Quoted 3 lines

using the included ipipe patch xenomai-2.6.5/ksrc/arch/x86/patches/ipipe-core-3.18.20-x86-7.patch

Same goes for such old kernels and patches.

Quoted 8 lines

the kernel config has the feature enabled

root@xeno:~/kernelbuild# grep RTIPC /boot/config-3.18.20
CONFIG_XENO_DRIVERS_RTIPC=y
CONFIG_XENO_DRIVERS_RTIPC_XDDP=y
CONFIG_XENO_DRIVERS_RTIPC_IDDP=y
CONFIG_XENO_DRIVERS_RTIPC_BUFP=y

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux