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 <[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 (#13571): https://lists.yoctoproject.org/g/linux-yocto/message/13571 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]] -=-=-=-=-=-=-=-=-=-=-=-
