- https://wiki.st.com/stm32mpu/wiki/How_to_set_up_a_SocketCAN_interface
- https://wiki.st.com/stm32mpu/wiki/How_to_send_or_receive_CAN_data
ip: either "dev" is duplicate, or "type" is garbage
cd ../build-mp1
bitbake -c menuconfig busybox
http://www.armadeus.org/wiki/index.php?title=CAN_bus_Linux_driver
https://developer.ridgerun.com/wiki/index.php/How_to_configure_and_use_CAN_bus
cd ~/Projects/yocto/build-mp1
bitbake -c menuconfig virtual/kernel
[*] Networking support --->
<*> CAN bus subsystem support --->
CAN Device Drivers --->
<*> Bosch M_CAN support
<*> Bosch M_CAN support for io-mapped devices
cd ~/Projects/yocto/build-mp1/conf
gedit local.conf
IMAGE_INSTALL:append = " can-utils"
ls /sys/class/net
ifconfig -a
ip link set can0 type can bitrate 1000000 dbitrate 2000000 fd on
ip -details link show can0
ip link set can0 up
ip -details link show can0
ip link set can0 down
ip link set can0 up type can bitrate 1000000 dbitrate 2000000 fd on loopback on
ip -details link show can0
candump can0 -L &
cansend can0 300#AC.AB.AD.AE.75.49.AD.D1
1. We have been already using the board's terminal on serial port; however we need to set up ssh for also using the terminal over Ethernet. To do so, add the following line to local.conf
cd ~/Projects/yocto/build-mp1/conf
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
EXTRA_IMAGE_FEATURES += "ssh-server-openssh"
Board $> ip addr show
PC $> ssh root@<board-ip-address>
Terminal1 $> ping www.google.com
Terminal2 $> ip link set can0 up type can bitrate 1000000 dbitrate 2000000 fd on loopback on
Terminal2 $> ip -details link show can0
Terminal2 $> candump can0 -L &
Terminal2 $> for counter in {1..20000}; do cansend can0 300#AC.AB.AD.AE.75.49.AD.D1; done