Open Goostavo opened 4 years ago
Thanks @Goostavo sounds very sane, let me configure this by default. ;)
OKay looks good:
Log: (chroot): /var/lib/connman/settings
[global]
OfflineMode=false
[Wired]
Enable=true
Tethering=false
[WiFi]
Enable=true
Tethering=false
[Gadget]
Enable=false
Tethering=false
[P2P]
Enable=false
Tethering=false
[Bluetooth]
Enable=true
Tethering=false
Log: (chroot): Patched: /var/lib/connman/settings
[global]
OfflineMode=false
TimeUpdates=manual
TimezoneUpdates=manual
[Wired]
Enable=true
Tethering=false
[WiFi]
Enable=true
Tethering=false
[Gadget]
Enable=false
Tethering=false
[P2P]
Enable=false
Tethering=false
[Bluetooth]
Enable=true
Tethering=false
Log: (chroot): set_locale
https://github.com/RobertCNelson/omap-image-builder/commit/f0cabb066ad626527f2a0b9071598ae3724f65b2 and https://github.com/RobertCNelson/omap-image-builder/commit/2e3566e26646a90b3589ef04f8458a97de6122c8
The Error
Tested on multiple beaglebones green and beaglebone green wireless with Debian 9.9 IoT and Debian 10 IoT clean on Brazil (UTC -3).
All of them are having the same error. Something reseting the systemtime.
The correct time in my TZ is
sex fev 21 12:55:52 -03 2020
and in UTCFri Feb 21 15:56:06 UTC 2020
. But it's showing UTC as 12:56.Running multiple
timedatectl
returns:hwclock --debug output:
Multiple hwclock calls:
Timezone file:
I've also tryied changing hwclock with --utc and --localtime.
More tests. I've disable ntp:
sudo timedatectl set-ntp 0
, after i've set clock withsudo timedatectl set-time '2019-10-31 16:24'
, And then i've renabled ntp sync (timesyncd).The is the results. The hwclock was kept on the wrong time. Durint the set-ntp 0 the clock was kept on 3 hours less.
I've tryied changing to my timezone. The localtime hour error was even greated (3h error + 3h timezone).
The solution
There is a conflict between coonmand and systemd-timesyncd.
Debian for Beaglebone uses
connman
to control wifi connection. When connecting to a wifi it usesagent on
enablingconnmand
, that also have a NTP server.connmand
try to set timezone from the network, and try to set time using it's internal NTP server.The solution is disabling
connmand
NTP leaving it just forsystemd-timesyncd
. To do that editconnman
config file:Edit global config to be: