Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ioctl(RTC_SET_TIME) to /dev/rtc0 to set the time failed #533

Open
ghost opened this issue Oct 11, 2024 · 4 comments
Open

ioctl(RTC_SET_TIME) to /dev/rtc0 to set the time failed #533

ghost opened this issue Oct 11, 2024 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 11, 2024

I tried to install on sbc s905x with the ubuntu version of armbian os 22 but got hit by a problem in the hwclock as below logs

11 Oct 11:35:52 ntpdate[13682]: step time server 202.65.114.202 offset -0.002831 sec hwclock: ioctl(RTC_SET_TIME) to /dev/rtc0 to set the time failed: Invalid argument 2024-10-11T11:35:53.002Z matori Failed to exec command: /bin/sh -c /usr/sbin/hwclock -w hwclock: ioctl(RTC_SET_TIME) to /dev/rtc0 to set the time failed: Invalid argument: exit status 1 2024-10-11T11:35:53.002Z [A] matori: UpdateNtpDate failed (15.726925459s) 2024-10-11T11:35:53.003Z [Job] [Prepare the System Environment] execute failed <nil>

Is there a parameter or config to bypass the hwclock setting? , because my sbc when checking the clock using timedatectl is in accordance with the existing time

@eball
Copy link
Collaborator

eball commented Oct 11, 2024

@MATORINET unfortunately, we didn't have to do any tests on sbc. Did you succeed in installing k3s on sbc before?

@ghost
Copy link
Author

ghost commented Oct 11, 2024

@eball for manual installation Kubernetes Using K3s successfully used smoothly, Previously I used Docker for Casa OS in my sbc is also smooth . for this issue in my sbc kernel which has not found a driver for the requirements use of hwclock during Terminus installation, if there is an option parameter for skipping hwclock i can try to manual installation Terminus . I hope there is more complete documentation of the detailed parameters at the time of installation

@eball
Copy link
Collaborator

eball commented Oct 12, 2024

@MATORINET Our Terminus needs the time to be accurate to make sure that every single feature is working fine. Probably you can make a fake hwclock to passthrough it.

@ghost
Copy link
Author

ghost commented Oct 12, 2024

@eball I've tried using fake-hwclock but at the time of installation it is still constrained in hwclock -w , For RTC in sbc using virtual RTC, can only see the result of ntp, to write using hwclock -w so far has not found a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant