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.

DM8127IPNC: DCAN0



I am trying to turn up the DCAN0 on our custom board of DM8127, and following below link.

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

I can see the can0 when I use "ip link", so I think the kernel setting is done.
However, I only found the three lines about d_can in kernel booting message as below.
CAN device driver interface
CAN bus driver for Bosch D_CAN controller 1.0
d_can d_can: d_can device registered (irq=52, irq_obj=53)
But, there are five lines in the post below,
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/204027/724007.aspx.
So, I am wondering if I miss some settings.
I also finished the make/install procedure of iproute2(-2.6.39) and canutils(-3.0.2), but when I use the function (ip) in target system, it shows busybox instead of ip.iproute2.
Another question is when I used ./configure for iproute2, it showed "iptables modules directory: not found!". Is this OK?
The RDK version I am using is IPNC_RDK_DM812x_DM385_v3.5.0.
Thank you
Derec L
  • Hi Derec,

    I am working on DM814x device, but I will try to provide you some pointers for DM8127 (DM812x) device.

    First of all, you should check whether the DM8127 device has DCAN controler. You can check this into the DM8127 datasheet. This check because I can see in the below wiki page that the PSP DCAN driver is supported for DM814x and DM813x/DM385 devices:

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_User_Guide#DCAN_Driver

    DCAN functionality is available only for TI814X and TI813X.

    Derec Lo said:
    I can see the can0 when I use "ip link", so I think the kernel setting is done.

    The kernel setting is explained in the below wiki page. If you follow all the steps, then it is done.

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_DCAN_Driver_User_Guide#Detailed_Kernel_Configuration

    On DM814x device, when I use the default config file (ti8148_evm_defconfig), this file is doing all these DCAN settings into the linux kernel.

    Derec Lo said:
    However, I only found the three lines about d_can in kernel booting message as below.
    CAN device driver interface
    CAN bus driver for Bosch D_CAN controller 1.0
    d_can d_can: d_can device registered (irq=52, irq_obj=53)

    I think this is fine. I have also these three lines at kernel boot time.

    Derec Lo said:
    But, there are five lines in the post below,
    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/204027/724007.aspx.

     

    I suspect they add these prints manually, just for additional information.

    Without these additional two lines, the DCAN commands are working fine at my side:

    root@dm814x-evm:~# ip link set can0 type can bitrate 50000
    root@dm814x-evm:~# ip link set can0 up
    d_can d_can: can0: setting CAN BT = 0x1c18

    BR
    Pavel