After raspberry pie for the correct boot time

Set Date & Time 
10055378-91b268156c598423.png
NTP server and time zone settings

Development board is connected to the first through the ADB, the ADB Shell state using the log adb shell command.

First set the time zone

setprop persist.sys.timezone Asia/Shanghai

Look at the current NTP server settings

settings get global ntp_server

Returns null, then you can set it to Ali cloud NTP server: ntp1.aliyun.com

settings put global ntp_server ntp1.aliyun.com

Can query the NTP server is set again correctly

settings get global ntp_server

Then restart the development board

reboot

After the restart, the development board can automatically obtain the time from the network. After restarting, do not get the time, you can enter the system's Date & Time settings interface, the Automatic date & time option is turned off, then back on, you can automatically get the time.

 

 

Original: http: //www.pianshen.com/article/7435186220/

Guess you like

Origin www.cnblogs.com/la66/p/11751759.html