lazerdye Posted November 13, 2015 Posted November 13, 2015 Hi, I installed Armbian on a Cubox 4x4, I realize this was designed for a different board, but in general it works. But I found there was a problem with the system clock, it kept booting up with the time: Thu 01 Jan 2015 10:07:23 AM CET After some investigations, I found that this board has two hardware clocks: /dev/rtc0: Thu 01 Jan 2015 10:05:17 AM CET -0.616496 seconds /dev/rtc1: Fri 13 Nov 2015 08:23:47 AM CET -0.603090 seconds It looks like rtc1 has a battery and survives reboot, but /dev/rtc0 does not. I tried setting the clock using "ntpdate" on boot, but I found that something kept resetting the time. I found it is /etc/rcS.d/S06hwclock.sh that is resetting it, and I found this line: HCTOSYS_DEVICE=rtc0 When I change that to: HCTOSYS_DEVICE=rtc1 The system boots with the right time! Is this a known issue? Is this something that can be fixed in the default image? Also, some relevant lines from dmesg: [ 0.528973] rtc-pcf8523 2-0068: rtc core: registered rtc-pcf8523 as rtc0 [ 0.529403] snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc1 [ 1.295117] rtc-pcf8523 2-0068: setting system clock to 2015-01-01 09:05:12 UTC (1420103112)
Recommended Posts