The Development Board needs to display the clock before long, but the default is UTC time, so increase the time zone file.
Copy the Shanghai time zone/usr/share/zoneinfo/asia/shanghai file for localtime to/etc
cp/usr/share/zoneinfo/asia/shanghai/etc/ LocalTime
However, when debugging the clock, it is found that when the time is set and written to the hardware, the boot is always 8 hours fast.
The survey found that writing to the hardware used hwclock-w, the default is to write local time, and when the kernel is in UTC to write time, just increased by 8 hours.
So speak hwclock-w change Hwclock-uw can work normally.
Hwclock:invalid option--y
BusyBox v1.15.2 (2009-10-26 18:24:41 CST) multi-call binary usage:hwclock
[-r|--show ] [-s|--hctosys] [-W|--SYSTOHC] [-l|--localtime] [-U|--UTC] [F-FILE]
Query and set hardware clock (RTC)
Options: -
R Show hardware clock time-
s set system time from hardware clock-
w set hardware clock to System TIME
-u hardware clock is in UTC
-L hardware clock is in local time
-F FILE use specified device (e.g./d EV/RTC2)
~end~