<?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>767</bug_id>
          
          <creation_ts>2011-02-24 00:20:08 +0000</creation_ts>
          <short_desc>[beagleboard] Can not set RTC correctly</short_desc>
          <delta_ts>2011-06-28 23:30:43 +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-configuration</component>
          <version>1.0</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>patches out for review (17-Jun-2011)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>dvhart</cc>
    
    <cc>jefro</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.bsp.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12045</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-02-24 00:20:08 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.10 x86_64
Kernel: 2.6.35-25-generic

beagleboard kernel and rootfs from weekly build 20110221
http://autobuilder.pokylinux.org/nightly/20110221-1/machines/beagleboard/arm/

u-boot environment setting:
###########
setenv optargs &apos;omapdss.def_disp=dvi vram=12M omapfb.mode=&quot;dvi:800x480MR-16@60&quot;
video=omapfb.vram:0:4M,1:4M,2:4M omapfb.debug=y omapdss.debug=y&apos;
setenv console ttyO2,115200n8;mmcinit;fatload mmc 0 0x80800000 uImage.bin;run
mmcargs; bootm 0x80800000
###########

Steps:
###########
root@beagleboard:~# hwclock -r
Sat Jan  1 00:00:00 2000  0.000000 seconds
root@beagleboard:~# date 060708092011
Tue Jun  7 08:09:00 UTC 2011
root@beagleboard:~# date
Tue Jun  7 08:09:08 UTC 2011
root@beagleboard:~# hwclock -w
root@beagleboard:~# hwclock -r
Sat Jan  1 00:00:00 2000  0.000000 seconds
root@beagleboard:~# 
#############

More info:
############
root@beagleboard:~# dmesg |grep rtc -i
twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
twl_rtc twl_rtc: Power up reset detected.
twl_rtc twl_rtc: Enabling TWL-RTC.
twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
#############</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12061</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-02-24 06:56:52 +0000</bug_when>
    <thetext>Did this work in the 2.6.34 kernel ? Again, just trying to establish if
this is a regression.

Chances are this is just a configuration issue on the 2.6.37 kernel, since
the twl rtc should handle this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12102</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-02-24 20:22:48 +0000</bug_when>
    <thetext>I tested a 2.6.34 kernel from autobuilder weekly build 20110126:

uImage-2.6.34+git0+b67e060194a38c6331da1532bd06446087a42b3b_0+0431115c9d720fee5bb105f6a7411efb4f851d26-r12-beagleboard-20110127143833.bin

poky-image-sato-beagleboard-20110127162807.rootfs.tar.bz2

With this build, the RTC also can not set correctly.

#################
root@beagleboard:~# dmesg|grep rtc -i
twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
twl_rtc twl_rtc: Enabling TWL-RTC.
twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
root@beagleboard:~# hwclock -r
Sat Jan  1 00:00:00 2000  0.000000 seconds
root@beagleboard:~# date 060708092010
Mon Jun  7 08:09:00 UTC 2010
root@beagleboard:~# hwclock -w
root@beagleboard:~# date
Mon Jun  7 08:09:04 UTC 2010
root@beagleboard:~# hwclock -r
Sat Jan  1 00:00:00 2000  0.000000 seconds
##################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12349</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-03-07 21:38:42 +0000</bug_when>
    <thetext>With the 20110305 build images form http://autobuilder.yoctoproject.org/nightly/20110305-4/machines/beagleboard/arm/, this issue still happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12836</commentid>
    <comment_count>4</comment_count>
    <who name="Jeff Osier-Mixon">jefro</who>
    <bug_when>2011-03-18 10:26:25 +0000</bug_when>
    <thetext>Hi all - I just wanted to comment that you must make sure your BeagleBoard has a RTC batter installed in order to get RTC to work. This is a known issue in the community but it is not documented in the most visible way. If the battery is installed and RTC is still not working, I&apos;d be happy to contact the board&apos;s maintainers to find out what is going on - there may be an obscure patch necessary.

Jefro</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12853</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-03-20 19:05:29 +0000</bug_when>
    <thetext>Thanks Jeff, I&apos;ve got the contacts to dig into this one when the
time comes. Chances are this is just our boards or the config, and
we&apos;ll address this via the beagleboard revisit post 1.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14212</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-07 17:09:14 +0000</bug_when>
    <thetext>does this require something like the zippy2 add on board or should this work with just the bbxm or the bb c4 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14214</commentid>
    <comment_count>7</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-06-07 18:37:18 +0000</bug_when>
    <thetext>Is Jeffro still watching this bug ? He can dig it up, or we can ask TI directly, I&apos;m honestly not sure
if the beagleboard comes populated with a RTC without a addon board. From what I&apos;ve read,
you DO need the zippy board to get the battery backed up RTC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14215</commentid>
    <comment_count>8</comment_count>
    <who name="Jeff Osier-Mixon">jefro</who>
    <bug_when>2011-06-07 19:17:49 +0000</bug_when>
    <thetext>Saw this go by &amp; forwarded to the Beagle guys, hope to have an answer tomorrow. I have a memory that you can install a battery with a board much smaller/cheaper than the zippy, although the zippy does also give other benefits on a rev C.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14447</commentid>
    <comment_count>9</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-28 09:07:53 +0000</bug_when>
    <thetext>Fix included in:

commit ee4dd303b6667a691ed6093b13c226a7466ee31e
Author: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
Date:   Wed Jun 22 16:00:01 2011 -0400

    linux-yocto/meta-yocto: update yocto/standard and beagleboard SRCREVs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14461</commentid>
    <comment_count>10</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-06-28 23:30:43 +0000</bug_when>
    <thetext>Verified it with 20110625 build on beagleboard C4

Tree/Branch: Poky/Master
Poky Commit: a1f79a7896b6411669b3ccada6204d2695e80fc5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>