NTP移植

嵌入式移植NTP(Network Time Protocol)

左心房为你撑大大i 提交于 2019-12-07 12:32:48
ST板子OTT盒子没法通过实时码流获取时间,只能通过网络实时获取时间,这篇文档记录下自己解决的整个过程,网上已经有很多NTP 服务器配置、ARM板子移植博文,大家可以参考,详细原理我也是查阅网上的资料; 1、NTP官网下载源码: http://www.ntp.org/downloads.html 2、编译 [root@bogon ntp-4.2.6p5]#./configure --prefix=/opt/ntp --exec-prefix=/opt/ntp --host=sh4-linux CC=/opt/STM/STLinux-2.4/devkit/sh4/bin/sh4-linux-gcc 其中: If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. 通常对于嵌入式系统来说,--target、--build不需要更改; 交叉编译参数只需要指定 --host=sh4-linux 即可; 接着编译: [root@bogon ntp-4.2.6p5]# make ntp_loopfilter.c:520:27: error: ?.OD_NANO?.undeclared