AnsweredAssumed Answered

RTC not saving time during power cycle on i.MX6

Question asked by Marlon Smith on May 28, 2015
Latest reply on May 29, 2015 by CarlosCasillas

Hi everyone,


I'm using an i.MX6S on custom hardware and Yocto fido with kernel 3.14.28_1.0.0.   If I set the date like this: "date 040314301984" and then run "hwclock --systohc" everything looks good.  If I type hwclock after that I get the correct time: Tue Apr  3 14:30:05 1984  0.000000 seconds


However, when I unplug my board and plug it back in, the clock does not keep the correct time.


If I run the poweroff command first, the correct time is kept, but this does not work for our product as the user will not be shutting it down but simply unplugging it.


Does anyone know how to fix this?