View Single Post
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#145
Originally Posted by pali View Post
twl4030 watchdog can be controlled via i2c bus. You can send to watchdog one 5 bit number (0-31):

0 - disable watchdog (prevent reboot)
1-31 - enable watchdog and set reset timer to that number seconds

You cannot direclly send this number from userspace (it doing kernel driver). Also kernel driver has disabled sending "0", so when you enable watchdog you cannot disable it (without patching kernel).
Is there a good reason this isn't already patched to allow sending 0 in power kernel and cssu kernel? I.e. is there something horribly_dangerous™ about sending 0 to that watchdog? I'll probably go ask the current power kernel maintainer to do it eventually, if there isn't, just because less user choice ultimately = worse.

Originally Posted by pali
And my watchdogs program is doing it. It check for R&D flag and exit if disable omap watchdog is set.
Fair enough: I'll look into this in detail a little while later, and see if I can adapt said checks from your watchdogs binary source into my preinit mod, but personally at the moment I find installing bootmenu or manually fetching the binar to be less convenient than using busybox-power (since I already always install that), for my purposes, even knowing this issue you've pointed out, and I imagine this is true for some other people as well.
 

The Following 2 Users Say Thank You to Mentalist Traceur For This Useful Post: