This is a cache of https://discuss.96boards.org/t/enable-usb-can-devce-on-hikey/7028. It is a snapshot of the page at 2024-11-04T10:20:30.046+0000.
Enable USB CAN devce on <strong>hikey</strong> - <strong>hikey</strong> - 96Boards Forum

Enable USB CAN devce on hikey

Hi,

I want to enable USB CAN Device (eg: PEAK CAN Device) on hikey960.

I can modify the kernel and enable Kernel CAN subsystem + PEAK USB CAN Drivers. Kernel identifies my USB Device correctly but ifconfig does not list my CAN device/adapter. However, I need to use linux commands ‘ifconfig’ & ‘ip link’ to configure CAN.

  1. How can I add ‘ip link’ command to the system?
  2. What is missing in ‘ifconfig’ configuration because of which ifconfig does not list can device/adapter?

Any inputs on the above will be of great help.

Thanks & regards, Pj

Is your interface down and listed with ‘ifconfig -a’?

You device should also be listed under /sys/class/net.

You should also have some ‘can’ related messages in dmesg output.

@Loic : In dmesg I can see that the USB-CAN device was found.

‘ifconfig -a’ does not show any device.

How can I get ‘ip link’ utility ?

Please share dmesg and lsusb -t output