PINE64
Does Pine64+ have an internal hardware watchdog ? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32)
+--- Thread: Does Pine64+ have an internal hardware watchdog ? (/showthread.php?tid=600)



Does Pine64+ have an internal hardware watchdog ? - rahlquist - 04-09-2016

I cant recall if there is an internal hardware watchdog or not? Anyone know?


RE: Does Pine64+ have an internal hardware watchdog ? - tllim - 04-10-2016

(04-09-2016, 11:55 PM)rahlquist Wrote: I cant recall if there is an internal hardware watchdog or not? Anyone know?

Yes, there is.


RE: Does Pine64+ have an internal hardware watchdog ? - rahlquist - 04-11-2016

(04-10-2016, 03:37 AM)tllim Wrote:
(04-09-2016, 11:55 PM)rahlquist Wrote: I cant recall if there is an internal hardware watchdog or not? Anyone know?

Yes, there is.

Is there anything special that needs to be done to set it up? Any documentation on that anywhere?


RE: Does Pine64+ have an internal hardware watchdog ? - patrickhwood - 04-14-2016

Looks like it's not set up. Only used to reboot the CPU in arch/arm64/kernel/cpu_ops_sunxi.c:

static void sunxi_sys_reset(char str, const char *cmd)
{
writel(0x0, sun50i_watchdog_base + 0xA0);
writel(1, sun50i_watchdog_base + 0xB4);
writel((0x3 << 4), sun50i_watchdog_base + 0xB8);
writel(0x01, sun50i_watchdog_base + 0xB8);
while (1)
;
}

See the reference manual: https://github.com/OLIMEX/OLINUXINO/raw/master/HARDWARE/A64-OLinuXino/PDF/Allwinner%20A64%20User%20Manual%20v1.0.pdf section 3.6 for the dirty details.


RE: Does Pine64+ have an internal hardware watchdog ? - rahlquist - 04-15-2016

(04-14-2016, 10:49 PM)patrickhwood Wrote: Looks like it's not set up. Only used to reboot the CPU in arch/arm64/kernel/cpu_ops_sunxi.c:

static void sunxi_sys_reset(char str, const char *cmd)
{
   writel(0x0, sun50i_watchdog_base + 0xA0);
   writel(1, sun50i_watchdog_base + 0xB4);
   writel((0x3 << 4), sun50i_watchdog_base + 0xB8);
   writel(0x01, sun50i_watchdog_base + 0xB8);
   while (1)
       ;
}

See the reference manual: https://github.com/OLIMEX/OLINUXINO/raw/master/HARDWARE/A64-OLinuXino/PDF/Allwinner%20A64%20User%20Manual%20v1.0.pdf section 3.6 for the dirty details.

Thank you for pointing me in the right direction!


RE: Does Pine64+ have an internal hardware watchdog ? - karlitos - 01-29-2018

Hello,

does anyone succeeded to set-up the hardware watchdog and if so, what are the necessary steps ?


RE: Does Pine64+ have an internal hardware watchdog ? - marcelser - 04-24-2018

Did really nobody every succeed int setting up the watchdog? How comes, the Pine A64 is such an unstable piece of hardware I nearly can't believe that. How do you handle crashes? I mean I use a super stabilized +5V power source with noise filter and enough power and still the PineA64 locks up every 10-15 days roughly.

Any instructions from Anybody, or is this piece of hardware really so unspported.


RE: Does Pine64+ have an internal hardware watchdog ? - psychedup - 04-25-2018

(04-24-2018, 04:01 PM)marcelser Wrote: Did really nobody every succeed int setting up the watchdog? How comes, the Pine A64 is such an unstable piece of hardware I nearly can't believe that. How do you handle crashes? I mean I use a super stabilized +5V power source with noise filter and enough power and still the PineA64 locks up every 10-15 days roughly.

Any instructions from Anybody, or is this piece of hardware really so unspported.

According to this, the watchdog is supported in the mainline kernel now: http://linux-sunxi.org/Linux_mainlining_effort

I don't know what you mean about the pine64 being unstable - I have 3 of them that are running 24x7 for at least 18 months now, and I've never seen one of them lock up.


RE: Does Pine64+ have an internal hardware watchdog ? - pfeerick - 04-26-2018

(04-25-2018, 08:26 AM)psychedup Wrote: I don't know what you mean about the pine64 being unstable - I have 3 of them that are running 24x7 for at least 18 months now, and I've never seen one of them lock up.

Indeed. I just checked my server pine64 and it's currently

Code:
[email protected]:~$ uptime -p
up 5 weeks, 1 day, 15 hours, 54 minutes

before that it was up for at least six months, I was doing some reconfiguration of the buck power supply powering it and another SBC a month ago moving it off a mains 12v supply to my solar 12v line, so it had a short nap whilst that happened. Currently running Armbian 5.38 Wink