Does Pine64+ have an internal hardware watchdog ?
#1
I cant recall if there is an internal hardware watchdog or not? Anyone know?
  Reply
#2
(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.
  Reply
#3
(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?
  Reply
#4
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.
  Reply
#5
(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!
  Reply
#6
Hello,

does anyone succeeded to set-up the hardware watchdog and if so, what are the necessary steps ?
  Reply
#7
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.
  Reply
#8
(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.
  Reply
#9
(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:
p[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
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Pine64 (analog) Audio Jack Output w/ Kernel 4.19 ecolezen 0 240 01-24-2019, 07:00 AM
Last Post: ecolezen
  PINE64 STEREO AUDIO DAC POT jtgiroux 0 266 01-12-2019, 04:56 PM
Last Post: jtgiroux
  Using the pine64 with AVR - HDMI pass-through Moshe.Vazan 4 891 01-02-2017, 02:58 PM
Last Post: Moshe.Vazan
Question Different Hardware Versions ? bongo 3 593 12-13-2016, 12:11 PM
Last Post: MarkHaysHarris777
  I dropped my Pine64 DukeJustice 17 1,612 11-07-2016, 07:23 PM
Last Post: DukeJustice
  pine64+ cad files danlcarr 1 672 08-31-2016, 08:26 AM
Last Post: martinayotte
  Pine64+: 3 working, 1 shows nothing on tv zumtra 1 635 07-30-2016, 05:47 PM
Last Post: tllim
  mounting root filesystem via NFS on pine64+ issue martind1983 2 1,298 07-29-2016, 06:37 AM
Last Post: martind1983
  Cannot get PINE64 boards to boot andymelton 13 1,869 07-06-2016, 09:20 AM
Last Post: montero65
  Pine64 2G never up w/ strange Chinese words + w/o S/N tankie64 1 648 05-13-2016, 04:36 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)