View Single Post
Posts: 38 | Thanked: 128 times | Joined on Jul 2010
#1944
About the watchdog problem...

when N900 is booting up, the NOLO bootloader enables the watchdogs, apparently both OMAP and TWL4030 wdt's.
When the OS is booting up, the watchdogs are still enabled, and assumed to be reseted ASAP. We already have drivers for both watchdogs, but there is a small problem with the twl4030 driver. It does not reset the watchdog when loaded into the kernel.

The fix is simple:
--- linux.orig/drivers/watchdog/twl4030_wdt.c 2010-07-01 18:55:26.870280000 +0100
+++ linux/drivers/watchdog/twl4030_wdt.c 2010-07-01 18:42:23.044153000 +0100
@@ -247,6 +247,9 @@
twl4030_wdt_debugfs, &wdt->poweroff_on_suspend);
#endif
twl4030_wdt_dev = pdev;
+
+ twl4030_wdt_disable(wdt);
+
return 0;
}
And, in Android, just load this module in load_modules.sh.

Cheers
Jay
 

The Following User Says Thank You to Jay-C For This Useful Post: