Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Altera Linux - How to configure CAN bus?

Hi,

I am working with Altera Linux on a cyclone 5 development board. I am trying to enable the CAN bus and send a message.

When I try to turn on the CAN bus, I get:


root@socfpga_cyclone5:/etc# ip link set can0 up type can bitrate 125000
ip: either "dev" is duplicate, or "type" is garbage

Is there a different way to setup the CAN bus than what I am doing? How do you do this? I have read online there is a iproute2 that has support for setting up the CAN bus. I am having trouble including this in the rootfs.

It just seems to me there is CAN support in the released Altera Linux, but I am not able to start it.

A little more info:


root@socfpga_cyclone5:/etc# uname -a
Linux socfpga_cyclone5 3.11.0-00406-g9c73c70-dirty# 1 SMP Wed Oct 30 10:06:30 CDT 2013 armv7l GNU/Linux
root@socfpga_cyclone5:/etc# which ip
/bin/ip

Thanks,

John

3 Replies