sudo tee /etc/systemd/system/modem-shutdown.service >/dev/null <<'EOF'
[Unit]
Description=Stop modem remoteproc before shutdown
DefaultDependencies=no
Before=shutdown.target reboot.target halt.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStop=/bin/sh -c "echo stop | tee /sys/class/remoteproc/remoteproc*/state"
[Install]
WantedBy=halt.target reboot.target shutdown.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now modem-shutdown.service
sudo systemctl poweroff

大概率是 modem 在关机时未收到 stop 指令,导致 watchdog 超时,触发 crashdump。
© 版权声明
- 1、本网站名称: 赵志强的博客
- 2、本站永久网址:https://bk.zhaozhiqiang.pw/
- 3、本网站的文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系站长进行删除处理。
- 4、本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。
- 5、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
- 6、本站资源大多存储在云盘,如发现链接失效,请联系我们我们会第一时间更新。
- 7、文章版权归作者所有,未经允许请勿转载。
THE END












暂无评论内容