ODROID-C1: How to enable the watchdog?

This forum is for supported devices using an ARMv7 Amlogic SoC.

ODROID-C1: How to enable the watchdog?

Postby attilaolah » Thu Jan 15, 2015 1:47 pm

This is a follow-up for this GitHub issue. I can't seem to find how to enable the hardware watchdog, controlled by the aml_wdt module.

I have these files under /sys:

Code: Select all
alarm ~ ls -lah /sys/bus/platform/drivers/aml_wdt
total 0
drwxr-xr-x  2 root root    0 Jan  1  1970 ./
drwxr-xr-x 69 root root    0 Jan  1  1970 ../
--w-------  1 root root 4.0K Jan 15 13:42 bind
--w-------  1 root root 4.0K Jan  1  1970 uevent
--w-------  1 root root 4.0K Jan 15 13:42 unbind


Looking at aml_wdt.c, it is not obvious to me what should I write to which of these files to enable the watchdog. Can anyone help me with this?
attilaolah
 
Posts: 7
Joined: Thu Jan 15, 2015 1:19 pm

Re: ODROID-C1: How to enable the watchdog?

Postby attilaolah » Thu Jan 15, 2015 2:01 pm

Looking again at aml_wdt.c, it seems I can enable the watchdog using the ioctl flags WDIOC_SETOPTIONS | WDIOS_ENABLECARD .

A little cumbersome but it works.
attilaolah
 
Posts: 7
Joined: Thu Jan 15, 2015 1:19 pm

Re: ODROID-C1: How to enable the watchdog?

Postby JensKrueger » Thu Jan 29, 2015 12:56 pm

I'm also trying to get the watchdog to work on the C1. Unfortunately, I'm still rather unexperienced with linux so I don't understand your solution. From what I can tell from /var/log/dmesg , i.e.,

[ 2.137483@0] aml_wdt_driver_init,301
[ 2.141057@0] ** disable watchdog

it seems it's loading the aml_wdt_driver_init driver but it's not enabled. What do I have to do to do enable it?

Cheers,
Jens
JensKrueger
 
Posts: 1
Joined: Thu Jan 29, 2015 12:53 pm

Re: ODROID-C1: How to enable the watchdog?

Postby haiku » Fri Apr 10, 2015 9:36 am

Hi,
I believe i need the same thing. My C1 is stuck for the second time :roll:
haiku
 
Posts: 96
Joined: Tue May 31, 2011 6:34 am


Return to Amlogic

Who is online

Users browsing this forum: No registered users and 1 guest

cron