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.

canbus does not work because of iproute2

Hi everyone,

I have made my own filesystem with buildroot. When i config buildroot, i selected iproute2 support and can-utils.

But, when i type 

"ip link set can0 type can bitrate 125000 "

this command gives below output

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

Then i type  "ip -V" to check iproute2 it gives 

"BusyBox v1.19.3 (2012-02-16 14:41:41 EET) multi-call binary

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

ip [OPTIONS] OBJECT {COMMAND}

where OBJECT := {address | route | link | tunnel | rule } 

OPTIONS := {-f [amily] {inet | inet6 | link } -o[neline]  }

but it has to show this output instead of the output above;

ip utility, iproute2-ss090324

What should i do to enable/configure canbus ? 

Thanks in advance,
  • Hi Hakan,

    1. Check the ip utility whether it's support can or not?

    http://processors.wiki.ti.com/index.php/DCAN_Driver_Guide#ip

    If not use latest iproute2 utilities.

    2. For building the ip utility follow the steps mentioned at http://processors.wiki.ti.com/index.php/DCAN_Driver_Guide#CAN_Utilities

    3. Copy ip utility to target filesystem under /sbin/. and rename to /sbin/ip.route2

    Regards

    AnilKumar

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

  • Thanks Anil,

    I just deleted the /bin/ip  and it works. I think the device first look at the /bin folder and if "ip" doesn't exist then

    the device use /sbin/ip and this is works for me