1

システム時刻と GPS 時刻の同期に問題があります。U-Blox GPS レシーバーを使用しています。GPS 受信機は /dev/ttyXR4 ポート経由で正常に動作しています。現在の問題は、システムが NTP クライアントを使用して GPS 時刻を自動的に更新することです。

Gentoo マシンに gpsd と net-misc/ntp-client をインストールしました。cgps と xgps を実行しましたが、GPS 受信機は問題なく動作しています。

私のntp.confは次のようになります:(これを一度行ったのでUbuntuからコピーしましたが、Ubuntuで正常に動作します)

 pool us.pool.ntp.org iburst

driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log

restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1 mask 255.255.255.0
restrict -6 ::1

# GPS Serial data reference
server 127.127.28.0
fudge 127.127.28.0 time1 0.9999 refid GPS

# GPS PPS reference
server 127.127.28.1 prefer
fudge 127.127.28.1 refid PPS

# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict 192.168.123.0  mask  255.255.255.0 notrust

restrict 192.168.1.0  mask  255.255.255.0 nomodify

だから、誰でもこの問題で私を案内して、GPSからNTPに時間をフィードし、その後システム設定を自動的に変更できますか??

どうもありがとう :)

4

0 に答える 0