I have a new odroid-c2 and have the rtc shield. I am not sure how to set up using the rtc. Some details are that the rtc shield is pcf8563 by NXP and am running arch linux arm on the odroid. I have checked what seems to be the relevant the modules as per:
$this->bbcode_second_pass_code('', '
[root@odroid-c2 ~]# modinfo aml_i2c
filename: /lib/modules/3.14.65-8-ARCH/kernel/drivers/amlogic/i2c/aml_i2c.ko.gz
license: GPL
description: I2C driver for amlogic
author: AMLOGIC
depends:
intree: Y
vermagic: 3.14.65-8-ARCH SMP preempt mod_unload aarch64
[root@odroid-c2 ~]# modinfo rtc-pcf8563
filename: /lib/modules/3.14.65-8-ARCH/kernel/drivers/rtc/rtc-pcf8563.ko.gz
version: 0.4.3
license: GPL
description: Philips PCF8563/Epson RTC8564 RTC driver
author: Alessandro Zummo <a.zummo@towertech.it>
srcversion: 0F5F66E259F9C7FC908586C
alias: i2c:rtc8564
alias: i2c:pcf8563
alias: of:N*T*Cnxp,pcf8563*
depends:
intree: Y
vermagic: 3.14.65-8-ARCH SMP preempt mod_unload aarch64
')
and there is some data at http://www.nxp.com/documents/data_sheet/PCF8563.pdf on the device. There also seems to be some setup info at http://odroid.com/dokuwiki/doku.php?id= ... figuration for linux but when I run hwclock -r I get:
$this->bbcode_second_pass_code('', '
[root@odroid-c2 ~]# hwclock -r
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
')
I tried to insert the module using:
$this->bbcode_second_pass_code('', '
[root@odroid-c2 ~]# insmod rtc-pcf8563
insmod: ERROR: could not load module rtc-pcf8563: No such file or directory
')
But that didn't work. I am guessing that the system needs to have some config to detect the i2c devices and enable the rtc on boot but I don't know how to do that. Does anyone have any hints on how to get this going?
The system time in the device is set within a few seconds after boot with the systemd-timesyncd daemon, so the device has the correct time soon after booting up but it would be nice to have the rtc working in addition.
Thanks in advance.