* [Xenomai] Bosch CCAN/DCAN driver for RTDM
@ 2015-02-09 17:42 Steve B
2015-02-09 20:09 ` Philippe Gerum
2015-02-10 14:38 ` Alfred Koegel
0 siblings, 2 replies; 6+ messages in thread
From: Steve B @ 2015-02-09 17:42 UTC (permalink / raw)
To: xenomai
Hello,
I have put together a quick port of the Linux driver for CCAN/DCAN to work
with RTDM, thanks to Wolfgang Grandegger's Flexcan driver port as an
example.
It's not thoroughly/formally tested, but it works with rtcansend and
rtcanrecv, and works well with my application sending and receiving a few
hundred frames per second at 500k baud, which I think is a good enough
initial test for me.
I can also give the "rtt" test a shot when I have time.
Is there anyone out there who would like to test this? I am wondering what
is the procedure to submit, should I create a patch and attach? I haven't
looked at how to add it into the kernel build process, I have just built it
in its own separate place so far.
Steve
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] Bosch CCAN/DCAN driver for RTDM
2015-02-09 17:42 [Xenomai] Bosch CCAN/DCAN driver for RTDM Steve B
@ 2015-02-09 20:09 ` Philippe Gerum
2015-02-10 14:38 ` Alfred Koegel
1 sibling, 0 replies; 6+ messages in thread
From: Philippe Gerum @ 2015-02-09 20:09 UTC (permalink / raw)
To: Steve B, xenomai
On 02/09/2015 06:42 PM, Steve B wrote:
> Hello,
> I have put together a quick port of the Linux driver for CCAN/DCAN to work
> with RTDM, thanks to Wolfgang Grandegger's Flexcan driver port as an
> example.
>
> It's not thoroughly/formally tested, but it works with rtcansend and
> rtcanrecv, and works well with my application sending and receiving a few
> hundred frames per second at 500k baud, which I think is a good enough
> initial test for me.
> I can also give the "rtt" test a shot when I have time.
>
> Is there anyone out there who would like to test this? I am wondering what
> is the procedure to submit, should I create a patch and attach? I haven't
> looked at how to add it into the kernel build process, I have just built it
> in its own separate place so far.
>
Posting the patch to this list is fine.
--
Philippe.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] Bosch CCAN/DCAN driver for RTDM
2015-02-09 17:42 [Xenomai] Bosch CCAN/DCAN driver for RTDM Steve B
2015-02-09 20:09 ` Philippe Gerum
@ 2015-02-10 14:38 ` Alfred Koegel
2015-02-10 15:04 ` Wolfgang Grandegger
2015-02-11 7:28 ` dietmar.schindler
1 sibling, 2 replies; 6+ messages in thread
From: Alfred Koegel @ 2015-02-10 14:38 UTC (permalink / raw)
To: xenomai
Steve B <sbattazzo <at> gmail.com> writes:
>
> Hello,
> I have put together a quick port of the Linux driver for CCAN/DCAN to work
> with RTDM, thanks to Wolfgang Grandegger's Flexcan driver port as an
> example.
>
> It's not thoroughly/formally tested, but it works with rtcansend and
> rtcanrecv, and works well with my application sending and receiving a few
> hundred frames per second at 500k baud, which I think is a good enough
> initial test for me.
> I can also give the "rtt" test a shot when I have time.
>
> Is there anyone out there who would like to test this? I am wondering what
> is the procedure to submit, should I create a patch and attach? I haven't
> looked at how to add it into the kernel build process, I have just built it
> in its own separate place so far.
>
> Steve
>
Hello Steve,
I intended to do a port a few months ago, because i started a project with a
Atom™ E640 cpu. The internal can controller is a clone of the BOSCH ccan
module and your driver should run on this hardware as well. If you can post
me the patch i can try to get it going on my hardware (the project is frozen
at the moment due to other hardware related problems).
Alfred
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] Bosch CCAN/DCAN driver for RTDM
2015-02-10 14:38 ` Alfred Koegel
@ 2015-02-10 15:04 ` Wolfgang Grandegger
[not found] ` <CAEMXjGyaBzbBm5v4=ibG-__EuE6gXFGKXXw=MaYQm_ueGVg+_Q@mail.gmail.com>
2015-02-11 7:28 ` dietmar.schindler
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Grandegger @ 2015-02-10 15:04 UTC (permalink / raw)
To: xenomai; +Cc: Alfred Koegel
Hi Steve,
On Tue, 10 Feb 2015 14:38:32 +0000 (UTC), Alfred Koegel <akoegel@gmx.de>
wrote:
> Steve B <sbattazzo <at> gmail.com> writes:
>
>>
>> Hello,
>> I have put together a quick port of the Linux driver for CCAN/DCAN to
>> work
>> with RTDM, thanks to Wolfgang Grandegger's Flexcan driver port as an
>> example.
>>
>> It's not thoroughly/formally tested, but it works with rtcansend and
>> rtcanrecv, and works well with my application sending and receiving a
few
>> hundred frames per second at 500k baud, which I think is a good enough
>> initial test for me.
>> I can also give the "rtt" test a shot when I have time.
>>
>> Is there anyone out there who would like to test this? I am wondering
>> what
>> is the procedure to submit, should I create a patch and attach? I
haven't
>> looked at how to add it into the kernel build process, I have just
built
>> it
>> in its own separate place so far.
Unfortunately I don't have hardware at hand to test the driver but I could
assist in getting it included into:
"http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/drivers/can/c_can"
With a proper Kconfig it should automatically be visible to the kernel and
the kernel could then be built as usual. Therefore a patch for the Xenomai
tree would be nice but as a first step don't hesitate to just send you
current version.
Thanks,
Wolfgang.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] Bosch CCAN/DCAN driver for RTDM
2015-02-10 14:38 ` Alfred Koegel
2015-02-10 15:04 ` Wolfgang Grandegger
@ 2015-02-11 7:28 ` dietmar.schindler
1 sibling, 0 replies; 6+ messages in thread
From: dietmar.schindler @ 2015-02-11 7:28 UTC (permalink / raw)
To: xenomai
> Von: Alfred Koegel
> Gesendet: Dienstag, 10. Februar 2015 15:39
> ...
> I intended to do a port a few months ago, because i started a project with a
> Atom™ E640 cpu...
Of course, Atom alone isn't a trademark - only Intel® Atom™ is.
--
Regards,
Dietmar Schindler
________________________________
manroland web systems GmbH -- Managing Director: Joern Gosse
Registered Office: Augsburg -- Trade Register: AG Augsburg -- HRB-No.: 26816 -- VAT: DE281389840
Confidentiality note:
This eMail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this eMail in error, then please delete this eMail.
! Please consider your environmental responsibility before printing this eMail !
________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] Bosch CCAN/DCAN driver for RTDM
[not found] ` <CAEMXjGwfFdizDPWPyiwA9Wq6OiXrcn4Nb1zvNqpbCfxHXc-SQw@mail.gmail.com>
@ 2015-02-11 21:25 ` Wolfgang Grandegger
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Grandegger @ 2015-02-11 21:25 UTC (permalink / raw)
To: Steve B; +Cc: akoegel, Xenomai@xenomai.org
Hi Steve,
I re-added the Xenomai ML...
On 02/11/2015 04:22 PM, Steve B wrote:
> Thanks!
> One more thing, it seems to only work if the regular CAN driver was loaded
> once and then taken away with rmmod.
> I think I saw on the mailing list somebody else had experienced the same
> with the flexcan or another driver... I wonder if we can find the solution
> to that as well!
There are various options:
- use rmmod to unload the old driver (as you already did)
- use "unbind" to disconnect the Linux driver and "bind" to connect
the RT-variant
- do not build the Linux driver at all
- use /etc/modprobe.d/blacklist
Wolfgang.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-02-11 21:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09 17:42 [Xenomai] Bosch CCAN/DCAN driver for RTDM Steve B
2015-02-09 20:09 ` Philippe Gerum
2015-02-10 14:38 ` Alfred Koegel
2015-02-10 15:04 ` Wolfgang Grandegger
[not found] ` <CAEMXjGyaBzbBm5v4=ibG-__EuE6gXFGKXXw=MaYQm_ueGVg+_Q@mail.gmail.com>
[not found] ` <6e21b08b682a0f43d1264fc203d376c8@grandegger.com>
[not found] ` <CAEMXjGwfFdizDPWPyiwA9Wq6OiXrcn4Nb1zvNqpbCfxHXc-SQw@mail.gmail.com>
2015-02-11 21:25 ` Wolfgang Grandegger
2015-02-11 7:28 ` dietmar.schindler
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.