Template:AkDcanConfig

= Linux Driver Configuration =
 * DCAN device driver in Linux is provided as a networking driver that confirms to the socketCAN interface
 * The driver is currently build-into the kernel with the right configuration items enabled (details below)

How DCAN driver fits into Linux architecture
Linux Kernel Configuration Networking support CAN bus subsystem support CAN device drivers Bosch D_CAN devices Generic Platform Bus based D_CAN driver
 * DCAN driver is a can "networking" driver that fits into the Linux Networking framework
 * It is available as a configuration item in the Linux kernel configuration as follows:

Detailed Kernel Configuration
To enable/disable CAN driver support, start the Linux Kernel Configuration tool:

$ make menuconfig ARCH=arm

Select Networking support from the main menu. ...    ...     Power management options ---&gt; [*] Networking support ---&gt; Device Drivers ---&gt; File systems ---&gt; Kernel hacking ---&gt; ...    ... Select CAN bus subsystem support as shown here: ...    ...     Networking options  ---&gt; [ ] Amateur Radio support ---&gt; &lt;*&gt; CAN bus subsystem support ---&gt; IrDA (infrared) subsystem support ---&gt; ...

Select Raw CAN Protocol & Broadcast Manager CAN Protocol as shown here: ...    --- CAN bus subsystem support &lt;*&gt; Raw CAN Protocol (raw access with CAN-ID filtering) &lt;*&gt; Broadcast Manager CAN Protocol (with content filtering) CAN Device Drivers ---&gt;

Building D_CAN driver into Kernel
By default D_CAN driver is included in the Kernel

Select Bosch D_CAN devices in the above menu and then select the following options:

&lt;*&gt; Virtual Local CAN Interface (vcan) &lt;*&gt; Platform CAN drivers with Netlink support [*]  CAN bit-timing calculation &lt; &gt;  TI High End CAN Controller &lt; &gt;  Microchip MCP251x SPI CAN controllers < > Philips/NXP SJA1000 devices ---> < > Bosch C_CAN devices ---> <*> Bosch D_CAN devices ---> CAN USB interfaces ---> ... Note: "CAN bit-timing calculation" needs to be enabled to use "ip" utility to set CAN bitrate

Select Generic Platform Bus based D_CAN driver as shown here:

--- Bosch D_CAN devices <*>  Generic Platform Bus based D_CAN driver

Building D_CAN driver as Loadable Kernel Module
To build the Bosch D_CAN devices components as module, press 'M' key after navigating to config entries

&lt;*&gt; Virtual Local CAN Interface (vcan) &lt;*&gt; Platform CAN drivers with Netlink support [*]  CAN bit-timing calculation &lt; &gt;  TI High End CAN Controller &lt; &gt;  Microchip MCP251x SPI CAN controllers < > Philips/NXP SJA1000 devices ---> < > Bosch C_CAN devices --->  Bosch D_CAN devices ---> CAN USB interfaces ---> ...

Note: "CAN bit-timing calculation" needs to be enabled to use "ip" utility to set CAN bitrate

To build the Generic Platform Bus based D_CAN driver components as module, press 'M' key after navigating to config entries

--- Bosch D_CAN devices   Generic Platform Bus based D_CAN driver

Description
This template have DCAN driver kernel configuration details

Parameters
This template takes no parameters

Example
To use this template simply add the following line to your wiki page.

Here's how it will look in your wiki page: