HowToConfigureNTP - norikuro/Armadillo-IoT GitHub Wiki

How to configure NTP

there is 2 ways to set ntp.

But first of all you need set hardware time correctly. please see "how to configure system clock" page.

  1. use ntpclient
  2. use ntpd

important: you need ntpd library if you want to use ntpd, please see "1. How to build Armadillo Linux"

1. if you want to use ntpclient at every boot, configure /etc/config/rc.local

vi /etc/config/rc.local

add following line in rc.local file

ntpclient -h IP -s

IP: ntp server ip or FQDN

flash interfaces to ROM.

flatfsd -s

2. if you want to use npd at every boot, create ntp.conf file in /etc/config

vi /etc/config/ntp.conf

add following line in ntp.conf file

server ntp.nict.jp

configure /etc/config/rc.local

vi /etc/config/rc.local

add following line in rc.local file

ntpd -c /etc/config/ntp.conf &

flash interfaces to ROM.

flatfsd -s