手动触发看门狗重启linux系统,今天确定了一件事情, linux的reboot命令到最后会调用看门狗的restart函数重启...

#

# reboot

# modprobe: module g_ffs not found in modules.dep

mount: mounting adb on /dev/usb-ffs/adb failed: No such device

install_listener('tcp:5037','*smartsocket*')

cannot bind 'tcp:5037'

/etc/init.d/S91mdev: line 5: can't create /proc/sys/kernel/hotplug: nonexistent directory

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

Stopping dropbear sshd: OK

Stopping network: OK

modprobe: module r8723bs not found in modules.dep

modprobe: module esp8089.ko not found in modules.dep

modprobe: module brcmfmac not found in modules.dep

ifconfig: SIOCSIFADDR: No such device

dnsmasq: failed to bind DHCP server socket: Address already in use

Stopping system message bus: Configuration file: /etc/hostapd.conf

nl80211: 'nl80211' generic netlink not found

Failed to initialize driver 'nl80211'

wlan0: interface state UNINITIALIZED->DISABLED

wlan0: AP-DISABLED

wlan0: CTRL-EVENT-TERMINATING

hostapd_free_hapd_data: Interface wlan0 wasn't started

killall: dbus-daemon: no process killed

done

Saving random seed: OK

Stopping klogd: OK

[ 18.436115] random: crng init done

Stopping syslogd: OK

umount: can't remount tmpfs read-only

umount: devtmpfs busy - remounted read-only

[ 18.646151] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)

The system is going down NOW!

Sent SIGTERM to all processes

Sent SIGKILL to all processes

[ 20.666988] reboot: Restarting system

[ 20.670694] nuc972 wdt restart ...

[   20.670694] nuc972 wdt restart ...

这是我在看门狗驱动restart函数里面添加的调试语句

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值