[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH] busybox: hwclock init moved earlier in startup
From: "Chris Elledge" <celledge () siteworx ! io>
Date: 2023-03-31 20:44:09
Message-ID: CAHkgX0umV9QhxPXdMmG=kVUt5Z3t77SraRRFMiipaZwsnzUgiQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
hwclock.sh had default update-rc parameters which made it run after
other tasks that work with the clock such as connman. This causes a
time obtained by NTP to be clobbered by a potentially incorrect time
in the RTC.
Provided non-default INITSCRIPT_PARAMS to have hwclock.sh run during
the rc startup before runlevel initscripts start.
Signed-off-by: Chris Elledge <celledge@siteworx.io>
---
meta/recipes-core/busybox/busybox.inc | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-core/busybox/busybox.inc
b/meta/recipes-core/busybox/busybox.inc
index 62dc839245..f5d7c3f9c8 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -34,6 +34,7 @@ INITSCRIPT_PACKAGES = "${PN}-httpd ${PN}-syslog
${PN}-udhcpd ${PN}-mdev ${PN}-hw
INITSCRIPT_NAME:${PN}-httpd = "busybox-httpd"
INITSCRIPT_NAME:${PN}-hwclock = "hwclock.sh"
+INITSCRIPT_PARAMS:${PN}-hwclock = "start 40 S . stop 20 0 1 6 ."
INITSCRIPT_NAME:${PN}-mdev = "mdev"
INITSCRIPT_PARAMS:${PN}-mdev = "start 04 S ."
INITSCRIPT_NAME:${PN}-syslog = "syslog"
--
2.34.1
[Attachment #5 (text/html)]
<div dir="ltr">hwclock.sh had default update-rc parameters which made it run \
after<br>other tasks that work with the clock such as connman. This causes a<br>time \
obtained by NTP to be clobbered by a potentially incorrect time<br>in the \
RTC.<br><br>Provided non-default INITSCRIPT_PARAMS to have hwclock.sh run \
during<br>the rc startup before runlevel initscripts start.<br><br>Signed-off-by: \
Chris Elledge <<a href="mailto:celledge@siteworx.io" \
target="_blank">celledge@siteworx.io</a>><br>---<br> \
meta/recipes-core/busybox/busybox.inc | 1 +<br> 1 file changed, 1 \
insertion(+)<br><br>diff --git a/meta/recipes-core/busybox/busybox.inc \
b/meta/recipes-core/busybox/busybox.inc<br>index 62dc839245..f5d7c3f9c8 100644<br>--- \
a/meta/recipes-core/busybox/busybox.inc<br>+++ \
b/meta/recipes-core/busybox/busybox.inc<br>@@ -34,6 +34,7 @@ INITSCRIPT_PACKAGES = \
"${PN}-httpd ${PN}-syslog ${PN}-udhcpd ${PN}-mdev ${PN}-hw<br> <br> \
INITSCRIPT_NAME:${PN}-httpd = "busybox-httpd"<br> \
INITSCRIPT_NAME:${PN}-hwclock = \
"hwclock.sh"<br>+INITSCRIPT_PARAMS:${PN}-hwclock = "start 40 S . stop \
20 0 1 6 ."<br> INITSCRIPT_NAME:${PN}-mdev = "mdev"<br> \
INITSCRIPT_PARAMS:${PN}-mdev = "start 04 S ."<br> \
INITSCRIPT_NAME:${PN}-syslog = "syslog"<font \
color="#888888"><br>--<br>2.34.1</font><br></div>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#179455): https://lists.openembedded.org/g/openembedded-core/message/179455
Mute This Topic: https://lists.openembedded.org/mt/97982223/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic