Florian Feldbauer
2014-08-12 07:51:16 UTC
Hey all,
I have developed a CAN interface for the Raspberry Pi computer using th=
e=20
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.=20
This program should also be compatible with other CAN interfaces like=20
the ones from PEAK or Kvazer. So I thought using socketCAN would be a=20
good idea.
Is there any documentation on how to write a socketCAN compatible kerne=
l=20
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=20
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,
=46lorian
--=20
----------------------------------------
| Dr. Florian Feldbauer |
| |
| Helmholtz-Institut Mainz / |
| Johannes Gutenberg-Universit=E4t Mainz |
| Johann-Joachim-Becher-Weg 36 |
| D-55128 Mainz |
| |
| Office: SB1 / 00-213 |
| Phone: (+49)6131 / 39-29605 |
----------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-can" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
I have developed a CAN interface for the Raspberry Pi computer using th=
e=20
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.=20
This program should also be compatible with other CAN interfaces like=20
the ones from PEAK or Kvazer. So I thought using socketCAN would be a=20
good idea.
Is there any documentation on how to write a socketCAN compatible kerne=
l=20
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=20
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,
=46lorian
--=20
----------------------------------------
| Dr. Florian Feldbauer |
| |
| Helmholtz-Institut Mainz / |
| Johannes Gutenberg-Universit=E4t Mainz |
| Johann-Joachim-Becher-Weg 36 |
| D-55128 Mainz |
| |
| Office: SB1 / 00-213 |
| Phone: (+49)6131 / 39-29605 |
----------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-can" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html