AnsweredAssumed Answered

Busybox CAN interface

Question asked by javier fernandez on Oct 19, 2017
Latest reply on Nov 29, 2017 by javier fernandez

Hi everybody,


I am working with the CAN interface on Linux distribution (Kernel 4.1.15) (my board has an i.MX6ul microprocessor) and I saw that the CAN interface can be controlled using the IP Linux command. And as well as a lot of people, when I try to set the bitrate using the following options:

   ip link set can0 up type can bitrate 125000

I received the next answer:

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

I saw that the reason of this error is that my IP command version does not implement the bitrate option, and the people recommend to install the "iproute2" package on Busybox (as it is said in this old post: Yocto busybox menuconfig). My IP command only displays:

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

However, also I saw in recent post such as:

That they are using the full IP command version and they can use the bitrate option.

on the other hand, I saw that iproute2 is discontinued and also there are people that do not recommend to install it, and recommend to keep the tiny version of IP.

Therefore, my question is the fllowing, should I install iproute2 ??(Taking into account that it does not appear on my Busyboox menuconfig) or is it possible to continue with my IP version and make the necessary changes using the file system (/sys/class/net/can0)??

any recommendation? How can I control the CAN interface? Is there any replacement for full IP command??


Thanks a lot and regards,