#12622 NORM Not Tri: hwclock fails in select

Zarro Boogs per Child bugtracker at laptop.org
Tue Mar 12 18:26:04 EDT 2013


#12622: hwclock fails in select
--------------------------+-------------------------------------------------
 Reporter:  Quozl         |                 Owner:  rsmith       
     Type:  defect        |                Status:  new          
 Priority:  normal        |             Milestone:  Not Triaged  
Component:  not assigned  |               Version:  not specified
 Keywords:                |           Next_action:  never set    
 Verified:  0             |   Deployment_affected:               
Blockedby:                |              Blocking:               
--------------------------+-------------------------------------------------
 XO-1 build 24 of 13.1.0, if the RTC contains invalid data, hwclock fails
 during select and reports:

 {{{
 hwclock: select() to /dev/rtc0 to wait for clock tick timed out: No such
 file or directory
 }}}

 An strace shows:
 {{{
 open("/dev/rtc0", O_RDONLY|O_LARGEFILE) = 3
 stat64("/etc/adjtime", {st_mode=S_IFREG|0644, st_size=16, ...}) = 0
 open("/etc/adjtime", O_RDONLY|O_LARGEFILE) = 4
 fstat64(4, {st_mode=S_IFREG|0644, st_size=16, ...}) = 0
 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
 = 0xb76f0000
 read(4, "0.0 0 0.0\n0\nUTC\n", 4096)    = 16
 close(4)                                = 0
 munmap(0xb76f0000, 4096)                = 0
 ioctl(3, PHN_SET_REGS or RTC_UIE_ON, 0) = 0
 select(4, [3], NULL, NULL, {10, 0}
 }}}

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


More information about the Bugs mailing list