[worked around] ntpd beaglebone black

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

[worked around] ntpd beaglebone black

Postby eslarsen » Fri Mar 28, 2014 12:07 pm

So after trying for a looong time I'm still unable to make ntpd work on my beaglebone black.

ntpd I've given up on until I can at least make it sync once with ntpdate.

So, here it is.
If I _actually_ try to sync my clock, this happens every time:
$this->bbcode_second_pass_code('', '
$ ntpdate -v no.pool.ntp.org
25 Mar 12:48:35 ntpdate[883]: ntpdate 4.2.6p5@1.2349-o Tue Mar 11 05:55:15 UTC 2014 (1)
25 Mar 12:48:44 ntpdate[883]: no server suitable for synchronization found
')

If however I just pretend to sync, it successes every time:

I have no idea what to try anymore, have tried dozens of settings and configs.
$this->bbcode_second_pass_code('', '
[root@blackarch eivind]# ntpdate -vd no.pool.ntp.org
25 Mar 12:49:20 ntpdate[884]: ntpdate 4.2.6p5@1.2349-o Tue Mar 11 05:55:15 UTC 2014 (1)
Looking for host no.pool.ntp.org and service ntp
host found : ntp-ext.cosng.net
transmit(139.112.153.37)

.... MUCH OUTPUT ....


25 Mar 12:49:26 ntpdate[884]: step time server 91.189.182.32 offset 260161.465067 sec
')

The clock right now i set manually with date so that certificates can validate...

Anyone else seen this on arch linux arm?
Last edited by eslarsen on Sat Mar 29, 2014 12:27 pm, edited 1 time in total.
eslarsen
 
Posts: 5
Joined: Fri Mar 28, 2014 12:02 pm

Re: ntpd beaglebone black

Postby pepedog » Sat Mar 29, 2014 10:55 am

Tried iburst?
https://wiki.archlinux.org/index.php/Ne ... col_daemon
You could try your ISP's time server, maybe even use IP address
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ntpd beaglebone black

Postby eslarsen » Sat Mar 29, 2014 12:25 pm

I worked around this by using sntp to sync time on boot.

It didn't work at first though, as even though I told the boot script to require network and dns:

After=network.service snss.service
Required=network.service snss.service

They were never ready when the boot script ran.

Not until I switched to the new systemd-network, then dns and network was up in time for the boot script.

So solved/worked around, but not ideal. ntpd still does not actually work nor do anything, but at least I have the clock in the correct ballpark and can validate certificates.
eslarsen
 
Posts: 5
Joined: Fri Mar 28, 2014 12:02 pm

Re: [worked around] ntpd beaglebone black

Postby PLyttle » Sun Mar 30, 2014 9:59 am

Try openntpd instead

$this->bbcode_second_pass_code('', 'sudo pacman -S openntpd
sudo systemctl enable openntpd
sudo systemctl start openntpd
')
success LP
PLyttle
 
Posts: 120
Joined: Mon Jun 10, 2013 6:52 am


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 5 guests