I see /proc/driver/rtc in my embedded linux board.
The driver for this rtc is rtc-snvs.ko
If I run the command below, I was able to read some parameters such as rtc_time and rtc_data.
“# cat /proc/driver/rtc”
rtc_time : 20:17:16
rtc_data : 2025-01-20
24hr : yes
But, I don’t know how to change/update this parameter?
Also, I found /sys/class/rtc has rtc1 pointing rtc-snvs.ko module.
But if I read date from /sys/class it is “1970-01-01” and time is “00:01:54”
My questions here are
- How can I access /proc/driver/rtc to change the value of parameters.
- Why the values from /proc/driver/rtc and /sys/class/rtc/rtc1 shows different values even though it actually uses the same driver?