We add an emergency_restart(); I attach a patch
best regards
Andrés

On Fri, May 28, 2010 at 4:43 PM, Stefan Monnier <[email protected]>wrote:

> I've been having non-reproducible hangs with my wrtsl54gs for a while
> now (after finally installing a serial console I got to see that these
> are caused by "CPU 0 Unable to handle kernel paging request at virtual
> address ...".  Any idea what that can come from?).
>
> While trying to track down this problem I discovered that the watchdog
> doesn't work either.  Since I was running a Sep-2009 firmware
> (2.6.30.7), I figured I'd first try to update it.
>
> So I just recompiled and installed a new firmware (from the backfire SVN
> branch).  And the problem stays the same:
>
> - the machine boots, which starts the busybox `watchdog' daemon.
> - I "kill <pid>" the watchdog.
> - I watch the "logread -f", which says:
>
>   May 28 17:28:18 oficina user.crit kernel: bcm47xx_wdt: Unexpected close,
> not stopping watchdog!
>   May 28 17:29:17 oficina user.crit kernel: bcm47xx_wdtWatchdog will fire
> soon!!!
>
> - the machine is now frozen (including on the serial console).
>
> I.e. it seems the reboot part is failing.  Does anybody know this
> problem or has some idea what it might come from?  Has anybody managed
> to get the watchdog to work on such a machine (or a similar one, maybe
> wl500gp or some such)?
>
>
>        Stefan
>
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>



-- 
/\ndrés
--- /home/edgardo/openwrt/backfire_10.03/build_dir/linux-brcm47xx/linux-2.6.32.10/drivers/watchdog/bcm47xx_wdt.c.ori	2010-05-12 14:22:50.573796006 -0300
+++ /home/edgardo/openwrt/backfire_10.03/build_dir/linux-brcm47xx/linux-2.6.32.10/drivers/watchdog/bcm47xx_wdt.c	2010-05-12 14:26:27.049126253 -0300
@@ -69,6 +69,7 @@
 		mod_timer(&wdt_timer, jiffies + HZ);
 	} else {
 		printk(KERN_CRIT DRV_NAME "Watchdog will fire soon!!!\n");
+		emergency_restart();
 	}
 }
 
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to