From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Davide Faconti <faconti@icarustechnology.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] CAN bus on beaglebone
Date: Sun, 24 Mar 2013 23:10:10 +0100 [thread overview]
Message-ID: <514F79C2.6080807@xenomai.org> (raw)
In-Reply-To: <CAPRNvtSqfrtXW1L=W6_OTtenk+YyR_RWbPjrwRXYqEwN00P1rQ@mail.gmail.com>
On 03/24/2013 11:01 PM, Davide Faconti wrote:
>> Socket: Protocol not supported
>
> Is there anyone that as any idea of what is going on and how I could
> fix it?
Hi,
could you try the following patch?
diff --git a/src/skins/posix/rtdm.c b/src/skins/posix/rtdm.c
index aa23737..c6326f0 100644
--- a/src/skins/posix/rtdm.c
+++ b/src/skins/posix/rtdm.c
@@ -87,7 +87,7 @@ int __wrap_socket(int protocol_family, int socket_type, int protocol)
protocol_family, socket_type, protocol);
if (ret >= 0)
ret += __pse51_rtdm_fd_start;
- else if (ret == -EAFNOSUPPORT || ret == -ENOSYS) {
+ else if (ret == -EAFNOSUPPORT || ret == -EPROTONOSUPPORT || ret == -ENOSYS) {
ret = __real_socket(protocol_family, socket_type, protocol);
if (ret >= __pse51_rtdm_fd_start) {
You need to recompile xenomai user-space support after
applying it.
Regards.
--
Gilles.
next prev parent reply other threads:[~2013-03-24 22:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-24 22:01 [Xenomai] CAN bus on beaglebone Davide Faconti
2013-03-24 22:10 ` Gilles Chanteperdrix [this message]
2013-03-24 23:25 ` Davide Faconti
2013-03-25 7:42 ` Gilles Chanteperdrix
2013-03-25 13:01 ` Wolfgang Grandegger
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=514F79C2.6080807@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=faconti@icarustechnology.com \
--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.