public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
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	[thread overview]
Message-ID: <4A9F7174-37BF-4F73-9C07-5802A879A33C@ipfire.org> (raw)
In-Reply-To: <20221003062019.19636-5-matt@traverse.com.au>

[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]

Reviewed-by: Michael Tremer <michael.tremer(a)ipfire.org>

> On 3 Oct 2022, at 07:20, Mathew McBride <matt(a)traverse.com.au> wrote:
> 
> 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.
> 
> modprobe it manually if we are on a Ten64 board.
> 
> Signed-off-by: Mathew McBride <matt(a)traverse.com.au>
> ---
> src/initscripts/system/setclock | 8 ++++++++
> 1 file changed, 8 insertions(+)
> 
> diff --git a/src/initscripts/system/setclock b/src/initscripts/system/setclock
> index b566eb716..963507f9a 100644
> --- a/src/initscripts/system/setclock
> +++ b/src/initscripts/system/setclock
> @@ -29,6 +29,14 @@ case ${1} in
> 
> 		boot_mesg "Setting system clock..."
> 
> +		FDT_COMPAT_FILE="/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
> -- 
> 2.30.1
> 


  reply	other threads:[~2022-10-04  8:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-03  6:20 [PATCH 0/4] kernel: aarch64: Add support for Traverse " Mathew McBride
2022-10-03  6:20 ` [PATCH 1/4] linux: enable options for NXP Layerscape Mathew McBride
2022-10-04  8:57   ` Michael Tremer
2022-10-03  6:20 ` [PATCH 2/4] kernel: add patches for SFP support on NXP Layerscape/DPAA2 (arm64) Mathew McBride
2022-10-04  8:57   ` Michael Tremer
2022-10-03  6:20 ` [PATCH 3/4] config: u-boot: bypass the u-boot script on Traverse Ten64 Mathew McBride
2022-10-04  8:57   ` Michael Tremer
2022-10-03  6:20 ` [PATCH 4/4] initscripts: load RTC module (RX8025) for Ten64 board Mathew McBride
2022-10-04  8:57   ` Michael Tremer [this message]
2022-10-04  8:56 ` [PATCH 0/4] kernel: aarch64: Add support for Traverse " Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A9F7174-37BF-4F73-9C07-5802A879A33C@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox