Thread (1 message) 1 message, 1 author, 2015-07-07

Re: Setting up flexcan mailboxes in Linux

From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: 2015-07-07 10:04:26

Possibly related (same subject, not in this thread)

Hey Emil,

please use the linux-can mailinglst for CAN related questions.

On 07/07/2015 11:59 AM, Emil Fors wrote:
my name is Emil and I am trying to configure a Toradex Apalis iMX6q
module. I need to set up the flexcan mailboxes in order to filter out
messages I'm not interested in. I have CAN communication working using
the libsocketcan library written by one Luotao Fu, who seems to be a
colleague of yours? However, that library doesn't seem to provide me
with control over mailbox configuration. Could you please advise as to
how I'd best proceed? I noted that the library is (C) 2009, perhaps it
is outdated? Do you know of a more recent and perhaps better solution?
Hardware filtering is not supported on an driver so far. But we have an
idea how to implement this.

However you can make use of the software filtering via CAN_RAW_FILTER.
See
http://lxr.free-electrons.com/source/Documentation/networking/can.txt#L433
for more information.

Marc
-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help