On 3/10/19 3:52 PM, Mauro Ziliani wrote:
Hi all.
I'm working with Krogoth over an imx6dlsabresd derived board. The rtc is
a ds1307.
Which is the right management of the system clock?
I'm not sure whether you're asking about setting the right locale or
managing the clock in general.
If it's the latter, then maybe this will help:
We run the ntp daemon, which goes out to an NTP server to grab the time
& date. This implements the Network Time Protocol.
Take a look at the ntp_4.2.8p12.bb receipe:
SUMMARY = "Network Time Protocol daemon and utilities"
DESCRIPTION = "The Network Time Protocol (NTP) is used to \
synchronize the time of a computer client or server to \
another server or reference time source, such as a radio \
or satellite receiver or modem."
Bob
The system clock is setup in /etc/default/rcS as UTC=yes
If I type the command 'date' in a terminal i get
[1] March 10, 19:43 UTC 2019
[2] I try to set March 10, 23:00 with command 'date 03102300' to set date.
Then I look if the setup is ok and it is. The date is the same I set.
I reboot the system, and the date/time has the right vaule.
When I try the date command, the clock come back a the value 19:43, the
value [1].
Why?
Best regards,
MZ
--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale