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.

TDA2PXEVM: [Linux]The test for CAN (MCAN or DCAN)

Part Number: TDA2PXEVM

Hello.

I am testing CAN(MCAN) with TDA2PXEVM(http://www.ti.com/tool/TDA2PXEVM).

Vision SDK version is 'PROCESSOR_SDK_VISION_03_07_00_00_setuplinux.bin' and rootfs is 'tisdk-rootfs-image-dra7xx-evm_vsdk_3_7.tar.xz'.

When I brought 'can0' up, the error happened as below.

root@dra7xx-evm:~# ip link set can0 up
[ 3431.235990] m_can 42c01a00.mcan can0: bit-timing not yet defined
[ 3431.242033] m_can 42c01a00.mcan can0: failed to open can device
ip: SIOCSIFFLAGS: Invalid argument

 

So I have tried to configure bitrate. But the error happened as below.

root@dra7xx-evm:~# ip link set can0 type can bitrate 500000

ip: either "dev" is duplicate, or "type" is garbage

Could someone help me fix this problem? 

And if there is any reference document to test CAN on TDA2PXEVM, please let me know.

Thanks.

  • Hi,

    This looks like an issue with the ip command.

    Can you run the "ip -V" command and post it's output here?

    Also, please post output of "which ip" here.

    Regards,

    Karan

  • Hello Karan,

    Thanks for your feedback.

    The output of 'ip -V" is

    root@dra7xx-evm:~# ip -V
    BusyBox v1.24.1 (2019-05-14 01:27:56 IST) multi-call binary.

    Usage: ip [OPTIONS] {address | route | link | tunnel | } {COMMAND}

    And that of 'which ip' is

    root@dra7xx-evm:~# which ip
    /sbin/ip

    Regards,

    Dongwoo

     

  • Hi Dongwoo,

    Thanks for the information.

    The problem lies with the ip command. If you do an "ls -l /sbin/ip" you'd see the following-

    lrwxrwxrwx 1 karan karan 19 Mar 18 20:15 sbin/ip -> /bin/busybox.nosuid

    This is because of your "ip" is an old/cut down version and does not support some features.

    It should have been something like the following-

    lrwxrwxrwx 1 karan karan 17 Jan 31 19:36 sbin/ip -> /sbin/ip.iproute2

     

    It seems that the /sbin/ip is getting added via yocto package iproute2. Can you rebuild the same for tda2px and install the package on the filesystem?

    Regards,

    Karan

  • Hello Karan,

    Thanks for your kind feedback.

    I am building the filesystem with the reference to the document('VisionSDK_Linux_UserGuide.pdf).

    It will take a long time on my PC. After building it, I will check this issue again.

    I will update the description at that time.

    Br,
    Dong woo.

  • Hi Dong woo,

    You need to include the iproute2 for tda2px. Please provide feedback after you are done.

    Regards,

    Karan

  • Hi Karan,

    I have built filesystem with ti-processor-sdk-linux-automotive-dra7xx-evm-03.04.00.03-installer.bin.

    It already has iproute2 you mentioned.

    This issue is resolved by it.

    Thank you for your support.

    Br,

    Dongwoo.