Ticket #253 (closed defect: fixed)
Time (or rather date) skew when switching between Hackable1 and SHR
| Reported by: | wastefellow | Owned by: | zecrazytux |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | applications | Version: | rev4 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
I have SHR installed on the flash memory and Hackable:1 (rev 4) installed on the sdcard.
Hackable:1 is my primary OS and that is what I use everday. But I occasionally boot into SHR to keep it updated too. I notice that if I set the date correctly in Hackable1 (by ntpdate-debian cmd) and boot into SHR, the date will be shown as one month ago. If I set correct date in SHR, the date in Hackable1 is shown as one month ahead!
To illustrate, let me take an example. Today's date is 12th Sep 2009. I do a "ntpdate-debian" in Hackable1 to make sure my time is set correctly. Then, now if I boot into SHR, the date shown there is 12th Aug 2009. If I set the date correctly there back to 12th Sep 2009, when I boot back into Hackable1, the date is shown as 12 Oct 2009.
Any idea why this is so? Is there a difference in how hackable1 and SHR write back the time to the freerunner?
Also, another observation is that the clock on my freerunner runs about 4-5 minutes slow every day. I need to regularly keep syncing the time. Is this a known issue or is it just with my freerunner?
Change History
comment:2 Changed 2 years ago by zecrazytux
- Status changed from new to assigned
- Owner changed from zecrazytux to wastefellow
ntpdate-debian, then, hwclock --systohc set the right time on the hardware clock.
That should help.
comment:3 Changed 2 years ago by wastefellow
Sorry for the late reply.
One of the main reasons I use SHR is to check on my prepaid GSM account balance. If I dial *123# I get my account balance (and most importantly "valid till" date) on screen. This is one thing missing in Hackable1. The dialer (as of rev4) doesn't show me the account balance if I dial *123#. I should probably report this in another ticket.
Here is the output of the commands:
On Hackable1:
debian-gta02:~# hwclock Wed Sep 30 08:06:48 2009 -0.861247 seconds debian-gta02:~# date Wed Sep 30 08:06:50 IST 2009 debian-gta02:~# cat /etc/adjtime -167403.656652 1254278203 0.000000 1254278203 UTC
On SHR:
root@om-gta02 ~ $ hwclock Sun Aug 30 02:50:39 2009 0.000000 seconds root@om-gta02 ~ $ date Sun Aug 30 08:20:38 IST 2009 root@om-gta02 ~ $ cat /etc/adjtime cat: can't open '/etc/adjtime': No such file or directory
I did a "hwclock --systohc" from the Hackable1. But it did not help. The date in SHR is still skewed by a month as seen above. If I set the time correctly in SHR and do a "hwclock --systohc" from there, the Hackable1 will show a skew of one month!
Please let me know if you need any further details.

Surprising... I know nothing about that
What do you use on SHR ?
what is the output of this set of commands on both SHR and H:1 ?