Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

Protip: hardware watchdog

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
Author
Message
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

Protip: hardware watchdog

  • Quote

Post by szatox » Sun Sep 04, 2022 3:01 pm

So, I've recently stumbled upon this underappreciated thing and I though someone here might find it handy:
Some arm boards come equipped with a hardware watchdog.
One notable example would be rpi4b, which I imagine is quite popular by now. I don't know about earlier versions, but if you have them, you might want to check.

Enabling hardware watchdog takes 3 steps:
1) kernel support for the available watchdog chip
2) opening /dev/watchdog to start the reset timer (closing it may or may not stop the timer, depending on kernel's config)
3) repeatedly writing to /dev/watchdog to reset the reset timer

Step 2 and 3 should probably be taken care of by a dedicated service (like, you know, "watchdog" for example). Systemd's pid 1 can also be configured to do that via variables in /etc/systemd/system.conf

I know I'm not the only one who experienced crashes, and sometimes small arm boards are used in remote locations making resetting them quite a hassle. While watchdog is obviously inferior to stuff not crashing in the first place, it can be a pretty good workaround.
Also, my rpi seems to have stopped crashing since I enabled watchdog. I knew computers can sense fear when the user is in a hurry, but now I have another point showing they can be successfully threatened into working too :lol:

Alright, folks, that's it for today.
GL&HF
Top
Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic