Re: [linux-yocto] [yocto-kernel-cache][PATCH] qemuriscv32/qemuriscv64: Enable Goldfish RTC

2024-02-16 Thread Bruce Ashfield
In message: [linux-yocto] [yocto-kernel-cache][PATCH] qemuriscv32/qemuriscv64: 
Enable Goldfish RTC
on 16/02/2024 Khem Raj wrote:

> This is required for the qemu based riscv system to set system time
> correctly. Otherwise, it falls back to defaults in /etc/timestamp which
> is set at image build time and is not current.
> 
> Fixes
> hwclock: can't open '/dev/misc/rtc': No such file or directory
> Fri Mar  9 12:34:56 UTC 2018
> hwclock: can't open '/dev/misc/rtc': No such file or directory
> hwclock: can't open '/dev/misc/rtc': No such file or directory

FWIW, we used to always just create a fragment in one
BSP variant and include it from the other .. just to avoid
a bit of duplication.

If we do get more of these, I'll consider doing that on our
behalf as a cleanup.

I have this staged and will send SRCREV bumps shortly.

Bruce

> 
> Signed-off-by: Khem Raj 
> ---
>  bsp/qemuriscv32/qemuriscv32.cfg | 6 ++
>  bsp/qemuriscv64/qemuriscv64.cfg | 6 ++
>  2 files changed, 12 insertions(+)
> 
> diff --git a/bsp/qemuriscv32/qemuriscv32.cfg b/bsp/qemuriscv32/qemuriscv32.cfg
> index 36cadb51..ae1dd6f3 100644
> --- a/bsp/qemuriscv32/qemuriscv32.cfg
> +++ b/bsp/qemuriscv32/qemuriscv32.cfg
> @@ -41,3 +41,9 @@ CONFIG_VIRTIO_CONSOLE=y
>  # IRQ chip support
>  #
>  CONFIG_SIFIVE_PLIC=y
> +
> +#
> +# Enable Goldfish RTC
> +#
> +CONFIG_RTC_CLASS=y
> +CONFIG_RTC_DRV_GOLDFISH=y
> diff --git a/bsp/qemuriscv64/qemuriscv64.cfg b/bsp/qemuriscv64/qemuriscv64.cfg
> index 0d51803b..5dcfbe63 100644
> --- a/bsp/qemuriscv64/qemuriscv64.cfg
> +++ b/bsp/qemuriscv64/qemuriscv64.cfg
> @@ -37,3 +37,9 @@ CONFIG_VIRTIO_CONSOLE=y
>  # IRQ chip support
>  #
>  CONFIG_SIFIVE_PLIC=y
> +
> +#
> +# Enable Goldfish RTC
> +#
> +CONFIG_RTC_CLASS=y
> +CONFIG_RTC_DRV_GOLDFISH=y
> -- 
> 2.43.2
> 

> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13573): 
https://lists.yoctoproject.org/g/linux-yocto/message/13573
Mute This Topic: https://lists.yoctoproject.org/mt/104389680/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [linux-yocto] [yocto-kernel-cache][PATCH] qemuriscv32/qemuriscv64: Enable Goldfish RTC

2024-02-16 Thread Richard Purdie
On Fri, 2024-02-16 at 01:05 -0800, Khem Raj wrote:
> This is required for the qemu based riscv system to set system time
> correctly. Otherwise, it falls back to defaults in /etc/timestamp
> which
> is set at image build time and is not current.
> 
> Fixes
> hwclock: can't open '/dev/misc/rtc': No such file or directory
> Fri Mar  9 12:34:56 UTC 2018
> hwclock: can't open '/dev/misc/rtc': No such file or directory
> hwclock: can't open '/dev/misc/rtc': No such file or directory
> 
> Signed-off-by: Khem Raj 
> ---
>  bsp/qemuriscv32/qemuriscv32.cfg | 6 ++
>  bsp/qemuriscv64/qemuriscv64.cfg | 6 ++
>  2 files changed, 12 insertions(+)

Acked-by: Richard Purdie 

This solves a number of problems we're having on the autobuilder.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13572): 
https://lists.yoctoproject.org/g/linux-yocto/message/13572
Mute This Topic: https://lists.yoctoproject.org/mt/104389680/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-