Re: vcan OpenWRT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sergio,

On 12.07.22 17:41, Sergio Alberto Valdivia wrote:
Hi my name is Sergio, I’m trying to use can-utils in an Onion Omega 2 pro, which runs OpenWRT.

I have already installed the can-utils packages, but when I try to create a virtual CAN interface I get the following error: failed to find a module named vcan.

You need to install the vcan kernel module first.

E.g. on OpenWrt 21.02.3 it looks like this:

# opkg update

# opkg list | grep vcan
kmod-can-vcan - 5.4.188-1 - Similar to the network loopback devices, vcan offers a virtual local CAN interface.

# opkg install kmod-can-vcan
Installing kmod-can-vcan (5.4.188-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/ath79/generic/packages/kmod-can-vcan_5.4.188-1_mips_24kc.ipk
Installing kmod-can (5.4.188-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/ath79/generic/packages/kmod-can_5.4.188-1_mips_24kc.ipk
Configuring kmod-can.
Configuring kmod-can-vcan.

# lsmod | grep vcan
vcan                    2192  0

There we are ;-)

# ip link add type vcan

Then you can see vcan0 in

# cat /proc/net/dev

Best regards,
Oliver



[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux