IFC6410: Issues with hardware clock
I've put the battery on the IFC6410's RTC and now it keeps time while it's powered off. The clock can be read but for some reason it can't set the correct time on it:
Code:
root@ifc6410:~# date For example here's the Along A13-rt713 Code:
root@headless:~# hwclock -r |
Have you tried using 'date -s', (man date).
(Need to be 'root' to set system time.) |
I think that would set the system time, not the hardware clock. (man hwclock)
I want to set the proper time on the hardware clock. |
Sorry, reading through the man page has :-
--set Set the Hardware Clock to the time given by the --date option. --date=date_string You need this option if you specify the --set or --predict func‐ tions, otherwise it is ignored. It specifies the time to which to set the Hardware Clock, or the time for which to predict the Hardware Clock reading. The value of this option is an argument to the date(1) program. For example: hwclock --set --date="2011-08-14 16:45:05" (I think I would give that a try.) |
If you look at what -w does: sets the hardware clock to the same time as the system clock, and at the message I get back from hwclock posted in the initial post...
On the IFC6410 it's failing because hwclock can't seem to set the time on the hardware clock but it can read it (-r). |
Patched the kernel with 0052-RTC-write-enabled-for-APQ8064.patch, rebuilt it, rebuilt aboot image and flashed it to boot partition.
After reboot it now works: Code:
root@ifc6410:~# hwclock -r Code:
git clone --depth 1 -b "ubuntu-ifc6410-14.10" https://git.linaro.org/landing-teams/working/qualcomm/kernel.git ubuntu-ifc6410-14.10 Advice: I tried making a more modular kernel but a lot of things broke so just stick as much as possible to the ifc6410_defconfig. |
All times are GMT -5. The time now is 11:10 PM. |