Hello all;
I can’t remember if there is a fix for this or not.
Basically when the USB-OTG port is connected to my PC, pulling the “power” signal low or
removing the +5V supply causes the BBB to power off briefly and then re-boot.
It seems to me that there must be a way to disable this, assuming that it is a “feature”.
Thanks ….
"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
Hello all;
It seem that the watchdog timer is automatically enabled when the USB-OTG port is connected to a PC.
I am running the latest Debian release, and I am wondering if is possible to disable watchdog after boot.
Or after a user login ?
Do I use something like “close(watchdog)” in a login script ? Or is there another/better way ??
Thanks;
Bill
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
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5646 / Virus Database: 4299/9199 - Release Date: 02/28/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 beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of toni incog
Sent: Sunday, March 01, 2015 3:11 PM
To: beagl...@googlegroups.com
--
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 beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.