Advertisement
Bullet64

rtc_check

May 9th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. 1. Boot my RockPro64 without LAN and connected battery @ RTC Pins!
  2.  
  3. root@rockpro64:~# dmesg | grep rtc
  4. [ 4.798978] rk808-rtc rk808-rtc: registered as rtc0
  5. [ 4.807268] OF: graph: no port node found in /i2c@ff3d0000/typec-portc@22
  6. [ 5.032372] rk808-rtc rk808-rtc: setting system clock to 2013-01-18T14:13:22)
  7.  
  8. After bootup we do
  9.  
  10. hwclock -w
  11.  
  12. check it with
  13. root@rockpro64:~# timedatectl
  14. Local time: Sat 2020-05-09 16:09:29 CEST
  15. Universal time: Sat 2020-05-09 14:09:29 UTC
  16. RTC time: Sat 2020-05-09 14:09:30
  17. Time zone: Europe/Berlin (CEST, +0200)
  18. System clock synchronized: no
  19. NTP service: inactive
  20. RTC in local TZ: no
  21.  
  22. Now we reboot.
  23.  
  24. Check time again
  25. root@rockpro64:~# dmesg | grep rtc
  26. [ 4.804679] rk808-rtc rk808-rtc: registered as rtc0
  27. [ 4.812980] OF: graph: no port node found in /i2c@ff3d0000/typec-portc@22
  28. [ 5.059011] rk808-rtc rk808-rtc: setting system clock to 2020-05-09T14:10:27)
  29.  
  30. Now, RTC has time what we have set.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement