PINE64

Full Version: Does Pine64+ have an internal hardware watchdog ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I cant recall if there is an internal hardware watchdog or not? Anyone know?
(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.
(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?
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/...20v1.0.pdf section 3.6 for the dirty details.
(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/...20v1.0.pdf section 3.6 for the dirty details.

Thank you for pointing me in the right direction!
Hello,

does anyone succeeded to set-up the hardware watchdog and if so, what are the necessary steps ?
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.
(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.
(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:
pfeerick@pine64-server:~$ 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