linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Writing socketCAN module for my own hardware
@ 2014-08-12  7:51 Florian Feldbauer
  2014-08-12  8:24 ` Marc Kleine-Budde
  0 siblings, 1 reply; 15+ messages in thread
From: Florian Feldbauer @ 2014-08-12  7:51 UTC (permalink / raw)
  To: linux-can

Hey all,

I have developed a CAN interface for the Raspberry Pi computer using the 
SJA1000 directly connected to the GPIOs of the CPU.
So far this interface is used as chardev and works fine.
But I'm also developing a user-space program using this CAN interface. 
This program should also be compatible with other CAN interfaces like 
the ones from PEAK or Kvazer. So I thought using socketCAN would be a 
good idea.

Is there any documentation on how to write a socketCAN compatible kernel 
module for my own hardware?
I tried writing something similar to the sja1000_isa driver...
So far my modified kernel compiles and I can change bitrate and bring 
the interface up.
But as soon as I try to send a CAN frame I get the error:
Error 105: No buffer space available

Any help appreciated!

Best regards,
Florian

-- 
----------------------------------------
| Dr. Florian Feldbauer                |
|                                      |
| Helmholtz-Institut Mainz /           |
| Johannes Gutenberg-Universität Mainz |
| Johann-Joachim-Becher-Weg 36         |
| D-55128 Mainz                        |
|                                      |
| Office: SB1 / 00-213                 |
| Phone:  (+49)6131 / 39-29605         |
----------------------------------------


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-10-10  8:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12  7:51 Writing socketCAN module for my own hardware Florian Feldbauer
2014-08-12  8:24 ` Marc Kleine-Budde
2014-08-12  8:57   ` Florian Feldbauer
2014-08-12 10:01     ` Marc Kleine-Budde
2014-10-01  7:26       ` Florian Feldbauer
2014-10-01  7:49         ` Marc Kleine-Budde
2014-10-01 12:32           ` Florian Feldbauer
2014-10-01 12:41             ` Marc Kleine-Budde
2014-10-01 12:56               ` Florian Feldbauer
2014-10-01 13:11                 ` Marc Kleine-Budde
2014-10-09 15:06               ` Florian Feldbauer
2014-10-09 16:13                 ` Marc Kleine-Budde
2014-10-10  7:43                   ` Florian Feldbauer
2014-10-10  8:06                     ` Marc Kleine-Budde
2014-10-10  8:09                       ` Florian Feldbauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).