Skip to content

riscv: defconfig: Enable CONFIG_RTC_DRV_EFI config#327

Open
GooTal wants to merge 1 commit into
RVCK-Project:rvck-6.6from
zte-riscv:pr-RTC_DRV_EFI
Open

riscv: defconfig: Enable CONFIG_RTC_DRV_EFI config#327
GooTal wants to merge 1 commit into
RVCK-Project:rvck-6.6from
zte-riscv:pr-RTC_DRV_EFI

Conversation

@GooTal

@GooTal GooTal commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

fixed: #326

riscv: defconfig: Enable CONFIG_RTC_DRV_EFI config

riscv inclusion
category: config
bugzilla: #326


Turn on CONFIG_RTC_DRV_EFI to support system time access via the UEFI

Runtime Services interface on RISC-V platforms:

  • CONFIG_RTC_DRV_EFI=y

This option aligns with the approach used in the arm64 defconfig.

riscv inclusion
category: config
bugzilla: RVCK-Project#326

------------------------

Turn on CONFIG_RTC_DRV_EFI to support system time access via the UEFI

Runtime Services interface on RISC-V platforms:

- CONFIG_RTC_DRV_EFI=y

This option aligns with the approach used in the arm64 defconfig.

Signed-off-by: hu.yuye<hu.yuye@zte.com.cn>
Signed-off-by: liuqingtao <liu.qingtao2@zte.com.cn>
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/28873451104

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/327/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build success
check-patch success
lava-trigger-qemu success
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[14:24:31] Testing complete. Ran 482 tests: passed: 465, skipped: 17

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 0

LAVA Check (qemu)

args value
testcase_repo RVCK-Project/lavaci
lava_template lava-job-template/qemu/qemu-ltp.yaml
testcase_path lava-testcases/common-test/ltp/ltp.yaml
kernel_download_url http://10.30.190.110/openEuler-RISC-V/RVCK/OERV-RVCI/RVCK-Project/rvck/327_28873451104_1/Image
initramfs_download_url http://10.30.190.110/openEuler-RISC-V/RVCK/OERV-RVCI/RVCK-Project/rvck/327_28873451104_1/initramfs.img
rootfs_download_url https://fast-mirror.isrc.ac.cn/openeuler-sig-riscv/openEuler-RISC-V/RVCK/openEuler24.03-LTS-SP1/openeuler-rootfs.img.zst
testcase_ref main
testitem_name RVCK-Project_rvck_pull_request_target_327__common-test_qemu

result: Lava check done!

@unicornx unicornx added the ZTE label Jul 8, 2026
@unicornx
unicornx self-requested a review July 10, 2026 07:45
@unicornx

Copy link
Copy Markdown

你们有在 QEMU 上做过测试吗?能否指导一下 QEMU 上如何测试?谢谢

@GooTal

GooTal commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

你们有在 QEMU 上做过测试吗?能否指导一下 QEMU 上如何测试?谢谢

开启该选项,可以通过dmesg | grep -i rtc观察rtc相关信息

安装hwclock,可以获取rtc时间。

@unicornx

Copy link
Copy Markdown

你们有在 QEMU 上做过测试吗?能否指导一下 QEMU 上如何测试?谢谢

开启该选项,可以通过dmesg | grep -i rtc观察rtc相关信息

安装hwclock,可以获取rtc时间。

请教一下你在qemu 上是如何启用 UEFI 的?否则默认启动的 rtc 是 goldfish

@GooTal

GooTal commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

这个可以在欧拉sp3的发版,uefi方式启动中,验证。

https://dl-cdn.openeuler.openatom.cn/openEuler-24.03-LTS-SP3/virtual_machine_img/riscv64/

在start_vm_RVA23.sh脚本中,指定了uefi方式启动的固件。发版内核中也已经开启了CONFIG_RTC_DRV_EFI。

以下是信息:

[root@localhost ~]# dmesg | grep rtc
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-6.6.0-138.0.0.121.oe2403sp3.riscv64 root=UUID=6bdf12e6-c7a8-41f4-9613-01e4be2e2823 ro console=ttyS0 highres=off earlycon systemd.default_timeout_start_sec=600 rootfstype=ext4 net.ifnames=0 biosdevname=0 nmi_watchdog=1 rd.shell=0 crashkernel=256M reserve_kbox_mem=16M crash_kexec_post_notifiers panic=3 no-steal-time use-sched-idle-time initcall_blacklist=efi_rtc_driver_init
[ 0.000000] blacklisting initcall efi_rtc_driver_init
[ 1.870868] initcall efi_rtc_driver_init blacklisted
[ 1.874580] goldfish_rtc 101000.rtc: registered as rtc0
[ 1.875715] goldfish_rtc 101000.rtc: setting system clock to 2026-07-11T01:29:55 UTC (1783733395)

[root@localhost ~]# hwclock
2026-07-11 01:31:15.891585+00:00

[root@localhost ~]# cat /boot/config-6.6.0-138.0.0.121.oe2403sp3.riscv64 | grep RTC_DRV_EFI
CONFIG_RTC_DRV_EFI=y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

riscv: defconfig: Enable CONFIG_RTC_DRV_EFI config

2 participants