Skip to contentSkip to conversation

MPC5200B and the CAN interface

DISCUSSION Nick 3 participants 3 messages Nov 7, 2008 – Nov 9, 2008

lore
Share & tools
lore

Nick

author
#0 lore raw

Hi Everyone,

I am looking for information on how to use the CAN driver for the MPC5200b. I have built the kernel (2.6.27) with the MPC5200b can bus drivers and I see them being initialized on start up.

[   37.122041] can: controller area network core (rev 20071116 abi 8)
[   37.128687] NET: Registered protocol family 29
[   37.133379] can: raw protocol (rev 20071116)
[   37.137807] can: broadcast manager protocol (rev 20080415)

Do I have to define a UDEV rule? Has anyone already written a rule to make the can driver visible in /dev?

Any pointers or snippets of code would be greatly appreciated.

Nick

#1 lore raw
Quoted 8 lines · Nick

Hi Everyone,

I am looking for information on how to use the CAN driver for the MPC5200b. I have built the kernel (2.6.27) with the MPC5200b can bus drivers and I see them being initialized on start up.

[   37.122041] can: controller area network core (rev 20071116 abi 8)
[   37.128687] NET: Registered protocol family 29
[   37.133379] can: raw protocol (rev 20071116)
[   37.137807] can: broadcast manager protocol (rev 20080415)

I'm pretty sure this is just the SocketCAN interface.

You still need a hardware driver (and one which is SocketCAN compatible). I don't see such a driver for the MSCAN (the hardware on the MPC5200) in the stock 2.6.27 tree.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#2 lore raw
Quoted 5 lines · Gary Thomas

I'm pretty sure this is just the SocketCAN interface.

You still need a hardware driver (and one which is SocketCAN compatible). I don't see such a driver for the MSCAN (the hardware on the MPC5200) in the stock 2.6.27 tree.

The drivers for MPC5200B's mscan are still in the SocketCAN repository, right. The team is working on getting the patches ready for mainline.

rsc

Signature · 5 lines
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9