Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem with cubox-4x4 and system time

Featured Replies

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)
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.