文档介绍:NTPD配置指南
本配置指南适用于使用NMEA格式gps,本文假定该gps使用$GPRMC格式数据,波特率为9600bps。测试环境:操作系统,。内核linux-。ntp版本ntp-,PPS测试工具ago-pps-tools-,。。
:
$tar -xjvf linux-
$cd linux-
$cp /boot/config--12-generic .config
$make menuconfig
选择以下驱动
│┌─────────────────────────────────────────────────────────────────────┐│
││<*> PPS support ││
││[ ] PPS debugging messages ││
││*** PPS clients support *** ││
││<*> Kernel timer client (Testing client, use for debug) ││
││<*> PPS line discipline ││
││< > Parallel port PPS client ││
││*** PPS generators support ***
{*} 8250/16550 patible serial support ││
││[*] Console on 8250/16550 patible serial port ││
││<*> 8250/16550 PCI device support
$make
$make modules
$make modules_install
$make install
$reboot
选择新内核启动系统
$ cd /usr/include
$ mv linux
$ mv asm
$ mv asm-generic asm-
$ ln -s /lib/modules/$(uname -r)/build/include/linux linux
$ ln -s /lib/modules/$(uname -r)/build/arch/x86/include/asm asm
$ ln -s /lib/modules/$(uname -r)/build/include/asm-generic asm-generic
$ cd /usr/include
$ cp /usr/src/pps-tools/
$ cp /usr/src/pps-tools/
$ sudo apt-get install ntp 获取相应的配置文件
进入ntp-
$./configure --disable-all-clocks --enable-NMEA --e