Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
1,029 Views

NTPd on IoT Dev Kit image for galileo

Hello

Whats the best way to get ntp installed on the IoT dev kit linux image for galileo?

It doesnt seem to be on the package list visible through "opkg list"

Are there alternatives to ntpd for network time sync?

thanks

5 Replies
Highlighted
Honored Contributor I
6 Views

Re: NTPd on IoT Dev Kit image for galileo

- connman has a sort of "ntpd light" built in

- rdate should come with the Galileo image as well

Highlighted
Honored Contributor I
6 Views

Re: NTPd on IoT Dev Kit image for galileo

Thanks. I couldnt find the right commands for connman but rdate worked.

I'm putting the steps here for others

Install the tzdata package as the first step

01root@quark00c8dc:/# opkg install tzdata

02

03It would give files for the different timezones as below

04root@quark00c8dc:/<code class="comments" style="font-size: 1em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0 !important; padding: 0 !important; color: # 008200 !important; background: no...
Highlighted
Honored Contributor I
6 Views

Re: NTPd on IoT Dev Kit image for galileo

are you sure you are using the SD card image from Intel(R) IoT developer kit on https://software.intel.com/en-us/iot/downloads https://software.intel.com/en-us/iot/downloads?

- the connman built in "ntpd light" is run automatically

- ntpd is installed there by default

- tzdata also already installed

0 Kudos
Highlighted
Honored Contributor I
6 Views

Re: NTPd on IoT Dev Kit image for galileo

Hey

Yes I have the official SD card image from there.

I couldnt run ntpd, and the help for connman seems to only provide wifi/bluetooth stuff.

If it was running, it was setting to wrong date. It was also stuck at the wrong date (Sep 3) and it didnt seem to move ahead so I was thinking it wasnt doing any resets from the network.

I got tzdata from the package manager, it wasnt there by default.

Maybe I have a slightly old image, and the opkg upgrade didnt do all the new features by default?

thanks

GS

0 Kudos
Highlighted
Honored Contributor I
6 Views

Re: NTPd on IoT Dev Kit image for galileo

How do you mean "couldn't run ntpd"?

1# ntpd

2BusyBox v1.22.1 (2014-08-14 18:40:30 BST) multi-call binary.

3

4Usage: ntpd [-dnqNw] [-S PROG] [-p PEER]...

It might not come with all standard options so possibly if the time skew is too big it will fail as there is no "-g" option, i.e. you'd have to run something like rdate to set an initial date but then it should work to sync the date.

@connman "ntpd": I have seen issues in certain restricted networks. However, at least for me at home it works great - after a short time I have the correct date after booting.

I currently also don't seem to have latest version installed:

<div class="alt1 line" style="margin: 0 !important; padding: 0 !important; font-size: 1em !important; background-position: initial ...
0 Kudos