一.配置WiFi
1.在boot文件夹下,创建一个.txt文件
2.编辑文件
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
country=CN
update_config=1
network={
ssid="HUAWEI_WHT"
psk="wanghantao"
}
3.重命名该文件为 wpa_supplicant.conf
4.reboot
二.开启串口
1.在config.txt中加入
dtoverlay=uart3
dtoverlay=uart5
三.开启can
1.在config.txt中加入
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
2.重启后,在ssh里执行
dmesg | grep spi0
sudo ip link set can0 up type can bitrate 1000000
sudo ifconfig can0 txqueuelen 65536
ifconfig
3.出现can0 设备号说明驱动成功
4.安装can-utils:
sudo apt-get install can-utils