On 12.07.22 23:18, Sergio Alberto Valdivia wrote:
Thank you very much, I guess I have a previous version of OpenWRT because it can’t find the vcan module.
OpenWrt 21.02.3 is the latest stable version.
You should upgrade your system to stay secure!
Have fun!
Oliver
Sergio A. Valdivia
El 12 jul 2022, a la(s) 3:30 p.m., Oliver Hartkopp <socketcan@xxxxxxxxxxxx> escribió:
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