UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 65243

PetaLinux 2014.4 - The "ip" Command Fails to Properly Locate CAN Devices

Description

I am using the Zynq-7000 CAN driver by following the steps on the wiki page:

http://www.wiki.xilinx.com/Linux+CAN+driver

However, when I run the ip command, I receive the following error message:

root@Xilinx-ZC706-2014_4:~# ip link set can0 type can bitrate 200000
ip: either "dev" is duplicate, or "type" is garbage

Solution

To work around this issue, follow the steps below:

Add the iproute package to the root filesystem of the PetaLinux project using the petalinux-config command:

$ petalinux-config -c rootfs

In the menuconfig for the root filesystem, navigate to the location below and add iproute2:

Filesystem Packages ---> base ---> iproute2 ---> [*] iproute2

AR# 65243
Date Created 08/18/2015
Last Updated 09/23/2015
Status Active
Type General Article
Devices
  • Zynq-7000
Tools
  • PetaLinux - 2014.4