RTC Interface
Radxa Cubie A7A features an onboard RTC battery interface. You can connect an RTC battery via this interface to provide continuous power to the real-time clock (RTC) chip on the board during power-off, ensuring the system clock keeps accurate time even when the system is powered down.
For the exact location of the RTC interface, please refer to the interface description section in the Hardware Interfaces guide!
Usage Guide
Connect an RTC battery to the RTC interface. Battery parameters:
- Interface type: 2-Pin 1.25mm
- Battery type: CR2032
- Battery voltage: 3.0V
Check RTC
Enter the following command in the terminal to check if the RTC battery is recognized by the system.
sudo dmesg | grep rtc
Sample terminal output: registered as rtc0
indicates the RTC battery is recognized.
[ 0.033261] sunxi:ccu-ng:[INFO]: sunxi rtc-ccu version: 0.5.5
[ 0.044358] sunxi:ccu-ng:[INFO]: rtc_ccu: sunxi ccu init OK
[ 0.161008] axp8191-rtcldo: supplied by regulator-dummy
[ 0.803919] [drm] sunxi_de_bind crtc init for de 0 ok
[ 0.803946] [drm] sunxi_de_bind crtc init for de 1 ok
[ 3.318121] rtc-hym8563 14-0051: no valid clock/calendar values available
[ 3.318383] rtc-hym8563 14-0051: registered as rtc0
[ 3.318674] rtc-hym8563 14-0051: no valid clock/calendar values available
[ 3.318679] rtc-hym8563 14-0051: hctosys: unable to read the hardware clock
Read RTC Time
Use the hwclock
command in the terminal to read the current time from the RTC chip (/dev/rtc0).
sudo hwclock -r -f /dev/rtc0
Display System Time
Use the date
command to display the current system time.
date
Set RTC Time
If the RTC time and system time are inconsistent, you can use the hwclock
command to write the current system time to the RTC.
sudo hwclock -w -f /dev/rtc0
Verify RTC
Record the current system time, then disconnect the power and network from the Radxa Cubie A7A. Wait about 10 minutes, reconnect the power, and check if the system time is correct.
Port Specifications
For complete technical specifications and pin definitions, please refer to the Hardware Design: Schematic document in the download section.