From: Wolfgang Grandegger <wg@grandegger.com>
To: Davide Faconti <faconti@icarustechnology.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] CAN bus on beaglebone
Date: Mon, 25 Mar 2013 14:01:31 +0100 [thread overview]
Message-ID: <51504AAB.5000600@grandegger.com> (raw)
In-Reply-To: <CAPRNvtSqfrtXW1L=W6_OTtenk+YyR_RWbPjrwRXYqEwN00P1rQ@mail.gmail.com>
On 03/24/2013 11:01 PM, Davide Faconti wrote:
> Dear Xenomai users and developers,
>
> finally I managet to have a working xenomai (Kernel 3.2.21, xenomai
> 2.6.2.1) on my beloved Beaglebone.
>
> Everything works fine BUT I can't get my CAN bus working.
> Partly this is not a surprise, since I don't think that RTCAN
> currently support the D_CAN on Beaglebone (am I right?)
You are right? There is no C_CAN/D_CAN driver in RTcan. It needs to be
ported from the Linux driver similar to what I have done recently for
the Flexcan driver.
>> rtcanconfig rtcan0 --verbose --baudrate=125000 start
>> mode: start (0x1)
>> Can't get interface index for rtcan0, code = -19
#define ENODEV 19 /* No such device */
That is no suprise. It's useless to use rtcanconfig without supported
device.
> What is disappointing is that the other Socketcan, that in theory it
> is also installed, isn't working anymore.
>
> I can get the device can0 "up" writing the command
>
>> ip link set can0 up type can bitrate 125000
>
> But when I try to actually open de device I get the error
>
>> Socket: Protocol not supported
Does it definitely work with a vanilla kernel (without iPipe and Xenomai)?
Did you link your program against the Xenomai POSIX libraries?
> Is there anyone that as any idea of what is going on and how I could fix it?
> According to Google no one has tried already to use Xenomai +
> Beaglebone + CAN ;)
As long as you do not have a RTcan driver for your hardware you could
play with the "Virtual CAN bus driver" (CONFIG_XENO_DRIVERS_CAN_VIRT).
Wolfgang.
prev parent reply other threads:[~2013-03-25 13:01 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
2013-03-24 23:25 ` Davide Faconti
2013-03-25 7:42 ` Gilles Chanteperdrix
2013-03-25 13:01 ` Wolfgang Grandegger [this message]
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=51504AAB.5000600@grandegger.com \
--to=wg@grandegger.com \
--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.