All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@grandegger.com>
To: Marcus Liebhardt <marcus.liebhardt@yujinrobot.com>
Cc: linux-can@vger.kernel.org
Subject: Re: Support of MCP2515 and AM35x High-End CAN controller in (RT-)SocketCAN
Date: Wed, 02 May 2012 10:12:13 +0200	[thread overview]
Message-ID: <4FA0EC5D.4090602@grandegger.com> (raw)
In-Reply-To: <CAKG=6c4wMX4ZWFKAxN81-Rnf07wG1vqL96q0e78oe+VjsLSNrA@mail.gmail.com>

Hi Marcus,

On 05/02/2012 09:51 AM, Marcus Liebhardt wrote:
> Hi everybody!
> 
> Looking for a low-cost solution for a real-time Linux system with CAN
> bus support, I am currently considering the Beaglebone [1] (similar to
> the Beagleboard) with the addition of a CAN bus cape [2]. The later
> provides two MCP2515 CAN controller and also allows the use of the
> integrated CAN controller [3] of the Beaglebone's ARM microprocessor
> (Cortex A8) .
> 
> I am thinking about using a Linux kernel plus the RT-patch
> (CONFIG_PREEMPT_RT), since it seems to be less work then setting up
> Xenomai and the MCP2515 is already supported by SocketCAN. However, I
> am not sure, if this set-up will satisfy our real-time constraints,
> since SocketCAN is not real-time safe. Furthermore, I couldn't find
> information about working solutions of patched Linux kernels on the
> Beaglebord besides this paper [4].
> Hence, I am also looking into the option of using Xenomai on the
> Beaglebone for which I found working examples, such as [4]. However,
> according to this list [5] the MCP2515 is not supported by
> RTcan/RT-SocketCAN. Is this still true?

Setup time is not a strong argument for choosing -rt vs. Xenomai. The
latter usually gives you harder real-time behavior and lower
latencies. On the other hand, Xenomai does not yet support the CAN
controllers you are speaking about. If the Beagleboard is supported by
the mainline 2.6.33 or 3.2 kernel, I think there is a good chance that
the -rt patch applies and works. But I personally don't have any
experience. For real-time and high data rate the MCP2515 is not a really
good choice, as it is connected via SPI bus. What are your requirements
concerning latency and data rate?

> Furthermore, is there support for the integrated CAN controller (AM35x
> HECC) in SocketCAN and/or RT-SocketCAN?

The HECC is supported by the mainline kernel (but not Xenomai).

Wolfgang.

  parent reply	other threads:[~2012-05-02  8:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKG=6c5jafRAGjeQscTKLQbSjPFp7UJYwhhcpOS2QoNvy7Cggw@mail.gmail.com>
2012-05-02  7:51 ` Support of MCP2515 and AM35x High-End CAN controller in (RT-)SocketCAN Marcus Liebhardt
2012-05-02  8:07   ` Marc Kleine-Budde
2012-05-02  8:12   ` Wolfgang Grandegger [this message]
2012-05-02  8:17 ` [Socketcan-users] " Gole, Anant
2012-05-03  5:21   ` Marcus Liebhardt
2012-05-03  6:42     ` Yegor Yefremov
2012-05-03  7:13     ` Wolfgang Grandegger
2012-05-03 10:33       ` Wolfgang Grandegger
2012-05-04  2:27         ` Marcus Liebhardt
2012-05-04  6:58           ` 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=4FA0EC5D.4090602@grandegger.com \
    --to=wg@grandegger.com \
    --cc=linux-can@vger.kernel.org \
    --cc=marcus.liebhardt@yujinrobot.com \
    /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.