NTP time synchronisation on PineA64

Hi folks!

If I press "Sync with NTP-server" in Luci "System", nothing happens. Looks like something missing in the "system" file?:

nano /etc/config/system

config system
        option hostname 'OpenWrt'
        option ttylogin '0'
        option log_size '64'
        option urandom_seed '0'
        option cronloglevel '5'
        option log_proto 'udp'
        option conloglevel '8'
        option zonename 'UTC'

config timeserver 'ntp'
        list server '0.openwrt.pool.ntp.org'
        list server '1.openwrt.pool.ntp.org'
        list server '2.openwrt.pool.ntp.org'
        list server '3.openwrt.pool.ntp.org'

I doubt there is a Real Time Clock on the SBC. Does NTP function need one?

You should probably specify your timezone.

I set it to europe/vienna first, same behaviour...

According to https://openwrt.org/docs/guide-user/advanced/ntp_configuration there should be something like "ntp.enabled='1'", no?

1 Like

Actually, it should be enabled by default:

Well, but it looks like it isn't. Unfortunately I'm not familiar with "uci set" commands. Where can I find the standard conf to copy and paste into "nano"?

Simply run this:

uci set system.ntp.enabled="1"
uci set system.ntp.enable_server="0"
uci commit system
/etc/init.d/sysntpd restart

Did that, but when I set the timezone, the "ntp" section is blank as before expect for the servers.
Well it's not a big deal. Maybe because it's a SBC without RTC or something..

Thank you @vgaetera for your help

1 Like

Hi folks!

NTP works now. What was the issue? Simple. In my main router the port 123 was blocked! :grinning:

Regards, guenther

outgoing port 123 ? that's pretty uncommon

Hi frollic!

My fault! I blocked all outgoing traffic except HTTP(s), DNS and so on (Whitelist). On the OpenWrt device it was allowed, but I forgot my main router.

Edit: Btw. there is a RTC on the PineA64. It is embedded in the Allwinner chip.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.