Skip to content

Send "shutdown complete message" over UART? #287

Answered by troglobit
hongkongkiwi asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting! When we designed a lot of the logic in Finit it was around making sure the system never shut down, but instead was kept alive and instead rebooted on error. For this we did a very tight integration with watchdogd, which I developed closely with Finit. We have very clever integration of these two, in fact, Finit comes with its own finit-watchdogd which services can be handed over to watchdogd when it starts up. As long as there's one of them available we let it do the actual reset logic -- by saving reset cause, setting the lowest WDT timeout in the kernel, and then allow the WDT to perform the board reset. If this fails, for some reason, Finit falls back to call reboot(RB_AUT…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@troglobit
Comment options

Answer selected by hongkongkiwi
Comment options

You must be logged in to vote
1 reply
@troglobit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants