Repository navigation
Open /dev/watchdog before /dev/watchdog0 - #77
Merged
Merged
Conversation
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.
PR Summary by QodoPrefer /dev/watchdog so sysupgrade can detect the watchdog holder
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can see how risky a PR is at a glance with blast radius labels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
watchdog_start()tried/dev/watchdog0first. Both nodes reach the first watchdog, but OpenIPC's sysupgrade only looks for a process holding/dev/watchdog(OpenIPC/firmware#2802, where the maintainers asked for the fix to go here). With divinus on/dev/watchdog0, sysupgrade saw nobody feeding the dog, did not arm its keeper, and once divinus was stopped for the flash the camera reset in the middle of the erase:This swaps the order, so divinus opens
/dev/watchdogand still falls back to/dev/watchdog0where there is no legacy node.Testing
On FH8626V100 (fh8626v100_lite with the V4L2 backend from #72), divinus started at boot holds
/dev/watchdog, and an unmodified sysupgrade finds it:The upgrade completes and the camera boots into the new image.