04-09-2016, 11:55 PM
04-10-2016, 03:37 AM
(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-11-2016, 08:22 AM
04-14-2016, 10:49 PM
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.
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-15-2016, 12:24 AM
(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!
01-29-2018, 03:12 AM
Hello,
does anyone succeeded to set-up the hardware watchdog and if so, what are the necessary steps ?
does anyone succeeded to set-up the hardware watchdog and if so, what are the necessary steps ?
04-24-2018, 04:01 PM
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.
Any instructions from Anybody, or is this piece of hardware really so unspported.
04-25-2018, 08:26 AM
(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-26-2018, 06:27 PM
(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