超载拖拉机 发表于 2023-5-18 17:31:02

OK3568开发板配置NTP同步时间

求问,OK3568如何配置NTP服务,用以自动同步开发板时间

超载拖拉机 发表于 2023-5-18 17:35:16


Linux ok3568 4.19.206 #1 SMP Tue Aug 23 07:59:17 UTC 2022 aarch64 GNU/Linux

Welcome to RK356X Buildroot

GST_V4L2_PREFERRED_FOURCC=NV12:YU12:NV16:YUY2
USER=root
WESTON_DRM_DISABLE_MODIFIER=1
WESTON_DISABLE_ATOMIC=1
SHLVL=1
OLDPWD=/
HOME=/
PIXMAN_USE_RGA=1
GST_VIDEO_CONVERT_USE_RGA=1
PAGER=/bin/more
PS1=[\u@\h:\w]#
QTWEBENGINE_CHROMIUM_FLAGS=--no-sandbox --disable-es3-gl-context --ignore-gpu-blacklist --ignore-gpu-blocklist --enable-accelerated-video-decode
QT_GSTREAMER_PLAYBIN=playbin3
QT_GSTREAMER_WIDGET_VIDEOSINK=waylandsink
WESTON_DRM_KEEP_RATIO=1
TERM=vt102
GST_VIDEO_CONVERT_PREFERRED_FORMAT=NV12:NV16:I420:YUY2
PATH=/bin:/sbin:/usr/bin:/usr/sbin
XDG_RUNTIME_DIR=/var/run
GST_DEBUG_NO_COLOR=1
GST_V4L2_USE_LIBV4L2=1
SHELL=/bin/sh
storagemedia=emmc
QT_QPA_PLATFORM=wayland
PWD=/root/root/test
WESTON_DRM_MIRROR=1
QT_GSTREAMER_WINDOW_VIDEOSINK=waylandsink
PREFERED_VIDEOSINK=waylandsink
GST_VIDEO_FLIP_USE_RGA=1
EDITOR=/bin/vi

huhj 发表于 2023-5-19 17:01:42

在OK3568-linux-source/buildroot/configs/OK3568_defconfig中添加
+BR2_PACKAGE_NTP=y
+BR2_PACKAGE_NTP_SNTP=y
+BR2_PACKAGE_NTP_NTP_WAIT=y
+BR2_PACKAGE_NTP_NTPD=y
+BR2_PACKAGE_NTP_NTPDATE=y
+BR2_PACKAGE_NTP_NTPQ=y
+BR2_PACKAGE_NTP_NTPTIME=y
+BR2_PACKAGE_NTP_TICKADJ=y

然后删除OK3568-linux-source/buildroot/output/OK3568/build/ntp-4.2.8p10文件
从新编译刷机即可
页: [1]
查看完整版本: OK3568开发板配置NTP同步时间