From 620b57a9badcb6ccda8f78582abc0917b5118850 Mon Sep 17 00:00:00 2001 From: Difan Zhang Date: Mon, 9 Nov 2026 02:12:52 -0800 Subject: [PATCH] Opening /dev/watchdog before /dev/watchdog0 Both nodes reach the first watchdog, but OpenIPC's sysupgrade looks only for a process holding /dev/watchdog. A divinus holding /dev/watchdog0 was not found, so the keeper was never armed and the camera reset in the middle of the flash erase once divinus was gone. --- src/watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watchdog.c b/src/watchdog.c index 2143edb9..91fecc95 100644 --- a/src/watchdog.c +++ b/src/watchdog.c @@ -9,7 +9,7 @@ void watchdog_reset(void) { int watchdog_start(int timeout) { if (fd) return EXIT_SUCCESS; - const char* paths[] = {"/dev/watchdog0", "/dev/watchdog", NULL}; + const char* paths[] = {"/dev/watchdog", "/dev/watchdog0", NULL}; const char **path = paths; while (*path) {