1) Run gpsd
gpsd -n /dev/ttyS0
2) Add following lines to /etc/ntp.conf , and restart ntpd .
# Yao Fei for gpsd
server 127.127.28.0 minpoll 4 maxpoll 4
fudge 127.127.28.0 time1 0 refid GPS
server 127.127.28.1 minpoll 4 maxpoll 4 prefer
fudge 127.127.28.1 refid GPS1
阅读(1484) | 评论(0) | 转发(0) |