Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

PiNTP for Raspberry Pi (without hardware clock)

Last updated on 1 day ago
8
8cOv2G3NJunior Member
Posted 1 day ago
By the way, current AROS now includes the timesyncd, which also works as service, so you get the time synced on boot. Also not limited to aarch64 https://github.co...n/timesync
B
BohunDistro Maintainer
Posted 1 month ago
I've modified the system Time (Prefs) to update the time from the internet. The offset to UTC is pre-populated from the time zone settings. All that remains is to account for daylight saving time changes (summer/winter time).
retrofaza, miker1264
Bohun attached the following image:
time.png
B
BohunDistro Maintainer
Posted 1 month ago
I think such a time synchronizer should be integrated with the Prefs/Clock app. Perhaps my source code would be helpful? I'd modify it slightly to read the time zone from the settings and automatically add the additional time to UTM.
8
8cOv2G3NJunior Member
Posted 1 month ago
@Bohun Works fine, thank you! Smile
B
BohunDistro Maintainer
Posted 1 month ago
New version: https://piaros.amiga.icu/files/System/pintp.zip

usage: pintp -s -z 7200 162.159.200.123

7200 means +2 hours (7200 seconds) from UTC
B
BohunDistro Maintainer
Posted 1 month ago

deadwood wrote:

@deadwood - I see the license listed in the archives is Freeware. Are you planning to make sources available so that when there are compatibility-breaking changes to ABIv1 in future someone else can re-compile the software? Smile

Since I noticed that ntpsync wasn't working properly, I've published the source code for my program. Perhaps someone would like to use it. I've set the MIT license. Does it conflict with the AROS license?
https://github.co...miga/PiNTP
B
BohunDistro Maintainer
Posted 1 month ago
Indeed, with the latest nightly build, pintp causes the system to freeze. Ntpsync, on the other hand, can't connect to servers. I'll try rebuilding the toolchain to use the new arosa sources and recompiling pintp, but I don't know if it will be successful.
8
8cOv2G3NJunior Member
Posted 1 month ago
@Bohun I've tried it on 6 Oct nightly (684b78f8) on Raspberry Pi 3 Model B+ and when I run the pintp binary no matter what arguments, system hangs. Other applications like Amelinium work fine, network is working too. Raspberry is connected via ethernet (usblan78xx.device)
Edited by 8cOv2G3N on 07-10-2026 04:49, 1 month ago
B
BohunDistro Maintainer
Posted 2 months ago
I usually used the -s parameter and didn't have any issues; I'll have to check -v sometime.
Try
pintp -s goodtime.ijs.si
or
pintp -s 193.2.4.2
Edited by Bohun on 21-09-2026 02:11, 2 months ago
J
Jeff1138Member
Posted 2 months ago
Hi,

Thanks for making this as I got nowhere with ntpsync.

Can you confirm I have setup pintp correctly?

pintp -v goodtime.ijs.si

as this starts with [Info] line and shortly later crashes Aros
B
BohunDistro Maintainer
Posted 2 months ago
I noticed yesterday that there is already a similar program in the contrib package—it's called NTPSync or SyncNTP. It seems to be the same thing. I can certainly share my source code, but I don't think it's necessary anymore.
D
deadwoodAROS Dev
Posted 2 months ago
I see the license listed in the archives is Freeware. Are you planning to make sources available so that when there are compatibility-breaking changes to ABIv1 in future someone else can re-compile the software? Smile
B
BohunDistro Maintainer
Posted 2 months ago
I wrote a small program inspired by AveNTP to update the Raspberry Pi's system clock from the internet at system startup. It works Smile
I'll upload it to the archives.

edit:

https://archives.arosworld.org/?function=showfile&file=network/pintp.aarch64-aros.lha
Edited by Bohun on 08-09-2026 14:20, 2 months ago
retrofaza, miker1264, Farox, amigamia, deadwood, Argo, 8cOv2G3N
Bohun attached the following image:
pintp.png
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
Moderator: Administrator
Users who participated in discussion: deadwood, Jeff1138, Bohun, 8cOv2G3N