am335x system upgrade rootfs real time sync

本文档详述了在Ubuntu 16.04系统下如何进行实时时间同步。内容包括功能需求,即在该系统上实现时间同步;描述了默认的armbian rootfs启用了fake-hwclock服务及其工作原理,指出系统重启时可能出现的时间不一致问题,并提供了启用、禁用ntp服务以修正时间的方法。
摘要由CSDN通过智能技术生成

1 Scope of Document
This document describes real time sync under ubuntu 16.04

2 Requiremen
2.1 Function Requirement
Under ubuntu 16.04 done time sync.

2.2 Performance Requirement
NA

3 Hardware Overview
4 Functional Description
4.1 Overview
Default armbian rootfs enable fake-hwclock service.fake-hwclock sets and queries a fake “hardware clock” which stores the time in a file.This program may be run by the system administrator directly but is typically run by init(to load the time on startup and save it on shutdown) and cron (to save the time hourly).

What’t the bugs:. When system reboot, it first get time from rtc, then mount rootfs, if the /etc/fake-hwclock.date bigger than RTC time, fake-hwclock.date will set to system time.

So rtc time will different from system time.

How to removeit : apt-get remove –y fake-hwclock

Ubuntu default enable timesysn service:


                
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

嵌入式实操

希望博文有助于您,您不必加班。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值