From patchwork Mon Mar 17 21:10:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randolph Sapp X-Patchwork-Id: 59304 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF2F9C3DA4A for ; Mon, 17 Mar 2025 21:10:25 +0000 (UTC) Received: from lelvem-ot02.ext.ti.com (lelvem-ot02.ext.ti.com [198.47.23.235]) by mx.groups.io with SMTP id smtpd.web10.2428.1742245822292687636 for ; Mon, 17 Mar 2025 14:10:22 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@ti.com header.s=ti-com-17Q1 header.b=K6rCsjPZ; spf=pass (domain: ti.com, ip: 198.47.23.235, mailfrom: rs@ti.com) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelvem-ot02.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 52HLAKSG2925241 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Mar 2025 16:10:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1742245820; bh=rIhnViEGA2kX4NP552k4xVEHTnCjnUgUl60iGS0/yw4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=K6rCsjPZV2+4gK1eNCknyyjW2YY85uLZp8kYbxl6o67OXfhgXC5Ly24FetEmqFhh6 Hi80FLcXuaaHB1dUYjakuS+7FbHcZUjrZ0R5LBDnFVNtfa0TkQj1bY+S2quqgg8ImU p2Kxb45J/bvyiGlIVaWnR78sxckzTpdwHQyohAsM= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 52HLAKi5030466 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 Mar 2025 16:10:20 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 17 Mar 2025 16:10:20 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 17 Mar 2025 16:10:20 -0500 Received: from rs-desk.dhcp.ti.com (rs-desk.dhcp.ti.com [128.247.81.144]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 52HLAKcT071998; Mon, 17 Mar 2025 16:10:20 -0500 From: To: , CC: , , , Subject: [meta-arago][master][PATCH 1/2] timesyncd: remove invalid character Date: Mon, 17 Mar 2025 16:10:10 -0500 Message-ID: <20250317211015.4052273-2-rs@ti.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250317211015.4052273-1-rs@ti.com> References: <20250317211015.4052273-1-rs@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-MIME-Autoconverted: from 8bit to quoted-printable by lelvem-ot02.ext.ti.com id 52HLAKSG2925241 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 17 Mar 2025 21:10:25 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/16077 From: Randolph Sapp This config file has an invalid character causing systemd-timesyncd to report an issue with the default config. Replace the invalid character with a newline like the original config uses. Signed-off-by: Randolph Sapp --- meta-arago-distro/recipes-core/systemd/systemd/timesyncd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-arago-distro/recipes-core/systemd/systemd/timesyncd.conf b/meta-arago-distro/recipes-core/systemd/systemd/timesyncd.conf index a9f762b7..2de49281 100644 --- a/meta-arago-distro/recipes-core/systemd/systemd/timesyncd.conf +++ b/meta-arago-distro/recipes-core/systemd/systemd/timesyncd.conf @@ -11,7 +11,7 @@ # Defaults can be restored by simply deleting this file and all drop-ins. # # See timesyncd.conf(5) for details. -​ + [Time] NTP=0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org FallbackNTP=ntp.ubuntu.com From patchwork Mon Mar 17 21:10:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randolph Sapp X-Patchwork-Id: 59303 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCECAC28B28 for ; Mon, 17 Mar 2025 21:10:25 +0000 (UTC) Received: from fllvem-ot04.ext.ti.com (fllvem-ot04.ext.ti.com [198.47.19.246]) by mx.groups.io with SMTP id smtpd.web11.2512.1742245822860162506 for ; Mon, 17 Mar 2025 14:10:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AbXNHNXE; spf=pass (domain: ti.com, ip: 198.47.19.246, mailfrom: rs@ti.com) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 52HLALEh2880566 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Mar 2025 16:10:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1742245821; bh=hMRTIqcs1Vov9602ZHW/5AqsFLIZN0vShgi5r+1OLVM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AbXNHNXEq1WV9QDMTc/qXtQTqhV7chBrXvZCXO4N2d5MDK+s7K680nvatD1bBMEsm mksB48nNLPiKBXKj2wp47vo94FjONbngjh8aaUffYuCAY51p6Yn3V2zcnK9+p5ooMR pGxm9TqMyyqUJexGw3lWlY6NCP2yODHq4UuK1xmw= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 52HLAKP7046608 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 Mar 2025 16:10:21 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 17 Mar 2025 16:10:20 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 17 Mar 2025 16:10:20 -0500 Received: from rs-desk.dhcp.ti.com (rs-desk.dhcp.ti.com [128.247.81.144]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 52HLAKcU071998; Mon, 17 Mar 2025 16:10:20 -0500 From: To: , CC: , , , Subject: [meta-arago][master][PATCH 2/2] systemd: remove sync-clocks service Date: Mon, 17 Mar 2025 16:10:11 -0500 Message-ID: <20250317211015.4052273-3-rs@ti.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250317211015.4052273-1-rs@ti.com> References: <20250317211015.4052273-1-rs@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 17 Mar 2025 21:10:25 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/16079 From: Randolph Sapp This is already handled by the kernel with RTC_SYSTOHC and any of the userspace time synchronization daemons we have (systemd-timesyncd). This is handled only when an NTP sync occurs normally, so that the system RTC is updated to the proper time outright and doesn't create potential issues with the time sync daemon drift tracking between boots. Signed-off-by: Randolph Sapp --- .../systemd/systemd/sync-clocks.service | 14 -------------- .../recipes-core/systemd/systemd_%.bbappend | 5 ----- 2 files changed, 19 deletions(-) delete mode 100644 meta-arago-distro/recipes-core/systemd/systemd/sync-clocks.service diff --git a/meta-arago-distro/recipes-core/systemd/systemd/sync-clocks.service b/meta-arago-distro/recipes-core/systemd/systemd/sync-clocks.service deleted file mode 100644 index b11d05ad..00000000 --- a/meta-arago-distro/recipes-core/systemd/systemd/sync-clocks.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Synchronize System and HW clocks -DefaultDependencies=no -Wants=sysinit.target -Conflicts=shutdown.target -After=getty.target - -[Service] -Type=oneshot -ExecStart=/sbin/hwclock --systohc -StandardOutput=syslog - -[Install] -WantedBy=multi-user.target diff --git a/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend b/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend index 424f39da..bb57d094 100644 --- a/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +++ b/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend @@ -10,7 +10,6 @@ SRC_URI:append = " \ file://15-eth.network \ file://30-wlan.network \ file://60-usb.network \ - file://sync-clocks.service \ file://timesyncd.conf \ file://37-can-j7.rules \ file://37-can-am62.rules \ @@ -32,10 +31,6 @@ do_install:append() { install -m 0644 ${UNPACKDIR}/30-wlan.network ${D}${sysconfdir}/systemd/network/ install -m 0644 ${UNPACKDIR}/60-usb.network ${D}${sysconfdir}/systemd/network/ - install -d ${D}${sysconfdir}/systemd/system/sysinit.target.wants - install -m 0644 ${UNPACKDIR}/sync-clocks.service ${D}${sysconfdir}/systemd/system/ - ln -sf ../sync-clocks.service ${D}${sysconfdir}/systemd/system/sysinit.target.wants/sync-clocks.service - # Allow automount from udev install -m 0644 ${D}${systemd_system_unitdir}/systemd-udevd.service ${D}${sysconfdir}/systemd/system/ sed -i 's/MountFlags=slave/MountFlags=shared/g' ${D}${sysconfdir}/systemd/system/systemd-udevd.service