Yocto:设置没有NTP的日期和时间
在带有Yocto的嵌入式设备上,没有任何以太网连接,我将设置一个特定的日期,并在设备电源后保持UDPDATE。 我尝试了:
date --set '2022-05-25 11:17:00'
hwclock --utc --systohc
poweroff
但是,在dat& amp;时间上的电源被切换到旧值
相同的结果:
timedatectl
在ntp禁用时,启用了tz中的rtc local,并且可以启用系统时钟同步。
我的错误在哪里?
on my embedded device with YOCTO and none ethernet connection I would set a specific date and keep it udpdate after the device power-off.
I tryed with :
date --set '2022-05-25 11:17:00'
hwclock --utc --systohc
poweroff
but at power on the dat&time are switched back to old value
The same result using :
timedatectl
where ntp is disable, RTC local in TZ is enable and system clock synchromized is enable.
Where is my mistake?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论