Embest Technology
Copyright © 2014-2015 Embest Technology SBC9000 User Manual
53
March, 2014.
root@sbc9000:~#
date 031117002014
The terminal window will print information as shown below;
Table 6-2
Set system clock
Tue Mar 11 17:00:00 UTC 2014
2
)
Execute the following instruction to write system clock into RTC;
root@sbc9000:~#
hwclock -w
3
)
Execute the following instruction to read RTC;
root@sbc9000:~#
hwclock
The terminal window will print information as shown below;
Table 6-3
Read RTC
Tue Mar 11 17:01:01 2014 0.000000 seconds
The information above shows the system clock has been saved in hardware clock.
4
)
Reboot SBC9000 and execute the following instructions to restore system clock;
root@sbc9000:~#
hwclock -s
root@sbc9000:~#
date
The terminal window will print information as shown below;
Table 6-4
System clock
Tue Mar 11 17:03:33 UTC 2014
The information above shows the system clock has been restored from hard clock;
Note:
A coin battery with model code CR1220 is required on SBC9000
’s Expansion board to
maintain a correct hardware clock after the system reboots. The battery is not supplied
with the product and therefore needs to be purchased separately;