dmesg日志上报上面截图的错误,can0的通信目前也是不正常的,如何处理这个问题,内核版本5.10.216,can0的脚本配置如下
regval=$(busybox devmem 0x0c303000)
echo $regval
if [[ "$regval" != 0x0000C400 ]]; then
echo "Enable CAN"
busybox devmem 0x0c303000 32 0x0000C400
busybox devmem 0x0c303008 32 0x0000C458
busybox devmem 0x0c303010 32 0x0000C400
busybox devmem 0x0c303018 32 0x0000C458
modprobe can
modprobe can-raw
modprobe can-dev
modprobe mttcan
fiip -details -statistics link show can0 || true
ip link set can0 down || true
ifconfig can0 down || true
# reload kernel driver
if [[ "$1" == "reset" ]]; then
rmmod mttcan
rmmod can-dev
rmmod can-raw
rmmod can
modprobe can
modprobe can-raw
modprobe can-dev
modprobe mttcan
fi
# bring up
ip link set can0 type can bitrate 250000 sjw 4 dbitrate 250000 dsjw 4 berr-reporting on fd on restart-ms 100
ip link set up can0
ip -details -statistics link show can0