I have a duovero and am unable to use the hardware clock to restore system time.  I am using the 3.6 ubuntu build. The kernel was built with support for the I2C rtc corresponding to the twl.  I would appreciate any thoughts on getting this clock up and running.  Below are the results of my dabbling so far:

Thanks,
Tony


dmesg gives the follwing

twl_rtc twl_rtc: Power up reset detected.
twl_rtc twl_rtc: Enabling TWL-RTC
twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[cut]
twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)

hwclock then returns the following error:
>hwclock
hwclock: select() to /dev/rtc0 to wait for clock tick timed out: No such file or directory

however, the file exists and the subsequent command __appears__ to work:

>hwclock -f/dev/rtc0 -s (or -w)
hwclock: select() to /dev/rtc0 to wait for clock tick timed out: Success

but the clock isn't getting set (either system ->RTC or vice versa)

The debug information is:
>hwclock -D -f/dev/rtc0
hwclock from util-linux 2.20.1
Using /dev interface to clock.
Last drift adjustment done at 1357002501 seconds after 1969
Last calibration done at 1357002501 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
hwclock: select() to /dev/rtc0 to wait for clock tick timed out: Success
...synchronization failed

finally, it looks like I am seeing no interrupts  [output trimmed to just what I thought might be relevant]
>cat \proc\interrupts
         CPU0       CPU1       
  5:          0          0   twl6040  twl6040_irq_ready
 39:          6          0       GIC  TWL6030-PIH
 69:      31133          0       GIC  gp_timer
356:          0          0   twl6030  twl6030_usb
362:          0          0   twl6030  twl6030_usb
363:          0          0   twl6030  rtc0
368:          3          1   twl6030  mmc0
419:          1          0      PRCM  hwmod_io
IPI0:          0          0  Timer broadcast interrupts





Anthony Miller, Ph.D.
Entanglement Technologies
42 Adrian Court
Burlingame, CA 94010