Xilinx / PYNQ

Python Productivity for ZYNQ
http://www.pynq.io/
BSD 3-Clause "New" or "Revised" License
1.99k stars 818 forks source link

time update @home network - taking 3.5 minutes to get date #185

Closed schelleg closed 8 years ago

schelleg commented 8 years ago

date call only shows correct time after 3.5 minutes. Let's force a time update on boot

image

schelleg commented 8 years ago

for reference - taking 30 seconds to get date correct on Xilinx network

yunqu commented 8 years ago

My setup at home is:

laptop is MAC OS, has WIFI connection to Internet.

Board pynqz1 is usb-powered, ethernet cable connected to laptop with static IP.

SSH-ed on the board. Found that the date almost never got corrected.

screen shot 2016-09-13 at 12 10 32 am

hackwa commented 8 years ago

Hey Rock, With static IP the date can never be corrected as ntpd fetches data from Internet.

On Sep 13, 2016 01:13, "Yun Rock Qu" notifications@github.com wrote:

My setup is:

laptop is MAC OS, has WIFI connection to Internet.

Board pynqz1 is usb-powered, ethernet cable connected to laptop with static IP.

SSH-ed on the board. Found that the date almost never got corrected.

[image: screen shot 2016-09-13 at 12 10 32 am] https://cloud.githubusercontent.com/assets/14114006/18464558/93d82864-7946-11e6-9da1-f278728a3d8d.png

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/Xilinx/PYNQ/issues/185#issuecomment-246595347, or mute the thread https://github.com/notifications/unsubscribe-auth/ACQqGUINQEdsI0qqHrvEGrF2Ly20dErkks5qpk0LgaJpZM4J6pYL .

schelleg commented 8 years ago

Adding iburst directive to ntp servers in /etc/ntp.conf takes time down to 30s - which is expected time. We will work into next image

beja65536 commented 8 years ago

Time has been updated ~30s after booting up. Needs to be integrated and tested in next image.