#11400 BLOC 1.75-so: Date resets to 1970 each boot

Zarro Boogs per Child bugtracker at laptop.org
Fri Nov 18 09:23:21 EST 2011


#11400: Date resets to 1970 each boot
-------------------------------------+--------------------------------------
           Reporter:  cjb            |       Owner:  cjb          
               Type:  defect         |      Status:  new          
           Priority:  blocker        |   Milestone:  1.75-software
          Component:  kernel         |     Version:  not specified
         Resolution:                 |    Keywords:               
        Next_action:  test in build  |    Verified:  0            
Deployment_affected:                 |   Blockedby:               
           Blocking:                 |  
-------------------------------------+--------------------------------------

Comment(by pgf):

 Replying to [comment:12 saadia]:
 > Is this behavior acceptable?
 > date: gives correct real time
 > hwclock: gives time since boot
 > hwclock --rtc=/dev/rtc1: gives correct real time
 >
 > We can achieve this by turning off "Set system time from RTC on startup
 and resume" which disables the flag CONFIG_RTC_HCTOSYS and
 CONFIG_RTC_HCTOSYS_DEVICE, and additionally giving the hwclock command in
 /etc/init.d/halt and reboot the argument --rtc=/dev/rtc1
 >

 i don't understand why the kernel config change was necessary.  it sounded
 like martin had that part working.  it was userspace (i.e., hwclock) that
 was broken, and a symlink might fix that (untested, of course).

-- 
Ticket URL: <http://dev.laptop.org/ticket/11400#comment:17>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list