Forum Discussion
Altera_Forum
Honored Contributor
20 years agoNtp support
Is ntp in uClinux supported?
Has somebody already used ntp undex uClinux? I want to have an ntp client in my nios. I have an SNMP agent running under uClinux and I want to send a ntp synchronized clock reference with the traps. Can somebody give me some tips? thanks StePa3 Replies
- Altera_Forum
Honored Contributor
You can find the ntp client in ~/uClinux-dist-test/user/ntpclient .
http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174) - Altera_Forum
Honored Contributor
Thank you hippo,
I have found this on the altera homepage and modified it for working under uClinux. http://www.altera.com/support/examples/nio...-hello_led.html (http://www.altera.com/support/examples/nios2/exm-hello_led.html) It is working fine. I have only a little trouble: I try to set the system time with settimeofday() function. When I try to read back the value with gettimeofday() I became a wrong value? Why? bye StePa - Altera_Forum
Honored Contributor
Where is the time being stored.. do you have an on-board RTC?