<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3937</bug_id>
          
          <creation_ts>2013-02-26 05:04:44 +0000</creation_ts>
          <short_desc>[beagleboard xM] Watchdog doesn&apos;t work</short_desc>
          <delta_ts>2014-05-26 01:03:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-yocto</component>
          <version>1.4</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Kevin Hao">kexin.hao</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>corneliux.stoicescu</cc>
    
    <cc>dvhart</cc>
    
    <cc>kec200503</cc>
    
    <cc>liang.li2</cc>
    
    <cc>ning.zhang</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>ross.burton</cc>
    
    <cc>simarpreet.singh</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30099</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-02-26 05:04:44 +0000</bug_when>
    <thetext>Image location: http://autobuilder.yoctoproject.org/pub/nightly/20130220-2

Git rev:
master:7d22ef28e64de06b6238d0ef9b664c0bee6efa46

The watchdog doesn&apos;t work, it can not restart the system.

Steps:
#########
1. Boot up the system
2. echo 1 &gt; /dev/watchdog
3. After some seconds, the system should restart.
#########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30142</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-02-26 20:45:24 +0000</bug_when>
    <thetext>Note: I have no hardware or cycles to look into the beagleboard issues. So they
are a stretch for 1.4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30248</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-02-28 14:06:03 +0000</bug_when>
    <thetext>I&apos;m putting my name down as a placeholder for this, but a resource to debug it needs
to be identified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33098</commentid>
    <comment_count>3</comment_count>
    <who name="Simarpreet Singh">simarpreet.singh</who>
    <bug_when>2013-05-15 20:24:01 +0000</bug_when>
    <thetext>Tested it out on kernels 3.4.26 and 3.4.36. Watchdog is working as expected. Couldn&apos;t reproduce the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33486</commentid>
    <comment_count>4</comment_count>
    <who name="Ning Zhang">ning.zhang</who>
    <bug_when>2013-06-03 03:33:07 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Tested it out on kernels 3.4.26 and 3.4.36. Watchdog is working as expected.
&gt; Couldn&apos;t reproduce the issue.

Hi Simarpreet,

This issue still exists on my side. My target is beagleboard xM.
I used &quot;http://autobuilder.yoctoproject.org/pub/nightly/20130528-2&quot; image, poky is master:676fd3f394a0c0576b63c77ed2184bf5f42c29b6.

When input &quot;echo 1 &gt; /dev/watchdog&quot; from terminal, the board will hang in one minute, and input/output never work any more. This is not same as the expect behaviour(it should automated restart)

My test log from serial connection:


beagleboard login: 
Poky Next (Yocto Project Reference Distro) 1.4+snapshot-20130528 beagleboard ttyO2

beagleboard login: root
root@beagleboard:~# 
root@beagleboard:~# 
root@beagleboard:~# echo 1 &gt; /dev/watchdog
omap_wdt: Unexpected close, not stopping!
root@beagleboard:~# uname -r
3.4.36-yocto-standard
root@beagleboard:~#     &lt;-----it hangs here, no response any more</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41472</commentid>
    <comment_count>5</comment_count>
    <who name="Kevin Cribbs">kec200503</who>
    <bug_when>2014-03-20 00:49:08 +0000</bug_when>
    <thetext>I tested the specified scenario three times with 1.6 M3 on a Beagleboard xM rev C and it worked each time. If the problem remains, it is inconsistent.
...
root@beagleboard:~# echo 1 &gt; /dev/watchdog
watchdog watchdog0: nowayout prevents watchdog being stopped!
watchdog watchdog0: watchdog did not stop!
root@beagleboard:~# 
U-Boot SPL 2013.07 (Feb 24 2014 - 21:19:25)
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42728</commentid>
    <comment_count>6</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2014-04-18 07:13:20 +0000</bug_when>
    <thetext>This issue is also present on beaglebone black.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43448</commentid>
    <comment_count>7</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2014-05-21 14:55:22 +0000</bug_when>
    <thetext>Kevin is looking after our reference boards, assigning to him, since this is being seen on the
beaglebone black as well.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>