cancel
Showing results for 
Search instead for 
Did you mean: 

Interface can0 isn't appearing in STM32MP157F-DK2

AbhijithKannan
Associate II

I enabled CAN in the device tree using STM32CubeMX and followed the instructions in the provided documentation to generate the .dtb file. Afterward, I copied the generated .dtb file to the /boot directory. In the terminal, I ran the following commands:

 

sync
reboot

 

After rebooting, I checked the dmesg log and found the following output when filtering for CAN-related messages:

 

dmesg | grep can
[ 0.451665] can: controller area network core
[ 0.451819] can: raw protocol
[ 0.451832] can: broadcast manager protocol
[ 0.451847] can: netlink gateway - max_hops=1

 

However, when I checked the available network interfaces can0 isn't avaliable

 

root@stm32mp1-e1-99-00:~#  ls /sys/class/net
end0  lo  usb0  wlan0

 

I have attached the dts file for reference

1 ACCEPTED SOLUTION

Accepted Solutions
AbhijithKannan
Associate II

I found out that the OpenSTLinux was using stm32mp157c_extlinux.conf instead of stm32mp157f_extlinux.conf. I modified it to load the dts file. After updating the dts file with clocks configuration, can0 interface appeared

View solution in original post

1 REPLY 1
AbhijithKannan
Associate II

I found out that the OpenSTLinux was using stm32mp157c_extlinux.conf instead of stm32mp157f_extlinux.conf. I modified it to load the dts file. After updating the dts file with clocks configuration, can0 interface appeared