Overview of additional packages: AdditionalPackages

NTP daemon

Maintain your clock in sync with the world and serve it to other clients.

Features

The WL-500g's firmware includes a copy of ntpclient. It is used to set the system time at boot. It also seems to be run every once in a while by the watchdog. But you can also have it running in the background, constantly tracking your upstream server.

The ntpclient however, is not an NTP server. If you want an NTP server, you have two options: ntpd or openntpd.

openntpd has the following caracteristics:

ntpd has the following caracteristic:

Download

Pre-compiled packages can be downloaded here: http://www.iro.umontreal.ca/~monnier/wl500g

Source

The source code can be downloaded here: http://www.openntpd.org/ and http:/.www.ntp.org/.

Compiling

Both packages required some fiddling to get them to compile.
The openntpd binary has additional experimental personal changes.

Installation

Note: This installation guide assumes Flashfs-boot method for storing user configuration. Anyone using the BootCmds should migrate. More info is available here: FlashfsBoot.

Place the binary in /usr/local/sbin and run it from /usr/local/init/post-boot. The openntpd config file should go to /usr/local/etc/ntpd.conf whereas the ntpd config file needs to be put in /etc/ntp.conf.
Note that both daemons assume that the clock is almost correct at startup, so you still need to let the startup scripts run ntpclient to set the initial time.

Note: The flashfs partition for storing the user configuration is only 64Kb in size. You must be sure not to store more into the flashfs then this amount, so only ntpd can be stored in flash. Openntpd needs to be stored on an external USB device. Check the FlashfsBoot page for more info.

Related Links

Elsewhere:

Known problems