- 下载ntp-4.2.8p15.tar.gz
- tar -xvf ntp-4.2.8p15.tar.gz
-
执行
./configure --host=arm-none-linux-gnueabi CC=/opt_WQ/4.9.3/bin/arm-cortexa9-linux-gnueabihf-gcc --with-yielding-select=yes
-
make
-
将ntpdate文件夹的ntdate拷贝开发部/usr/bin
scp ntpdate root@192.168.30.144:/usr/bin
-
/etc/profile加入
export TZ='cst-8'
执行sourec /etc/profile
-
加入crontab,每分钟执行一次
crontab -e * * * * * /usr/bin/ntpdate -u ntp.api.bz * * * * * /sbin/hwclock -w
ntpdate移植到ARM32平台
最新推荐文章于 2024-06-03 20:35:22 发布