Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to find a way to keep the time up-to-date on my Raspberry Pi.
The RPI works on an isolated networks, so there is no chance to get the time from an NTP server, however on the network there is a Mikrotik router which could behave as an NTP server.
I enabled the ntp server service on Mikrotik, inserted the Raspberry's ip as well. In the meantime I watched the traffic with wireshark and it only broadcasts the ntp pocket to 224.0.1.1, which is a multicast address. I also edited the /etc/ntp.conf file on the RPI and inserted the ip like this:
server 0.
server 1.
server 2.
server 3.
192.168.88.2 // Mikrotik
I suppose I misconfigurated the NTP settings in Mikrotik since I see no pockets going to the RPI's ip. I'm unsure what mixture should be used regarding to these paramaters:
My goal would be this order:
1. get the time from an NTP server (in case internet is available)
2. get the time from MIkrotik (since it has an inbuilt battery)
3. get the time with the fake-hwclock daemon (if none of the above works)
I enabled the ntp server service on Mikrotik, inserted the Raspberry's ip as well. In the meantime I watched the traffic with wireshark and it only broadcasts the ntp pocket to 224.0.1.1,
If you see traffic to that address then multicast is enables. You need to disable broadcast, multicast, and manycast modes. That way it will respond to unicast requests only.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.