This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8148 DCAN driver

Hi,

I want to communicate using DCAN on the EVM:TMDXEVM8148.

I don't know the way to  add DCAN driver.

Please tell me the way to add DCAN driver.

Regards.

Ryuichi

  • Hi Ryuichi,

    Pickup the latest code from Arago tree, DCAN driver is preset for DM814X

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=shortlog

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

  • Hi,

    Thank you for the replying.

    I picked up the code from 2 topics.

      >can: d_can: Add support for Bosch D_CAN controller

      >ti814x: can: d_can: DCAN config added to ti8148_evm_defconfig


    I tried to add DCAN driver referring to the below URL:

    http://processors.wiki.ti.com/index.php/Sitara_DCAN_Driver_Guide



    I entered the command "make menuconfig" and changed "Bosch D_CAN devices" and "Generic Platform Bus based D_CAN driver" to [M],

    I build the kernel and boot the new kernel.

    I think DCAN driver is added because the log of boot  displayed the below message:

          davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
          davinci_mdio davinci_mdio.0: detected phy mask fffffffc
          davinci_mdio.0: probed
          davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
          davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown                
          CAN device driver interface
          CAN bus driver for Bosch D_CAN controller 1.0
          usbcore: registered new interface driver cdc_ether
          usbcore: registered new interface driver dm9601
          usbcore: registered new interface driver cdc_acm
          cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters

    I entered the command "ip link set can0 down" but the terminal displayed the below message:

         root@dm814x-evm:~# ip link set can0 down                                        
                                                  Cannot find device "can0" 

    Is another set up required for using DCAN?

    Regards.

    Ryuichi

  • Hi Ryuichi,

    You had build the driver as module in that case you have to do these steps.

    1. Copy modules to the device (d_can.ko, d_can_platform.ko).

    2. insert the module first before you test the device.

    $ insmod d_can.ko

    $insmod d_can_platform.ko

    Or

    Make d_can driver inbuilt to kernel instead of kernel module, while doing the kernel configuration. So those above steps are not required.

    Then you can proceed with packet transmission.

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!