From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH 4/4] initscripts: load RTC module (RX8025) for Ten64 board Date: Tue, 04 Oct 2022 09:57:35 +0100 Message-ID: <4A9F7174-37BF-4F73-9C07-5802A879A33C@ipfire.org> In-Reply-To: <20221003062019.19636-5-matt@traverse.com.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0347874921571565178==" List-Id: --===============0347874921571565178== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reviewed-by: Michael Tremer > On 3 Oct 2022, at 07:20, Mathew McBride wrote: >=20 > For reasons I have not been able to determine, the RTC > module for the Ten64 board (rtc-rx8025) is not automatically > loaded at startup, despite every other relevant modules being > loaded. >=20 > modprobe it manually if we are on a Ten64 board. >=20 > Signed-off-by: Mathew McBride > --- > src/initscripts/system/setclock | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/src/initscripts/system/setclock b/src/initscripts/system/setcl= ock > index b566eb716..963507f9a 100644 > --- a/src/initscripts/system/setclock > +++ b/src/initscripts/system/setclock > @@ -29,6 +29,14 @@ case ${1} in >=20 > boot_mesg "Setting system clock..." >=20 > + FDT_COMPAT_FILE=3D"/sys/firmware/devicetree/base/compatible" > + # RTC may not be automatically loaded on some > + # non-x86 machines > + if [ -f "${FDT_COMPAT_FILE}" ] && \ > + ( grep -q "traverse,ten64" "${FDT_COMPAT_FILE}" ); then > + modprobe rtc-rx8025 > + fi > + > # udev not create the rtc symlink if rtc is in the kernel > if [ ! -e /dev/rtc ]; then > if [ -e /dev/rtc0 ]; then > --=20 > 2.30.1 >=20 --===============0347874921571565178==--