Links |
My 4801 NanoBSD NTP server(This page is mostly for historical interest) I downloaded my original NanoBSD (FreeBSD 6.2-STABLE) Compact Flash image from here, and have a copy stored on DropBox in case that one ever goes away. (warning - file is 44Mbyte) config files: The GPS is connected via the 2nd serial port (This is all typed while logged into the 4801 over a serial cable using minicom, the /cfg/ files get copied over the /etc/ ones at boot) first mount the config files so we can edit them. #mount /cfg then enable the /dev/gps0 -> /dev/ttyd1 symlink at boot #echo "link ttyd1 gps0" >> /cfg/devfs.conf start dhcp on sis0 ethernet port so we get working network #echo "background_dhclient=yes" >> /cfg/rc.conf.local #echo "ifconfig_sis0=DHCP" >> /cfg/rc.conf.local now set up ntp server with PPS from the GPS unit (add more servers if you want) #echo "enable pps" >> /cfg/ntp.conf #echo "server 127.127.20.0 mode 2 prefer" >> /cfg/ntp.conf #echo "restrict 127.0.0.1" >> /cfg/ntp.conf #echo "restrict ::1" >> /cfg/ntp.conf #echo "restrict -4 default kod notrap nomodify nopeer" >> /cfg/ntp.conf #echo "restrict -6 default kod notrap nomodify nopeer" >> /cfg/ntp.conf #echo "driftfile /etc/ntp.drift" >> /cfg/ntp.conf #echo "0" >>/cfg/ntp.drift and finish up #umount /cfg #reboot |