1.2-dev
This commit is contained in:
@@ -15,9 +15,18 @@ refclock SHM 0 refid NMEA offset 0.000 precision 1e-6 poll 0 filter 3
|
|||||||
# trust means we trust this time. the NMEA will be kicked out as false ticker eventually, so we need to trust the combo
|
# trust means we trust this time. the NMEA will be kicked out as false ticker eventually, so we need to trust the combo
|
||||||
refclock PPS /dev/pps0 refid PPS lock NMEA offset 0.0 poll 3 trust
|
refclock PPS /dev/pps0 refid PPS lock NMEA offset 0.0 poll 3 trust
|
||||||
|
|
||||||
|
# enable RTC refclock
|
||||||
|
refclock PHC /dev/rtc0 poll 2 offset 0
|
||||||
|
|
||||||
# also enable logging by uncommenting the logging line
|
# also enable logging by uncommenting the logging line
|
||||||
log tracking measurements statistics
|
log tracking measurements statistics
|
||||||
|
|
||||||
|
# sync systemclock to RTC on startup
|
||||||
|
initstepslew 1 rtc
|
||||||
|
|
||||||
|
# Update RTC from system clock periodically
|
||||||
|
makestep 1 3
|
||||||
|
|
||||||
# allow local connections to ntp
|
# allow local connections to ntp
|
||||||
allow 10.0.0.0/24
|
allow 10.0.0.0/24
|
||||||
|
|
||||||
|
|||||||
@@ -59,5 +59,17 @@ echo "i2c devices"
|
|||||||
ls -lh /dev/i2c* | sort -k9
|
ls -lh /dev/i2c* | sort -k9
|
||||||
hold_for_enter
|
hold_for_enter
|
||||||
|
|
||||||
|
# rtc devices
|
||||||
|
clear
|
||||||
|
echo "rtc devices"
|
||||||
|
ls -lh /dev/rtc* | sort -k9
|
||||||
|
hold_for_enter
|
||||||
|
|
||||||
|
# hwclock status
|
||||||
|
clear
|
||||||
|
echo "hwclock status"
|
||||||
|
sudo hwclock --verbose
|
||||||
|
hold_for_enter
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
clear
|
clear
|
||||||
Reference in New Issue
Block a user