The development board does not have a CR1220 battery by default. Please purchase and install it in the BT1 position.
The PanGu development board supports the RTC function and supports power-down hold time. The CR1220 button battery needs to be installed to the RTC battery holder (BT1).
Set and read date time
Setting date time
$ date -s "20190713"$ date -s "12:00:00" |
sync to hardware RTC
$ hwclock -w |
Read date time from hardware RTC
$ hwclock -r |