date  //查看系统时间
date -s "2023-06-26 23:05:00"  //设置系统时间,月/日/时/分/年/.秒,这里就是设置为01月13日23点48分2022年01秒
hwclock --show  //查看硬件时间(也就是rtc时间)
hwclock -w     // 同步时间到RTC(把系统时间写到RTC芯片):    
hwclock -s     //同步时间到系统(把RTC芯片时间写到系统时间)

自动同步配置:

Device Drivers  --->      
 [ * ]Real Time Clock  --->  
 [ * ]Set system time from RTC on startup and resume    (自动同步时间) 
 <*>   Philips PCF8563/Epson RTC8564          (CONFIG_RTC_DRV_PCF8563)