Hi Denys,
On 12. 07. 23 16:28, Denys Vlasenko wrote:
On Tue, Jul 11, 2023 at 10:43 AM Andrej Picej wrote:
--- a/include/rtc_.h
+++ b/include/rtc_.h
@@ -22,6 +22,11 @@ int rtc_xopen(const char **default_rtc, int flags) FAST_FUNC;
void rtc_read_tm(struct tm *ptm, int fd) FAST_FUNC;
time_t
to 0x2.
$ hwclock --param-get bsm
The RTC parameter 0x2 is set to 0x2.
Example of parameter set use:
$ hwclock -p 2=1
The RTC parameter 0x2 will be set to 0x1.
$ hwclock -p bsm=2
The RTC parameter 0x2 will be set to 0x2.
Signed-off-by: Andrej Picej
---
Changes since v2:
- use "strcmp() == 0&quo
Hi David,
On 6. 07. 23 05:58, David Leonard wrote:
On Mon, 3 Jul 2023, Andrej Picej wrote:
Gentle ping.
On 5. 06. 23 10:57, Andrej Picej wrote:
In kernel 5.16 special ioctls were introduced to get/set RTC parameters.
Add option to get/set parameters into busybox version of hwclock
Gentle ping.
On 5. 06. 23 10:57, Andrej Picej wrote:
In kernel 5.16 special ioctls were introduced to get/set RTC parameters.
Add option to get/set parameters into busybox version of hwclock.
Implementation is similar to the one already used in linux-utils hwclock
tool.
Example of parameter
to 0x2.
$ hwclock --param-get bsm
The RTC parameter 0x2 is set to 0x2.
Example of parameter set use:
$ hwclock -p 2=1
The RTC parameter 0x2 will be set to 0x1.
$ hwclock -p bsm=2
The RTC parameter 0x2 will be set to 0x2.
Signed-off-by: Andrej Picej
---
include/rtc_.h | 23 +
util-linux