Hi Toni;

 

I think I have it figured out.

I have an image that works and one that doesn’t.

 

Watchdog Not enabled:

Linux beaglebone 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l 
GNU/Linux

 

Watchdog enabled:

Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l 
GNU/Linux

 

Image “bone47” works like yours does. Clean shutdown with no reboot and no 
“watchdog enabled” boot message.

It would appear that this was changed by version “bone50” <sigh>

 

Thanks to Google, I found a code snippit, that should work.

 

====================================================

dev = WATCHDOGDEV;

/* Once the watchdog device file is open, the watchdog will be activated by

      the driver */

   fd = open(dev, O_RDWR);

   if (-1 == fd) {

      fprintf(stderr, "Error: %s\n", strerror(errno));

      exit(EXIT_FAILURE);

   }

 

   /* The 'V' value needs to be written into watchdog device file to indicate

      that we intend to close/stop the watchdog. Otherwise, debug message

      'Watchdog timer closed unexpectedly' will be printed

    */

   write(fd, "V", 1);

   /* Closing the watchdog device will deactivate the watchdog. */

   close(fd);

======================================================

 

I just have to run it after login (I think).

 

Later;

 

Bill

 

"No one could make a greater mistake than he who did nothing because he could 
do only a little."

"All that is necessary for the triumph of evil is that good men do nothing" 
Edmond Burke (1729 - 1797)

http://www.packtpub.com/building-a-home-security-system-with-beaglebone/book

http://ca.linkedin.com/pub/bill-pretty/2b/b07/602

 

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of toni incog
Sent: Sunday, March 01, 2015 3:11 PM
To: [email protected]
Subject: [beagleboard] Re: Enable / disable watchdog timer ?

 

Ok, when I powered up with 5V and usb-otg connected to pc and I shortly press 
the power button I can replicate: clean shutdown and instant reboot 

Don't know where the reboot is coming from.

here's pmic:
[ 2.897350] input: tps65217_pwr_but as 
/devices/ocp.3/44e0b000.i2c/i2c-0/0-0024/input/input0

wrt. watchdog: I assume you mean /dev/watchdog I don't think I have it active. 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5646 / Virus Database: 4299/9178 - Release Date: 02/25/15

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to