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

 

 

 
 

 

V4.0 

Element14 | element14.com/PiDesktop  

 

18 

 

Image:  Raspberry Pi Software flow-chat

  

The PiDesktop power control strategy ensures the main power is cut off only after the 
Raspberry Pi has been completely shut down. This is important for the safety of the flash 
chip and the filesystem of the Raspberry Pi board. Without this strategy errors can 
occur, causing delayed file system checking or a situation where the system cannot start 
up. 

3.3

 

Real Time Clock (RTC) 

Each time your Pi Desktop starts up it will connect to what is called a Network Time 
Protocol (NTP) server and request the time.  

If there is no internet connection the Pi Desktop utilizes the integrated RTC on the Pi 
Desktop add-on board. This contains a battery powered clock chip that tells the 
Raspberry 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 Clock on Raspbian Jessie 

The Raspberry Pi is designed to be an ultra-low cost computer; therefore the RPI 
board itself does not include a battery for the RTC. Instead, the RPi is intended to 
be connected to the Internet via Ethernet or WiFi, allowing it to update the time 
automatically from the global ntp (nework time protocol) servers. 

For stand-alone projects with no network connection, the Raspberry Pi will not 
keep time when power is removed.  

This section will explain how to add a low cost battery-backed RTC to your 
Raspberry Pi to enable time keeping and introduce what the pi-desktop debian 
package can do to sync time from RTC. 

Raspbian Jessie (Systemd) 

Step1:   Adding a device tree overlay 

You can add support for the RTC by adding a device tree overlay.  

Содержание 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...

Отзывы: