https://blog.csdn.net/qq_41426807/article/details/124669265
http://www.arm-cn.com/thread-1190-1-1.html
https://blog.csdn.net/weixin_40603219/article/details/123589075
官方文档:https://docs.nvidia.com/jetson/archives/r34.1/DeveloperGuide/text/SD/Clocks.html
推测之前修改不成功可能是因为版本对应文件不正确,后面同时修改了tegra194-p2888-0001-p2822-0000.dtb和tegra194-p2888-0004-e3900-0000.dtb
查看时钟类型:
sudo cat /sys/kernel/debug/bpmp/debug/clk/can1/parent
cat /proc/device-tree/mttcan@310000/pll-source
can配置:
# can_enable.sh sudo busybox devmem 0x0c303000 32 0x0000C400 sudo busybox devmem 0x0c303008 32 0x0000C458 sudo busybox devmem 0x0c303010 32 0x0000C400 sudo busybox devmem 0x0c303018 32 0x0000C458 sudo modprobe can sudo modprobe can_raw sudo modprobe mttcan #设置can口 sudo ip link set can0 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on restart-ms 100 sudo ip link set can1 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on restart-ms 100 #开启can口 sudo ip link set up can0 sudo ip link set up can1
查看波特率是否设置准确:
sudo ip -d -s link show can0