Element14 DIY Pi Desktop Скачать руководство пользователя страница 20

 

 

 
 

 

V4.0 

Element14 | element14.com/PiDesktop  

 

20 

 

Step4:  Sync time from Pi to RTC 

Setting the correct time is simple. First, run the date to verify the time is correct. 
Connect the Raspberry Pi to the internet via an Ethernet or WiFi to allow the 
Raspberry Pi to initially sync the correct time from the Internet. Once this has 
been done, run: 

sudo hwclock -w  

to write the time, followed by: 

sudo hwclock -r  

to read the time 

 

Once the time is set, make sure the coin cell battery is inserted so that the time is 
saved. You only have to set the time once. The next time you boot the Raspberry 
Pi, the time will automatically be synced from the RTC module. 

Step5:  Update the RTC date during reboot and poweroff 

A systemd service is required in order to update the RTC date during a reboot or 
power off. This will cause systemd to execute a script called sync-hwclock to 

Содержание DIY Pi Desktop

Страница 1: ...V4 0 Element14 element14 com PiDesktop 1 User Manual...

Страница 2: ...ice Settings OPTIONAL 7 2 6 1 Partition and Format the SSD 7 2 6 2 Initialize Booting from the SSD 10 2 7 Camera Installation OPTIONAL 13 2 7 1 Setting up the Camera Hardware 13 2 7 2 Setting up the C...

Страница 3: ...intelligent and safe power controller a real time clock and a high capacity Solid State Drive SSD expansion card socket for additional storage 1 2 Features Intelligent On Off power switch mSATA SSD s...

Страница 4: ...ge the file system and or hardware It is recommended to use an official Raspberry Pi power supply 5V 2 5A with Pi3 5V 2A with Pi2 2 3 Assembly Instructions 1 Remove the protective film from the bottom...

Страница 5: ...mSATA connector and mount the other end using the provided two small screws Refer to section 2 6 for further SSD instructions 9 Finally align the enclosure lid with the flap power button so that it i...

Страница 6: ...5 Software Installation To enable the power control RTC and the SSD USB boot feature a software package will need to be installed To do so follow the instructions below 1 Connect your Pi Desktop to th...

Страница 7: ...e ppp hdclone piclone to move the exist file system to you SSD you do not need to create a partition table and format the partition This is because piclone can do these automatically If instead you us...

Страница 8: ...on t want to To mount the drive we must first know how Linux is referring to it Linux has the majority of its hardware listed under the dev folder structure with connected devices typically using the...

Страница 9: ...w the prompts 2 fdisk mkfs The fdisk command is a text based utility for viewing and managing hard disk partitions on Linux Assume that the un partioned disk is mounted at dev sdc sudo fdisk dev sdc F...

Страница 10: ...OS 3 Write an image to the mSATA SSD Simply you can write an image to the mSATA SSD just as you would write an image to an SD Card The Raspberry Pi Foundation has instructions on how you write images...

Страница 11: ...PiDesktop directly from the SSD otherwise select no n You will now be asked to reboot your system to implement the new configuration and put it into effect Once you have successfully rebooted your sy...

Страница 12: ...p 12 Step 3 Click OK to complete the copy Step 4 You will now be asked if you want to switch the rootfs to your USB device If so make sure the former copy process has been successful and input y You w...

Страница 13: ...he connector It should slide up easily and be able to move back and forth slightly Fully insert the ribbon cable into the slot ensuring it is straight and that the blue backing is facing towards the A...

Страница 14: ...3 Camera the image orientation within the software will need to be rotated 180 degrees To do so use the command rotation rot This sets the rotation of the image 0 359 in viewfinder and resulting imag...

Страница 15: ...ced Shutdown Hold the button pressed for about approx 5 seconds to cutoff power regardless of any other conditions Command Line GUI A reboot command can be sent from the command line or GUI During the...

Страница 16: ...iDesktop power switch to be utilized to perform safe and reliable startup and shutdown procedures Action Button Time Startup at least 150ms Switch off 2 seconds Force switch off 5 seconds Software The...

Страница 17: ...30 seconds of entering the Waiting restart OFF state the MCU will go into the ON state If Pin2 0 after 30 seconds the MCU will go into the OFF state NOTE In states other than the Initialize and OFF s...

Страница 18: ...y Pi what time it is To ensure accuracy the time will need to be set on the system initially Note Installing the software package then rebooting the system will enable the RTC 3 3 1 Adding a Real Time...

Страница 19: ...nd of the file dtoverlay i2c rtc pcf8563 Save your script and then restart by running sudo reboot Step2 Disable the fake hwclock service Run sudo systemctl disable fake hwclock service Step3 Comment o...

Страница 20: ...done run sudo hwclock w to write the time followed by sudo hwclock r to read the time Once the time is set make sure the coin cell battery is inserted so that the time is saved You only have to set th...

Страница 21: ...RTC using the following command sudo hwclock r Within the debian package there is a systemd service set up called sync hwclock This writes the latest time onto the RTC on boot and power off 4 Softwar...

Страница 22: ...er control does not work How do I fix this First ensure you install the software package Once this has been done reboot the system Can I use a third party power charger as the power supply To ensure s...

Отзывы: