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 <[email protected]> > --- > 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: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
