<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pine64.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Evergreen97</id>
	<title>PINE64 - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pine64.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Evergreen97"/>
	<link rel="alternate" type="text/html" href="https://wiki.pine64.org/wiki/Special:Contributions/Evergreen97"/>
	<updated>2026-06-18T22:02:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=PinePhone&amp;diff=9008</id>
		<title>PinePhone</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=PinePhone&amp;diff=9008"/>
		<updated>2021-01-15T21:15:02Z</updated>

		<summary type="html">&lt;p&gt;Evergreen97: Refactor of introduction paragraph.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The PinePhone is a smartphone created by Pine64. The PinePhone is capable of running mainline Linux and is supported by many partner projects. The Braveheart Edition of the PinePhone was the first publicly available version of the phone; it shipped without a fully functional OS and was geared specifically toward early adopters. The Braveheart Edition's successor is the Community Edition. The Community Edition became available in June 2020. The Community Edition will be available for at least five years after it's initial release.&lt;br /&gt;
&lt;br /&gt;
== First time installation ==&lt;br /&gt;
&lt;br /&gt;
[[File:Pinephone_rendering_blank_new.png|500px|thumb|right|Rendering of the PinePhone.]]&lt;br /&gt;
&lt;br /&gt;
{{Hint|The default PIN for the KDE Community Edition is '''123456'''.}}&lt;br /&gt;
&lt;br /&gt;
From the factory the battery has a sticker on it that isolates the battery from the phone. The battery '''will not''' charge until this is removed.&lt;br /&gt;
&lt;br /&gt;
[[File:Pinephone_warning.png|none|left|400px]]&lt;br /&gt;
&lt;br /&gt;
To remove the sticker after unboxing the phone:&lt;br /&gt;
&lt;br /&gt;
# Remove the back panel using the notch in the corner of the back cover&lt;br /&gt;
# Remove the battery &lt;br /&gt;
# Peel off the clear plastic sticker below it, which isolates the charging contacts&lt;br /&gt;
# Reinsert the battery&lt;br /&gt;
&lt;br /&gt;
See [[PinePhone#Battery|Battery]] for more information.&lt;br /&gt;
&lt;br /&gt;
The SIM card has to be placed in the lower slot, while the microSD has to be placed in the upper slot, as pictured here:&lt;br /&gt;
&lt;br /&gt;
[[File:Pinephone_backside.png|none|left|400px]]&lt;br /&gt;
&lt;br /&gt;
== Specifications ==&lt;br /&gt;
&lt;br /&gt;
'''Dimensions:''' 160.5 x 76.6 x 9.2mm &amp;lt;br&amp;gt;&lt;br /&gt;
'''Weight:''' Between 180-200 grams &amp;lt;br&amp;gt;&lt;br /&gt;
'''SIM Card:''' Micro-SIM &amp;lt;br&amp;gt;&lt;br /&gt;
'''Display:'''&lt;br /&gt;
: '''Size:''' 5.95 inches (151mm) diagonal&lt;br /&gt;
: '''Type:''' HD IPS capacitive touchscreen, 16M colors&lt;br /&gt;
: '''Resolution:''' 1440x720, 18:9 ratio &amp;lt;br&amp;gt;&lt;br /&gt;
'''System on Chip:''' [https://linux-sunxi.org/A64 Allwinner A64] &amp;lt;br&amp;gt;&lt;br /&gt;
'''RAM:''' 2GB or 3GB LPDDR3 SDRAM&amp;lt;br&amp;gt;&lt;br /&gt;
'''Internal Storage:''' 16GB or 32GB eMMC, extendable up to 2TB via microSD, supports SDHC and SDXC &amp;lt;br&amp;gt;&lt;br /&gt;
'''Back Camera:''' Single 5MP, 1/4&amp;quot;, LED Flash &amp;lt;br&amp;gt;&lt;br /&gt;
'''Selfie Camera:''' Single 2MP, f/2.8, 1/5&amp;quot; &amp;lt;br&amp;gt;&lt;br /&gt;
'''Sound:''' Loudspeaker, 3.5mm jack &amp;amp; mic (jack doubles as hardware UART if killswitch 6 is deactivated) &amp;lt;br&amp;gt;&lt;br /&gt;
'''Communication: G25-G'''&lt;br /&gt;
: '''LTE:''' B1, B2, B3, B4, B5, B7, B8, B12, B13, B18, B19, B20, B25, B26, B28, B38, B39, B40, B41&lt;br /&gt;
: '''WCDMA:''' B1, B2, B4, B5, B6, B8, B19&lt;br /&gt;
: '''GSM:''' 850, 900, 1800, 1900 (MHz)&lt;br /&gt;
: '''WLAN:''' Wi-Fi 802.11 b/g/n, single-band, hotspot&lt;br /&gt;
: '''Bluetooth:''' 4.0, A2DP&lt;br /&gt;
: '''GNSS:''' GPS/GLONASS/BeiDou/Galileo/QZSS, with A-GPS&lt;br /&gt;
'''Sensors:''' Accelerometer, gyro, proximity, ambient light, compass &amp;lt;br&amp;gt;&lt;br /&gt;
'''Killswitches:''' Modem, WiFi &amp;amp; Bluetooth, Microphone, Cameras &amp;lt;br&amp;gt;&lt;br /&gt;
'''Battery:''' Lithium-ion, rated capacity 2800mAh (10.64Wh), typical capacity 3000mAh (11.40Wh) (nominally replaceable with any Samsung J7 form-factor battery) &amp;lt;br&amp;gt;&lt;br /&gt;
'''I/O:''' USB Type-C, USB Host, DisplayPort Alternate Mode output, 15W 5V 3A Quick Charge, follows USB PD specification&lt;br /&gt;
&lt;br /&gt;
== Components ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Component&lt;br /&gt;
! Model&lt;br /&gt;
|-&lt;br /&gt;
| Touchscreen&lt;br /&gt;
| Goodix GT917S&lt;br /&gt;
|-&lt;br /&gt;
| Rear camera&lt;br /&gt;
| OmniVision OV5640&lt;br /&gt;
|-&lt;br /&gt;
| Camera flash&lt;br /&gt;
| SGMICRO SGM3140&lt;br /&gt;
|-&lt;br /&gt;
| Front camera&lt;br /&gt;
| GalaxyCore GC2145&lt;br /&gt;
|-&lt;br /&gt;
| LCD&lt;br /&gt;
| Xingbangda XBD599&lt;br /&gt;
|-&lt;br /&gt;
| WiFi&lt;br /&gt;
| Realtek RTL8723CS&lt;br /&gt;
|-&lt;br /&gt;
| Bluetooth&lt;br /&gt;
| Realtek RTL8723CS&lt;br /&gt;
|-&lt;br /&gt;
| Modem&lt;br /&gt;
| Quectel EG25-G&lt;br /&gt;
|-&lt;br /&gt;
| GNSS/GPS&lt;br /&gt;
| Quectel EG25-G&lt;br /&gt;
|-&lt;br /&gt;
| Magnetometer&lt;br /&gt;
| ST LIS3MDL&lt;br /&gt;
|-&lt;br /&gt;
| Ambient light / Proximity&lt;br /&gt;
| SensorTek STK3335&lt;br /&gt;
|-&lt;br /&gt;
| Sixaxis&lt;br /&gt;
| InvenSense MPU-6050&lt;br /&gt;
|-&lt;br /&gt;
| Vibration motor&lt;br /&gt;
| Unknown model&lt;br /&gt;
|-&lt;br /&gt;
| Notification LED&lt;br /&gt;
| LED0603RGB&lt;br /&gt;
|-&lt;br /&gt;
| Volume buttons&lt;br /&gt;
| Buttons connected to the KEYADC&lt;br /&gt;
|-&lt;br /&gt;
| Power button&lt;br /&gt;
| X-Powers AXP803&lt;br /&gt;
|-&lt;br /&gt;
| Battery fuel gauge&lt;br /&gt;
| X-Powers AXP803&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
See the [[PinePhone_component_list|PinePhone Component List]].&lt;br /&gt;
&lt;br /&gt;
== Hardware revisions ==&lt;br /&gt;
&lt;br /&gt;
# [[Project Anakin]]&lt;br /&gt;
# [[Project Don't be evil|&amp;quot;Project Don't Be Evil&amp;quot; devkit]]&lt;br /&gt;
# [[PinePhone v1.0 - Dev|PinePhone v1.0 - Developer batch]]&lt;br /&gt;
# [[PinePhone v1.1 - Braveheart]]&lt;br /&gt;
# [[PinePhone v1.2‎]] - Ubports Community Edition&lt;br /&gt;
# [[PinePhone v1.2a]] - postmarketOS Community Edition&lt;br /&gt;
# [[PinePhone v1.2b]] - Manjaro Community Edition, KDE Community Edition&lt;br /&gt;
&lt;br /&gt;
== Swapping in a new mainboard revision ==&lt;br /&gt;
&lt;br /&gt;
The mainboard can be replaced, for example for upgrading to a newer hardware revision or if it is faulty. The replacement board does not have an OS preinstalled, to test if everything is working after swapping the mainboard a flashed SD card is required. The mainboard also comes with a non-functional firmware on the ANX chip, a newer firmware version has to be flashed as explained below to get certain USB functionality to work.&lt;br /&gt;
&lt;br /&gt;
=== Replacing the mainboard ===&lt;br /&gt;
&lt;br /&gt;
Prior to replacing your PinePhone’s mainboard please read the steps outlined in bullet points below and watch the attached video.&lt;br /&gt;
&lt;br /&gt;
# You’ll need a small Phillip’s screwdriver and a prying tool to swap out the PinePhone’s mainboard.&lt;br /&gt;
# Remove the PinePhone’s back cover. See your quick start guide for details.&lt;br /&gt;
# Remove the battery as well as any inserted SD and SIM cards.&lt;br /&gt;
# Unscrew all 15 Phillip’s head screws around the midframe of the phone.&lt;br /&gt;
# Gently pry up the midframe using a guitar pick or credit card corner. It is easiest to separate the midframe at one of the bottom edges. Work your way around all the sides of the phone until the midframe separates from the phone’s body.&lt;br /&gt;
# Detach all ribbon cables and “Lego” connectors. List of things to detach: 1) two “Lego” connects at the bottom of the mainboard. 2) u.FL antenna connect and touchscreen digitizer on PCD left side. 3) LCD ribbon cable top of mainboard, next to audio/ UART jack.&lt;br /&gt;
# Pry the mainboard up gently from the left-hand side.&lt;br /&gt;
# Remove front and main cameras and reset them into the new mainboard.&lt;br /&gt;
# Check that the rubber proximity sensor housing is in the chassis, not stuck to the removed mainboard.&lt;br /&gt;
# Place the new mainboard in the chassis, hooking in on the plastic tabs on left side and pressing down firmly on opposite side, and follow the steps (7-2) in reverse. When reattaching the midframe take care that no cables are out of place or trapped, as they may be damaged when tightening screws.&lt;br /&gt;
&lt;br /&gt;
After swapping the mainboard the phone won't boot as there is no OS on the replacement board's eMMC preinstalled. To boot an OS insert a flashed SD card.&lt;br /&gt;
&lt;br /&gt;
A video tutorial can be found here:&lt;br /&gt;
[[File:Pinephone_martijn_pcb_replacement.png|thumb|none|600px|link=https://www.youtube.com/watch?v=5GbMoZ_zuZs|Watch Martijn Braam's video tutorial here: https://www.youtube.com/watch?v=5GbMoZ_zuZs.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Alternatively, user bridadan uploaded a video tutorial of the swap procedure including camera swap and proximity sensor housing here: https://www.youtube.com/watch?v=J3AJEF7akkw.]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing the ANX firmware ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1 ====&lt;br /&gt;
{{Hint|This method is currently not compatible with the Linux kernel 5.10.}}&lt;br /&gt;
&lt;br /&gt;
After swapping the mainboard the ANX chip has to be flashed for full USB functionality.&lt;br /&gt;
&lt;br /&gt;
Download the latest ANX firmware image on the phone:&lt;br /&gt;
&lt;br /&gt;
 wget https://xff.cz/git/linux-firmware/plain/anx7688-fw.bin&lt;br /&gt;
&lt;br /&gt;
Execute as root (&amp;quot;sudo su&amp;quot;) on the phone:&lt;br /&gt;
&lt;br /&gt;
 cp anx7688-fw.bin /lib/firmware/&lt;br /&gt;
 echo 1 &amp;gt; /sys/class/typec/port0/device/flash_eeprom&lt;br /&gt;
&lt;br /&gt;
==== Method 2 ====&lt;br /&gt;
&lt;br /&gt;
Booting a factory test image will automatically flash the ANX chip. See [[PinePhone Software Releases#Factory-loaded postmarketOS build]] for such an image.&lt;br /&gt;
&lt;br /&gt;
== Hardware accessory ==&lt;br /&gt;
&lt;br /&gt;
=== PinePhone hardware accessory compatibility ===&lt;br /&gt;
See [[PinePhone Hardware Accessory Compatibility]] for a list of devices working with the PinePhone (depending on their OS support).&lt;br /&gt;
&lt;br /&gt;
=== USB-C connector ===&lt;br /&gt;
&lt;br /&gt;
The USB-C can be used to power the device, and offers USB2 host and OTG possibilities, and also can make use of the USB-C capability to integrate HDMI signals. Some USB-C hubs are available that offer power throughput, USB connection, HDMI port and Ethernet connection. The driver that would make this connection available is not supported at this time.&lt;br /&gt;
&lt;br /&gt;
=== Pogo pins ===&lt;br /&gt;
&lt;br /&gt;
The PinePhone has 6 pogo pins on the back allowing for custom hardware extensions such as wireless charging, an IR blaster, a keyboard extension or extended battery case. The pogo pins provide access to an interrupt line, power input to charge the battery, power source and an I2C interface.&lt;br /&gt;
&lt;br /&gt;
[[File:Pinephone pogo.png|none|400px]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Interrupt&lt;br /&gt;
| SDA&lt;br /&gt;
| SCL&lt;br /&gt;
|-&lt;br /&gt;
| 5V / VBUS&lt;br /&gt;
| VBAT&lt;br /&gt;
| GND&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The VBUS pin is powered by USB and is 5V at up to 500mA. The second power pin is VBAT, which connects to the battery voltage. The I2C and interrupt lines have pull-ups on the phone side. The I2C lines are pulled up to 3V3 by the phone.&lt;br /&gt;
&lt;br /&gt;
For a breakout board see [https://github.com/SMR404/PinephonePogoBreakout here]. For an example project see Martijn's blog post [https://blog.brixit.nl/making-a-backcover-extension-for-the-pinephone/ &amp;lt;i&amp;gt;&amp;quot;Making a backcover extension for the PinePhone&amp;quot;&amp;lt;/i&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
=== Back cover ===&lt;br /&gt;
A step file for the back cover for creating custom cases is freely available [https://files.pine64.org/doc/PinePhone/PinePhone%20Back%20Cover%20ver%200.5.stp here].&lt;br /&gt;
&lt;br /&gt;
=== Serial console ===&lt;br /&gt;
&lt;br /&gt;
The PinePhone has a serial port in the headphone connector, it's activated by the 6th contact on the dipswitch. If the switch is set to &amp;quot;on&amp;quot;, the headphone connector is in audio mode, if it is set to &amp;quot;off&amp;quot; it's in UART mode. The UART serial connection can also be used for communication with other devices from the PinePhone.&lt;br /&gt;
&lt;br /&gt;
The UART is 115200n8.&lt;br /&gt;
&lt;br /&gt;
The pinout for the serial connector is:&lt;br /&gt;
&lt;br /&gt;
* Tip: RX&lt;br /&gt;
* Ring: TX&lt;br /&gt;
* Sleeve: GND&lt;br /&gt;
&lt;br /&gt;
[[File:PinePhone_Serial_Cable.png|none|400px]]&lt;br /&gt;
&lt;br /&gt;
You can buy a serial debug cable from the [https://pine64.com/product/pinebook-pinephone-pinetab-serial-console/ Pine64 Store]. The store cable uses a 4 ring plug, as seen in the [https://files.pine64.org/doc/pinebook/guide/Pinebook_Earphone_Serial_Console_Developer_Guide.pdf here], but a 3 ring plug works just as well. The cable uses a CH340 chipset based serial to USB converter, but any 3.3v serial connection can be used. Because it is a &amp;quot;host&amp;quot;/DTE it means that you need a ''cross modem cable'' ([https://en.wikipedia.org/wiki/Null_modem Null Modem]) with TX on Tip to be connected to RX. A cable like e.g. [https://www.ftdichip.com/Products/Cables/USBTTLSerial.htm FTDI TTL-232R-3V3-AJ] which has TX on Tip and RX on Ring fits perfectly.&lt;br /&gt;
&lt;br /&gt;
== Killswitch configuration ==&lt;br /&gt;
&lt;br /&gt;
[[File:PinePhone Kill Interruptors de Maquinari del PinePhone 4529.jpg|320px|thumb|right|Detail of DIP switch]]&lt;br /&gt;
&lt;br /&gt;
The PinePhone features six switches that can be used to configure its hardware. They are numbered 1-6, with switch 1 located nearest to the modem. Their &amp;quot;on&amp;quot; position is toward the top of the phone.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Number&lt;br /&gt;
! Name&lt;br /&gt;
! Explanation&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| Modem&lt;br /&gt;
| Pulls Q1501 gate up (FET killing modem power)&lt;br /&gt;
| &amp;quot;On&amp;quot; enables 2G/3G/4G communication and GNSS hardware, &amp;quot;off&amp;quot; disables it.&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| WiFi / Bluetooth&lt;br /&gt;
| Pulls up CHIP_EN&lt;br /&gt;
| &amp;quot;On&amp;quot; enables WiFi and Bluetooth communication hardware, &amp;quot;off&amp;quot; disables it.&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Microphone&lt;br /&gt;
| Breaks microphone bias voltage from the SoC&lt;br /&gt;
| &amp;quot;On&amp;quot; enables audio input from on-board microphones (not 3.5mm jack), &amp;quot;off&amp;quot; disables it.&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| Rear camera&lt;br /&gt;
| Pulls up PWDN on OV5640 &lt;br /&gt;
| &amp;quot;On&amp;quot; enables the rear camera, &amp;quot;off&amp;quot; disables it.&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| Front camera&lt;br /&gt;
| Pulls up PWDN on GC2145&lt;br /&gt;
| &amp;quot;On&amp;quot; enables the front camera, &amp;quot;off&amp;quot; disables it.&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| Headphone&lt;br /&gt;
| Pulls up IN2 on analog switch BCT4717ETB&lt;br /&gt;
| &amp;quot;On&amp;quot; enables audio input and output via the 3.5mm audio jack, &amp;quot;off&amp;quot; switches the jack to hardware UART mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Camera ==&lt;br /&gt;
&lt;br /&gt;
The PinePhone has two cameras, OmniVision OV5640 with 5MP (up to 2592 x 1944 pixels) as rear camera and GalaxyCore GC2145 with 2MP (up to 1600 x 1200 pixels) as front camera.&lt;br /&gt;
&lt;br /&gt;
[[File:Rose.jpg|400px|thumb|none|Example picture taken on the PinePhone's rear camera by Martijn Braam using his app ''Megapixels''.]]&lt;br /&gt;
&lt;br /&gt;
Further details regarding the camera and the Megapixels camera app can be found on [https://blog.brixit.nl/tag/phones/ Martijn's blog].&lt;br /&gt;
&lt;br /&gt;
== Battery ==&lt;br /&gt;
&lt;br /&gt;
{{Hint|The EG25 modem and RTL8723CS WiFi and bluetooth do not work without battery power, even if you are supplying enough power to the PinePhone with USB-C.}}&lt;br /&gt;
&lt;br /&gt;
The phone ships with a plastic sticker between the battery and the phone. You need to open the back cover (gently), then remove the battery and finally remove the sticker and check that the pins aren't bent. This is to protect the device from turning on during shipping.&lt;br /&gt;
&lt;br /&gt;
The [https://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20Specification.pdf supplied battery] is [https://forum.pine64.org/showthread.php?tid=8120&amp;amp;pid=53307#pid53307 meant to be] compatible with Samsung part number EB-BJ700BBC / BBE / CBE from the 2015 J7 phone. &lt;br /&gt;
* The extended life aftermarket BBU does fit, although it is a tight fit.&lt;br /&gt;
* There is [https://forum.pine64.org/showthread.php?tid=8563&amp;amp;pid=55053#pid55053 a report] that the EB-BJ700CBE isn't quite the same size, causing the back not to fit the Braveheart Edition properly.&lt;br /&gt;
&lt;br /&gt;
The battery terminals, in order from nearest the edge to nearest the middle, are:&lt;br /&gt;
&lt;br /&gt;
# +ve&lt;br /&gt;
# thermistor&lt;br /&gt;
# -ve&lt;br /&gt;
# not connected&lt;br /&gt;
&lt;br /&gt;
The battery includes a protection circuit that isolates it in a number of fault conditions, including if it is discharged too far. The fully discharged battery [https://forum.pine64.org/showthread.php?tid=8563&amp;amp;pid=55377#pid55377 can be recharged] by connecting the phone to a charger. Once it has charged sufficiently you will be able to boot the phone.&lt;br /&gt;
&lt;br /&gt;
If your battery is hard to remove from the phone, try loosening the screws in the midframe around it, which is pressing against the battery. Possibly cutting up a piece of plastic and sliding it under the battery as a pull tab can work too.&lt;br /&gt;
&lt;br /&gt;
[[Image:PinePhone battery3.jpeg|400px|thumb|none|Photo of &amp;lt;i&amp;gt;Braveheart Edition&amp;lt;/i&amp;gt; battery sticker from &amp;lt;i&amp;gt;OSAKANA TARO&amp;lt;/i&amp;gt; on Twitter]]&lt;br /&gt;
&lt;br /&gt;
== Modem ==&lt;br /&gt;
The PinePhone uses Quectel EG25-G as modem. AT commands are used to communicate with the modem. The software &amp;lt;code&amp;gt;minicom&amp;lt;/code&amp;gt; can be used to send the commands.&lt;br /&gt;
&lt;br /&gt;
To connect with the modem:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
minicom -D /dev/ttyUSB2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== AT commands ===&lt;br /&gt;
&lt;br /&gt;
A list of documented AT commands can be found in the [https://www.quectel.com/UploadImage/Downlad/Quectel_EC25&amp;amp;EC21_AT_Commands_Manual_V1.3.pdf EC25&amp;amp;EC21 AT Commands Manual] from Quectel. Further undocumented AT commands found by the developer megi, who reverse-engineered parts of the modem and its firmware, can be found on megi's website [http://xnux.eu/devices/feature/modem-pp-reveng.html#toc-un-der-documented-at-commands here].&lt;br /&gt;
&lt;br /&gt;
=== VoLTE ===&lt;br /&gt;
&lt;br /&gt;
The PinePhone's modem supports VoLTE and comes with a few VoLTE profiles preloaded. Most OSes try to set the correct profile automatically.&lt;br /&gt;
&lt;br /&gt;
To list the available VoLTE profiles:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AT+QMBNCFG=&amp;quot;list&amp;quot;&lt;br /&gt;
&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,0,1,1,&amp;quot;ROW_Generic_3GPP&amp;quot;,0x0501081F,201901141&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,1,0,0,&amp;quot;VoLTE-ATT&amp;quot;,0x0501033C,201909271&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,2,0,0,&amp;quot;hVoLTE-Verizon&amp;quot;,0x05010141,201911251&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,3,0,0,&amp;quot;Sprint-VoLTE&amp;quot;,0x05010205,201908141&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,4,0,0,&amp;quot;Commercial-TMO_VoLTE&amp;quot;,0x05010505,201811231&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,5,0,0,&amp;quot;Telus-Commercial_VoLTE&amp;quot;,0x05800C43,201912031&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,6,0,0,&amp;quot;Commercial-SBM&amp;quot;,0x05011C18,201904021&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,7,0,0,&amp;quot;Commercial-DT&amp;quot;,0x05011F1C,201905311&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,8,0,0,&amp;quot;Reliance_OpnMkt&amp;quot;,0x05011B38,201910161&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,9,0,0,&amp;quot;TF_Germany_VoLTE&amp;quot;,0x05010C1B,201909201&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,10,0,0,&amp;quot;TF_Spain_VoLTE&amp;quot;,0x05010CFA,201909261&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,11,0,0,&amp;quot;Volte_OpenMkt-Commercial-CMCC&amp;quot;,0x05012071,201904281&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,12,0,0,&amp;quot;OpenMkt-Commercial-CT&amp;quot;,0x05011322,201911081&lt;br /&gt;
+QMBNCFG: &amp;quot;List&amp;quot;,13,0,0,&amp;quot;OpenMkt-Commercial-CU&amp;quot;,0x05011505,201807052&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To select a profile manually, select the best fitting one or a generic one if none fits:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AT+QMBNCFG=&amp;quot;select&amp;quot;,&amp;quot;ROW_Generic_3GPP&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then enable Voice over LTE using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AT+QCFG=&amp;quot;ims&amp;quot;,1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And reboot the modem to apply the settings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AT+CFUN=1,1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check the status of VoLTE during a call, the AT command &amp;lt;code&amp;gt;CLCC&amp;lt;/code&amp;gt; can be used:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AT+CLCC&lt;br /&gt;
&lt;br /&gt;
+CLCC: 1,1,0,1,0,&amp;quot;&amp;quot;,128&lt;br /&gt;
+CLCC: 2,1,0,1,0,&amp;quot;&amp;quot;,128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== APN settings ===&lt;br /&gt;
&lt;br /&gt;
The APN setting is only required for a public Internet connection (&amp;quot;data&amp;quot;) on the phone. For tested APN settings and how to apply them see [[PinePhone APN Settings]].&lt;br /&gt;
&lt;br /&gt;
=== Carrier support ===&lt;br /&gt;
The page [[PinePhone Carrier Support]] contains information about the frequency support of different carriers and hints on setting up cellular network connectivity.&lt;br /&gt;
&lt;br /&gt;
=== Documents ===&lt;br /&gt;
&lt;br /&gt;
Detailed information about the modem can be found on the [https://xnux.eu/devices/feature/modem-pp.html#toc-modem-on-pinephone page of the developer megi], including reverse-engineered parts of the firmware and its functions. There is also a document about using the modem from January 18th 2020 by megi [https://megous.com/dl/tmp/modem.txt here]. A script at the end of the document showcases a way to poweroff the modem before powering off the phone, which is integrated into most of the available OSes.&lt;br /&gt;
&lt;br /&gt;
=== Firmware modifications ===&lt;br /&gt;
&lt;br /&gt;
See [[PineModems]] for more information regarding modem bootloader unlocking, building a custom modem firmware and modem recovery.&lt;br /&gt;
&lt;br /&gt;
=== Voice mail ===&lt;br /&gt;
&lt;br /&gt;
Some phone operating systems may not have support for accessing your voicemail by holding down the 1 key. If you are in Canada and using rogers or a rogers associated carrier (such as ''Chatr''), you can access your voice mail by calling an external number, see: https://www.howardforums.com/showthread.php/913346-Rogers-GSM-Voicemail-Retrieval-Numbers&lt;br /&gt;
&lt;br /&gt;
In America, AT&amp;amp;T also has support for accessing your voicemail via an external phone number: https://www.att.com/support/article/wireless/KM1009101/&lt;br /&gt;
&lt;br /&gt;
== Operating Systems ==&lt;br /&gt;
&lt;br /&gt;
The PinePhone will automatically boot from microSD if a bootable card is inserted. Although it is technically possible to use any ARM distribution (because the PinePhone uses the mainline kernel), there are a few that are designed specifically for mobile use on devices like the PinePhone.&lt;br /&gt;
&lt;br /&gt;
=== Software releases ===&lt;br /&gt;
&lt;br /&gt;
The [[PinePhone Software Releases]] page has a complete list of currently supported phone-optimized Operating System images that work with the PinePhone as well as other related software information. As soon as more patches get mainlined and distributions ship with the updated kernel, they will also be able to run unmodified on the device.&lt;br /&gt;
&lt;br /&gt;
=== Installation instructions ===&lt;br /&gt;
&lt;br /&gt;
For instructions on how to install the operating systems to the eMMC or SD card see [[PinePhone Installation Instructions]].&lt;br /&gt;
&lt;br /&gt;
=== Flashing eMMC using Jumpdrive ===&lt;br /&gt;
&lt;br /&gt;
[[File:jumpdrive.jpg|400px|thumb|right|Jumpdrive running on the PinePhone]]&lt;br /&gt;
The internal eMMC flash storage can be flashed using the Jumpdrive utility by Danct12 and Martijn from postmarketOS.&lt;br /&gt;
This utility boots from micro SD and exposes the internal eMMC flash storage when the PinePhone is connected to a computer.&lt;br /&gt;
The process of flashing an OS to the exposed and mounted eMMC is identical to that of any other storage medium - e.g. a SD card. You can use the 'DD' command or a utility such as Etcher or Gnome Disks, etc.&lt;br /&gt;
&lt;br /&gt;
Latest Jumpdrive can be found [https://github.com/dreemurrs-embedded/Jumpdrive/releases/ here].&lt;br /&gt;
&lt;br /&gt;
==== Detailed usage instructions ====&lt;br /&gt;
&lt;br /&gt;
# Download the Jumpdrive image&lt;br /&gt;
# Flash the Jumpdrive image to a micro SD card&lt;br /&gt;
# Boot the PinePhone from the Jumpdrive micro SD card&lt;br /&gt;
# Connect the PinePhone to your computer using USB-A -&amp;gt; USB-C cable&lt;br /&gt;
# Flash the exposed PinePhone drive (e.g. /dev/mm..., check for the right device in dmesg, GNOME disks, or similar, and make sure it's unmounted) with your chosen OS image&lt;br /&gt;
# Once the flashing process is complete, disconnect the PinePhone from your PC, power it down and remove the Jumpdrive SD card&lt;br /&gt;
# The process is now finished, and you can boot from eMMC&lt;br /&gt;
&lt;br /&gt;
Jumpdrive also acts as a rescue image in case if you messed up your installation. To do so, you can telnet to '''172.16.42.1''', mount rootfs and fix it!&lt;br /&gt;
&lt;br /&gt;
==== Resize file system (optional) ====&lt;br /&gt;
&lt;br /&gt;
{{Hint|Many OSes already include a script, which is resizing the partition on first boot, where this step is not required.}}&lt;br /&gt;
&lt;br /&gt;
If you flash a 4GB image distribution to your eMMC, your eMMC will only have a 3.7GB partition on it. To use the entire 14.7GB on the eMMC, run the following commands:&lt;br /&gt;
&lt;br /&gt;
# sudo cfdisk /dev/sdX&lt;br /&gt;
# Change to [Resize] in the ncurses program, resize the 3.7GB partition to 14.7GB, and [Write]&lt;br /&gt;
# sudo resize2fs /dev/sdXY&lt;br /&gt;
&lt;br /&gt;
Replace X with your drive's name. Replace Y with the partition you resized in cfdisk.&lt;br /&gt;
&lt;br /&gt;
==== Feedback ====&lt;br /&gt;
&lt;br /&gt;
If you've found an issue or want to improve the tool consider these sites:&lt;br /&gt;
&lt;br /&gt;
* Issues: https://github.com/dreemurrs-embedded/Jumpdrive/issues&lt;br /&gt;
* Pull Requests: https://github.com/dreemurrs-embedded/Jumpdrive/pulls&lt;br /&gt;
&lt;br /&gt;
== Frequently asked questions ==&lt;br /&gt;
&lt;br /&gt;
For a list of frequently asked questions (including information regarding the shipping) see [[PinePhone FAQ]].&lt;br /&gt;
&lt;br /&gt;
== Replacing the screen ==&lt;br /&gt;
&lt;br /&gt;
Before attempting to replace the screen be sure to review the section on [[#Swapping in a new mainboard revision|replacing the mainboard]] since that will get you most of the way there. Be aware that the replacement screen is actually the entire front frame of the phone and there are components that will need to be swapped from your old screen.&lt;br /&gt;
&lt;br /&gt;
* Make sure you have a precision screwdriver set that has the correct size Philips tip. The screws are very small and the heads can easily be stripped if the screwdriver is not correct - if you feel your screwdriver slipping, stop what you are doing and try one that is a better fit. A magnetized screwdriver will help in not losing screws, as will a magnetic parts holder to keep them in while working.&lt;br /&gt;
&lt;br /&gt;
* There are a number of components and cables as well as the insulator sheet under the battery that are glued in place. A hair dryer will loosen the glue and make them much easier to remove. You may want to order extra cables along with the screen just in case.&lt;br /&gt;
&lt;br /&gt;
* The vibrator motor, which is part of the USB-C board assembly and glued into place, will come apart easily and be damaged if you pry it up in the wrong place. Make sure you pry from underneath the complete part, not midway on its housing. The ribbon cable attaching this to the USB-C board is small, thin, and fragile so be careful with that as well.&lt;br /&gt;
&lt;br /&gt;
* The new screen comes with new side switches and insulator sheet but there are a number of parts that need to be transferred from the old screen, like the thin coax cable running up the side, the phone ear speaker, proximity sensor gasket, and a gold-colored mesh glued in place that needs to be transferred to a flexible circuit included on the new screen. If you don't swap over the proximity sensor rubber gasket the screen will immediately turn off after logging in. Be careful when routing the coax cable that it goes around the screw holes or you may drive a screw right through the cable.&lt;br /&gt;
&lt;br /&gt;
Take your time, use the right tools, be careful and you should be rewarded with success.&lt;br /&gt;
&lt;br /&gt;
== Spare parts not available in the Pine64 store ==&lt;br /&gt;
&lt;br /&gt;
* Earpiece dimensions: 12x6x2 mm. Compatible with Xiaomi Mi2 / Mi3 / Mi4, Lenovo A536 and others. ([https://forum.pine64.org/showthread.php?tid=12046&amp;amp;pid=85698#pid85698 ref])&lt;br /&gt;
* Loudspeaker dimensions: 15x11x3 mm. Compatible with Nokia N91, Lenovo A536 and others. ([https://forum.pine64.org/showthread.php?tid=12046&amp;amp;pid=85698#pid85698 ref])&lt;br /&gt;
* Proximity sensor rubber gasket&lt;br /&gt;
&lt;br /&gt;
== Press ==&lt;br /&gt;
&lt;br /&gt;
For an overview about media of the PinePhone you can use for the news, blogs, or similar see [[PinePhone Press]].&lt;br /&gt;
&lt;br /&gt;
== PinePhone board information, schematics and certifications ==&lt;br /&gt;
* PinePhone mainboard schematic:&lt;br /&gt;
** [https://files.pine64.org/doc/PinePhone/PinePhone%20v1.2b%20Released%20Schematic.pdf PinePhone mainboard Released Schematic ver 1.2b]&lt;br /&gt;
** [https://files.pine64.org/doc/PinePhone/PinePhone%20v1.2a%20Released%20Schematic.pdf PinePhone mainboard Released Schematic ver 1.2a]&lt;br /&gt;
** [https://files.pine64.org/doc/PinePhone/PinePhone%20v1.2%20Released%20Schematic.pdf PinePhone mainboard Released Schematic ver 1.2]&lt;br /&gt;
** [[PinePhone_v1.2|PinePhone schematic ver 1.2 change list]]&lt;br /&gt;
** [https://files.pine64.org/doc/PinePhone/PinePhone%20Schematic%20v1.1%2020191031.pdf &amp;quot;Braveheart&amp;quot; PinePhone mainboard Schematic ver 1.1]&lt;br /&gt;
** [https://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20top%20placement%20v1.1%2020191031.pdf &amp;quot;Braveheart&amp;quot; PinePhone mainboard component top placement drawing ver 1.1]&lt;br /&gt;
** [https://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20bottom%20placement%20v1.1%2020191031.pdf &amp;quot;Braveheart&amp;quot; PinePhone mainboard component bottom placement drawing ver 1.1]&lt;br /&gt;
** [[PinePhone component list]]&lt;br /&gt;
* PinePhone USB-C small board schematic:&lt;br /&gt;
** [https://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20schematic%20v1.0%2020190730.pdf PinePhone USB-C small board Schematic ver 1.0]&lt;br /&gt;
** [https://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20top%20placement%20v1.0%2020190730.pdf PinePhone USB-C small board component top placement drawing ver 1.0]&lt;br /&gt;
** [https://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20bottom%20placement%20v1.0%2020190730.pdf PinePhone USB-C small board component bottom placement drawing ver 1.0]&lt;br /&gt;
* PinePhone certifications:&lt;br /&gt;
** [https://files.pine64.org/doc/cert/PinePhone%20FCC%20SDOC%20Certificate-S19112602605001.pdf PinePhone FCC Certificate]&lt;br /&gt;
** [https://fcc.report/FCC-ID/2AWAG-PINEPHONE RF Exposure SAR Information from FCC ID site]&lt;br /&gt;
** [https://files.pine64.org/doc/cert/PinePhone%20CE%20RED%20Certificate-S19112602602.pdf PinePhone CE RED Certificate]&lt;br /&gt;
** [https://files.pine64.org/doc/cert/PinePhone%20ROHS%20Report.pdf PinePhone ROHS Report]&lt;br /&gt;
** Note: PinePhone's GSMA TAC (Type Allocation Code) is &amp;lt;i&amp;gt;86769804&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Datasheets for components and peripherals ==&lt;br /&gt;
&lt;br /&gt;
* Allwinner A64 SoC information:&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pine64/A64%20brief%20v1.0%2020150323.pdf Allwinner A64 SoC brief introduction]&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pine64/A64_Datasheet_V1.1.pdf Allwinner A64 SoC Data Sheet V1.1 (Official Released Version)]&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf Allwinner A64 SoC User Manual V1.0 (Official Release Version)]&lt;br /&gt;
&lt;br /&gt;
* X-Powers AXP803 PMU (Power Management Unit) information:&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf AXP803 PMIC datasheet]&lt;br /&gt;
&lt;br /&gt;
* LPDDR3 (178 Balls) SDRAM:&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/ATL3A1632H12A_mobile_lpddr3_11x11.5_v1.0_1600.pdf Artmem LPDDR3 datasheet]&lt;br /&gt;
&lt;br /&gt;
* eMMC information:&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/Kimtigo_fbga153_16_32_64_eMMC_datasheet_v1.3.pdf Kimtigo eMMC datasheet]&lt;br /&gt;
&lt;br /&gt;
* CMOS camera module information:&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/QZ01-rear-2019-0717(HW)%20Model.pdf PinePhone 5M Pixel Real CMOS Image Sensor Module]&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/OV5640_datasheet.pdf OV5640 5MP CMOS Image Sensor SoC for Rear Module datasheet]&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/QZ01-front-2019-0717(HW)%20Model.pdf PinePhone 2M Pixel Front CMOS Image Sensor Module]&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/GC2145%20CSP%20DataSheet%20release%20V1.0_20131201.pdf GC2145 2MP CMOS Image Sensor SoC for Front Module datasheet]&lt;br /&gt;
&lt;br /&gt;
* LCD touch screen panel information:&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/PinePhone%20LCD-QZ01.pdf 5.99&amp;quot; 1440x720 LCD IPS Panel specification]&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/ST7703_DS_v01_20160128.pdf ST7703 LCD Controller datasheet]&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/GT917S-Datasheet.pdf GOODiX GT917S Capacitive Touch Controller datasheet]&lt;br /&gt;
&lt;br /&gt;
* Lithium battery information:&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20Specification.pdf PinePhone Lithium Battery specification]&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20ZCV%20Curve%20Chart.xlsx PinePhone Lithium Battery ZCV curve chart]&lt;br /&gt;
&lt;br /&gt;
* WiFi/BT module information:&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pine64/RTL8723BS.pdf RTL8723BS/RTL8723CS specification]&lt;br /&gt;
&lt;br /&gt;
* LTE module information:&lt;br /&gt;
** [https://www.quectel.com/UploadFile/Product/Quectel_EG25-G_LTE_Standard_Specification_V1.2.pdf Quectel EG25-G LTE Module specification v1.2]&lt;br /&gt;
** [[Media:Quectel EC25EC21 AT Commands Manual V1.2.pdf|EC25&amp;amp;EC21 AT Commands Manual]]&lt;br /&gt;
** [https://www.quectel.com/UploadImage/Downlad/Quectel_EC2x&amp;amp;EG25-G&amp;amp;EG9x&amp;amp;EM05_FILE_AT_Commands_Manual_V1.0.pdf Quectel EC2x EG25-G EG9x EM05 FILE AT Commands Manual v1.0]&lt;br /&gt;
** [https://sixfab.com/wp-content/uploads/2018/09/Quectel_EC25EC21_GNSS_AT_Commands_Manual_V1.1.pdf Quectel EC25 EC21 GNSS AT Commands Manual v1.1]&lt;br /&gt;
&lt;br /&gt;
* Sensors:&lt;br /&gt;
** [https://www.st.com/en/mems-and-sensors/lis3mdl.html ST LIS3MDL 3-axis Magnetomater Datasheet]&lt;br /&gt;
** [https://www.invensense.com/products/motion-tracking/6-axis/mpu-6050/ InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS datasheet]&lt;br /&gt;
** [https://www.sensortek.com.tw/en/product/Proximity_Sensor_with_ALS.html SensorTek STK3335 Ambient Light Sensor and Proximity Sensor]&lt;br /&gt;
&lt;br /&gt;
* Digital video to USB-C bridge:&lt;br /&gt;
** [https://www.analogix.com/en/system/files/AA-002281-PB-6-ANX7688_Product_Brief.pdf ANX7688 product brief]&lt;br /&gt;
&lt;br /&gt;
* Case information:&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/PinePhone%20Exploded%20Diagram%20ver%201.0.pdf PinePhone case exploded diagram]&lt;br /&gt;
** [https://files.pine64.org/doc/datasheet/pinephone/PinePhone%20Back%20Cover.stp PinePhone back cover 3D file]&lt;br /&gt;
&lt;br /&gt;
* Other components:&lt;br /&gt;
** See links in the [[PinePhone_component_list|Component List]]&lt;br /&gt;
&lt;br /&gt;
== Developer works ==&lt;br /&gt;
=== Megous ===&lt;br /&gt;
&lt;br /&gt;
* [https://xnux.eu/howtos/pine64-pinephone-getting-started.html Getting start with PinePhone Hardware]&lt;br /&gt;
* [https://xnux.eu/devices/pine64-pinephone.html State of development progress]&lt;br /&gt;
* [https://xnux.eu/news.html PinePhone Technical News and Update, also applies to other Allwinner devices including PINE A64 SBC]&lt;br /&gt;
* [https://xnux.eu/contribute.html Contributions to the kernel development]&lt;br /&gt;
&lt;br /&gt;
== External links == &lt;br /&gt;
* [https://pine64.com/product-category/pinephone/ The PinePhone on the official Pine store]&lt;br /&gt;
* [https://pine64.com/product-category/smarphone-spare-parts/ PinePhone spare parts on the official Pine store]&lt;br /&gt;
* [https://pine64.com/product-category/smartphone-accessories/ PinePhone accessories on the official Pine store]&lt;br /&gt;
&lt;br /&gt;
[[Category:PinePhone]] [[Category:Allwinner A64]]&lt;/div&gt;</summary>
		<author><name>Evergreen97</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Getting_started&amp;diff=8935</id>
		<title>Getting started</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Getting_started&amp;diff=8935"/>
		<updated>2021-01-10T19:32:52Z</updated>

		<summary type="html">&lt;p&gt;Evergreen97: ‎ Corrected instances of &amp;quot;adaptor&amp;quot; to &amp;quot;adapter&amp;quot; (Minor typo(s)).&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:NOOB.png]]&lt;br /&gt;
&lt;br /&gt;
== Setting Up Your device - What You’ll Need to Get Started ==&lt;br /&gt;
&lt;br /&gt;
You will need the following to get started with using your PINE A64(+), SOPine/PINE A64-LTS, Pinebook or ROCK64 board:&lt;br /&gt;
* Windows / Linux PC or MAC with a SD Card Reader connected to the Internet.&lt;br /&gt;
* For PINE A64(+): Power Supply (PSU) and a micro usb cable. Please make sure to use a PSU rated at +5V @2A and a micro USB cable that is at least 26 AWG thick.&lt;br /&gt;
* For SOPine/PINE A64-LTS: Power Supply (PSU) with 3.5mm OD/1.5mm ID barrel DC Jack. Please make sure to use a PSU rated at +5V @2A.&lt;br /&gt;
* For Pinebook and ROCK64: Power Supply (PSU) with 3.5mm OD/1.5mm ID barrel DC Jack. Please make sure to use a PSU rated at +5V @3A.&lt;br /&gt;
* MicroSD card (8GB or higher capacity) rated 'class 10' or better.&lt;br /&gt;
* HDMI cable (unless you wish to run headless / without a monitor). On '''A64 Devices''' Android and Remix OS support 720p and 1080p, while Linux supports a [https://github.com/longsleep/sunxi-disp-tool#available-hdmi-output-names wider range of resolutions].&lt;br /&gt;
* Input device(s) such as: keyboard, mouse, remote, pointer, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Step-by-Step Instructions to Flashing MicroSD Cards ==&lt;br /&gt;
&lt;br /&gt;
'''Caution!'''&lt;br /&gt;
&lt;br /&gt;
Handle the Pine64 Single Board Computers' PCBs with care. Always hold bare boards by the edges and make sure to wear an anti-static wrist strap. Touching components on the front and back of the boards can result in an ESD discharge that may cause damage to the electronics. Avoid placing bare boards on materials such as carpets, plastics or other surfaces prone to electrostatic build-up.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Begin by imaging the OS of your choice'''&lt;br /&gt;
&lt;br /&gt;
The process of flashing PINE64 OS images to micro SD on your Windows, Linux or OSX device is the same for all devices. You will require a quality microSD card (8GB or greater; class 10 or faster). There are many [https://forum.pine64.org/showthread.php?tid=681 substandard and counterfeit cards] in circulation and even reputable vendors may unknowingly sell counterfeit microSD cards. Cards that do not meet the criteria outlined above are known to cause a variety of issues including, but not limited to, complete boot failure. There are ways of testing microSD cards prior to installing the operating system to make sure they are appropriate for use with your board. The main utility for checking microSD cards is  [https://www.softpedia.com/get/System/System-Miscellaneous/H2testw.shtml#download H2testw 1.4]; yet another alternative is [https://github.com/AltraMayor/f3/archive/v6.0.zip F3]. Yet abother overview of various options [https://www.raymond.cc/blog/test-and-detect-fake-or-counterfeit-usb-flash-drives-bought-from-ebay-with-h2testw/ Test and Detect Fake Cards]&lt;br /&gt;
&lt;br /&gt;
Please refer to the relevant section below for instructions on how to image your microSD card:&lt;br /&gt;
* [[#Imaging microSD on Windows 7/8/8.1/10|Imaging microSD on Windows 7/8/8.1/10]]&lt;br /&gt;
* [[#Imaging microSD on Apple OSX|Imaging microSD on Apple OSX]]&lt;br /&gt;
* [[#Imaging microSD on Linux|Imaging microSD on Linux]]&lt;br /&gt;
&lt;br /&gt;
Having successfully imaged your microSD card, insert it into the microSD slot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Plug in the HDMI Cable, Ethernet Cable and Peripherals to your PINE64 SBC'''&lt;br /&gt;
&lt;br /&gt;
Unless you are planning on running your board headless (without a monitor / as a server) you should plug in all necessary peripherals, including the HDMI and Ethernet cable, prior to powering ON the board. Do note, depending on which OS image you are using, some peripherals may or may not work. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Apply Power to Your Board'''&lt;br /&gt;
&lt;br /&gt;
Once you have imaged your microSD and plugged everything in, you are ready to apply power to the PINE64 Single Board Computer. You'll need a good quality 5 Volt, 2 Amp PSU. Using a good quality PSU is very important as failing to meet the required specifications may prevent the board from booting correctly. A marginally higher PSU Voltage is acceptable (for instance, 5.1 volts - due to the nature of the micro usb connection, a 5.1v supply can help protect slightly against voltage drops which can cause undesirable results). However, a significantly higher voltage of 7 Volts or more will damage the PINE64 Single Board Computer and may render it inoperative.&lt;br /&gt;
&lt;br /&gt;
For PINE A64(+) board, if you are using a separate micro USB cable with your PSU, make sure that the cable has a low resistance rating. Cables with high resistance will cause improper function and the unit may not boot at all or only partially. The thicker the internal cabling, the better [https://voyager8.blogspot.co.uk/2013/04/how-to-choose-good-usb-data-and.html i.e. AWG (American Wire Gauge) 20 is better than AWG 28]. In General, '''power-only microUSB''' cables come with red colour USB header.&lt;br /&gt;
&lt;br /&gt;
Having completed the steps outlined above the PINE64 SIngle Board Computer will begin to boot. The onboard power-on LEDs will come on and Ethernet port LEDs will start to blink if you have an Ethenet cable plugged in. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Imaging microSD on Windows 7/8/8.1/10 ===&lt;br /&gt;
&lt;br /&gt;
You will need the following utilities to get started with imaging the OS of your choice onto your microSD card:&lt;br /&gt;
* A compression utility (used to unarchive the OS image). We recommend you use [https://www.7-zip.org/download.html 7zip].&lt;br /&gt;
* A disk image utility (used to flash the .img to your SD card). We recommend you use either the [https://etcher.io/ Etcher] or [https://sourceforge.net/projects/win32diskimager/ Win32Imager] utility.&lt;br /&gt;
&lt;br /&gt;
'''Optional for Allwinner A64 SoC based boards'''&lt;br /&gt;
* Phoenix Card image utility (used ONLY for phoenix card images). You can download it from [https://drive.google.com/file/d/0B0cEs0lxTtL3VmstaEFfbmU1NFk/view?usp=sharing here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Downloading and extracting OS image(s)'''&lt;br /&gt;
&lt;br /&gt;
You can find OS images for the respective devices in the [https://wiki.pine64.org/index.php/Main_Page device section] on the main page. &lt;br /&gt;
Images designated ‘DD’ need to be flashed using Etcher or Win32imager, whilst images labelled ‘Phoenix Card Image’ require the Phoenix Card utility.&lt;br /&gt;
&lt;br /&gt;
Having downloaded the required OS image proceed to use 7zip to unarchive it by right-clicking the archive, and selecting ‘Extract All’. Upon completion, note the destination of where the .img file was extracted (‘Downloads’ folder by default). Once the process has completed, you can proceed to imaging the .img file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging the microSD card (DD)'''&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your laptop/USB card reader. You may require a SD → microSD converter, as most laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer, make sure to take note of the drive it has been assigned (the drive is assigned a letter, e.g. ‘F:’). You will need to remember the ‘letter’ it has been assigned when imaging the OS.&lt;br /&gt;
&lt;br /&gt;
* Launch Win32diskImager.exe or etcher.exe. You will be presented with a field titled ‘path’ and a drop down menu labeled ‘device’. Click the ‘path’, navigate to and select the OS image you extracted from the archive earlier. Next, from the drop-down menu select the drive your microSD has been assigned. '''N.B.''' Pay close attention to the selected drive (remember your letter) – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Having chosen the desired OS image and the correct driver press ‘write’. Once the image has been written to your microSD card you will receive a pop-up notification. Be sure to close the application and to eject/remove your SD card safely from Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging using Phoenix Card (applicable only to Allwinner A64 SoC based boards)'''&lt;br /&gt;
&lt;br /&gt;
On Windows, you can also use Phoenix Card (for detailed instructions click [[PhoenixCard|here]]). The Phoenix Card utility works ONLY with images designated as ‘Phoenix Card’ in the downloads section. To use Phoenix Card follow these steps:&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your laptop/USB card reader. You may require a SD → microSD converter, as most laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer, make sure to take note of the drive it has been assigned (the drive is assigned a letter, e.g. ‘F:’). You will need to remember the ‘letter’ it has been assigned when imaging the OS.&lt;br /&gt;
&lt;br /&gt;
* Launch phoenixcard.exe. You will be presented with a ‘disk’ drop-down menu and a field denoted as ‘.img File’. Click on ‘.img File’ and navigate to and select the OS image have downloaded and unarchived. Next, make sure to select the disk that your microSD card has been assigned. '''N.B.''' Pay close attention to the selected drive (remember your letter) – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Make sure to select ‘Startup!’ from the ‘Write mode’ window and click Burn. Once the image has been written to your microSD card you will receive a confirmation in the ‘option’ window. Be sure to close the application and to eject/remove your SD card safely from Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Imaging microSD on Apple OSX ===&lt;br /&gt;
&lt;br /&gt;
You will need the following utilities to get started with imaging the OS of your choice onto your microSD card:&lt;br /&gt;
* A compression Utility (used to unarchive the OS image). We recommend you use [https://www.7-zip.org/download.html 7Zip].&lt;br /&gt;
* A disk image utility (used to flash the .img to your SD card in GUI). We recommend you use [https://mac.softpedia.com/get/Utilities/ApplePi-Baker.shtml#download ApplePi Baker] or [https://etcher.io/ Etcher].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' Phoenix Card utility and images are NOT available on Apple OSX.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Downloading and extracting OS image(s)'''&lt;br /&gt;
&lt;br /&gt;
You can find OS images for the respective devices in the [https://wiki.pine64.org/index.php/Main_Page device section] on the main page. On OSX you can only use images designated as ‘DD’.&lt;br /&gt;
&lt;br /&gt;
Having downloaded the required OS image proceed to use 7zip to unarchive it by double clicking the archive, and selecting ‘Extract All’. Upon completion, note the destination where the .img file was extracted (‘Downloads’ folder by default). Once the process has completed, you can proceed to imaging the .img file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging the microSD card (GUI)'''&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Mac laptop/USB card reader. You may require a SD → microSD converter, as Apple’s laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer it should appear in Finder / on your desktop.&lt;br /&gt;
&lt;br /&gt;
* Launch Apple-Pi Baker or the etcher utility. Upon startup the application it will ask for your password. When the application launches you will be presented with a field titled ‘IMG file’ and a path of the mounted microSD card (it will look something like this: ‘/dev/diskX 32.0Gb SD card’). Click the ‘IMG file’ button, navigate to and select the OS image you extracted from the archive earlier. Next, select the microSD from the window. '''N.B.''' Pay close attention to the selected drive – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Having chosen the desired OS image and the correct driver press ‘Restore Backup’. Once the image has been written to your microSD card you will receive a pop-up notification. Be sure to close the application and to eject/remove your SD card safely from your Mac.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging from Terminal'''&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' If you are not comfortable using the terminal, please use the GUI method outlined above instead.&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Mac laptop/USB card reader. You may require a SD → microSD converter, as Apple’s laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer it should appear in Finder / on your desktop.&lt;br /&gt;
&lt;br /&gt;
* Open up your terminal and navigate to the directory where you unarchived your OS image.&lt;br /&gt;
&lt;br /&gt;
* Before you start writing to the card, you will have to identify your microSD card. Type: diskutil list and note the output. The disk number should match the size of your SD card and will likely be using ‘Fdisk_partition_scheme’. Having identified the disk number execute the following commands (substitute diskX for your disk and name of image for pine64-image-name.img):&lt;br /&gt;
&lt;br /&gt;
''diskutil unmountDisk /dev/diskX&lt;br /&gt;
sudo dd if=pine64-image-name.img of=/dev/disk2 bs=1M''&lt;br /&gt;
&lt;br /&gt;
* Wait patiently for the process to complete. Be sure to eject/remove your SD card safely from your Mac.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Imaging microSD on Linux ===&lt;br /&gt;
&lt;br /&gt;
You will need the following utilities to get started with imaging the OS of your choice onto your microSD card:&lt;br /&gt;
* A compression Utility (used to unarchive the OS image). We recommend you use [https://apps.kde.org/en/ark Ark].&lt;br /&gt;
* A disk image utility (used to flash the .img to your SD card in GUI). We recommend you use [https://etcher.io/ Etcher] or the [https://git.gnome.org/browse/gnome-disk-utility/ GUI Disks utility] that ships with most popular distros.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' Phoenix Card utility and images are NOT available on Linux.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Downloading and extracting OS image(s)'''&lt;br /&gt;
&lt;br /&gt;
You can find OS images for the respective devices in the [https://wiki.pine64.org/index.php/Main_Page device section] on the main page. On Linux you can only use images designated as ‘DD’.&lt;br /&gt;
&lt;br /&gt;
Having downloaded the required OS image proceed to use 7zip to unarchive it by double clicking the archive, and selecting ‘Extract All’. Upon completion, note the destination where the .img file was extracted (‘Downloads’ folder by default). Once the process has completed, you can proceed to imaging the .img file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging the microSD card (GUI)'''&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Linux laptop/USB card reader. Once the microSD card is plugged into your computer it should appear in your File Manager / on your desktop.&lt;br /&gt;
&lt;br /&gt;
* Launch Disks or the etcher utility (This tutorial outlines how to use Disks, if you wish to learn how to use Etcher please visit [https://etcher.io/ their website]).&lt;br /&gt;
&lt;br /&gt;
* Upon launching Disks, you will be presented with all volumes visible to your computer. As a rule of thumb, your microSD card should be found at the bottom of listed volumes. Verify this by checking the size and mounting of the microSD card. '''N.B.''' Pay close attention to the selected drive – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Having selected your microSD card, click the cog menu in top right corner and choose the ‘Restore Disk Image’ option from the drop-down list. Navigate to and select the OS image you extracted from the archive earlier. Once you select it, you will be asked to enter your password and to confirm writing to the chosen volume (microSD card).&lt;br /&gt;
&lt;br /&gt;
* You will be given a predicted time, writing-speed and completion percentage. Once the image has been written to your microSD card you will receive a pop-up notification. Be sure to close the application and to eject/remove your SD card safely from your computer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging from Terminal'''&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' If you are not comfortable using the terminal, please use the GUI method outlined above instead.&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Linux laptop/USB card reader. Once the microSD card is plugged into your computer it should appear in Finder / on your desktop.&lt;br /&gt;
* Open up your terminal and navigate to the directory where you unarchived your OS image. e.g. &amp;lt;code&amp;gt; cd Download&amp;lt;/code&amp;gt;&lt;br /&gt;
* Before you start writing to the card, you will have to identify your microSD card.&lt;br /&gt;
&lt;br /&gt;
* Type: &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt; and pay attention to the listed disks. Disks will appear as ''/dev/mmcblk0 /dev/mmcblk1'' etc. &lt;br /&gt;
* '''Hint''': the drive you currently have booted from has the &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; at the end of the line. This is the wrong drive. Look at the drive that matches your microSD card’s size.&lt;br /&gt;
* Having located the microSD card use the following command to flash the .img of choice to the microSD card (/dev/sdb used as example): &amp;lt;code&amp;gt;sudo unmount /dev/mmcblk0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now you are ready to write the image to the microSD card using this command: (replace the pine.img file with your image and mmcblkX with the correct device for the microSD card)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo dd if=pine.img of=/dev/mmcblkX bs=1M status=progress conv=fsync&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Wait patiently for the process to complete.&lt;br /&gt;
* use the command &amp;lt;code&amp;gt;sync&amp;lt;/code&amp;gt; to ensure everything is written to the microSD card.&lt;br /&gt;
* The card is ready to boot &lt;br /&gt;
&lt;br /&gt;
(sometimes this process fails and your microSD card can't boot, one way of fixing this is just to repeat the same thing, you can also try a different microSD card)&lt;br /&gt;
&lt;br /&gt;
== Instructions to Flashing eMMC Modules ==&lt;br /&gt;
&lt;br /&gt;
All PINE64 devices - with the '''notable exception of the original Pine A64(+) SBC''' - support eMMC modules as an alternative boot and storage solution to micro SD cards.&lt;br /&gt;
An eMMC module can be purchased for your device(s) from the [https://pine64.com/?post_type=product PINE64 store]. The only PINE64 device that ships with an eMMC module by default is the Pinebook.&lt;br /&gt;
&lt;br /&gt;
The available modules come in three different capacities: 16Gb, 32Gb, 64Gb and 128Gb&lt;br /&gt;
&lt;br /&gt;
There are a few ways to flash eMMC modules with the desired OS image. The following sections are a summary of the processes involved in flashing the OS image of your choice to the eMMC module.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing Using the USB-to-eMMC Adapter (Preferred Way) ===&lt;br /&gt;
&lt;br /&gt;
A USB-to-eMMC adapter is available from purchase from the [https://pine64.com/product/usb-adapter-for-emmc-module/ PINE64 Store] making it easy to mount the eMMC module as a volume in your Windows, Mac OS or Linux computer. The eMMC can hence be flashed directly from your computer with any image similarly to a micro SD card.&lt;br /&gt;
&lt;br /&gt;
'''This installation method works for all devices that support eMMC modules regardless of the chipset''' and it is therefore the preferred way of flashing OS images to eMMC. All available OS images for your device can be installed on the eMMC module this way. &lt;br /&gt;
&lt;br /&gt;
*This process of flashing an OS image to eMMC is '''literally identical to imaging micro SD cards''', so please read [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Step-by-Step Instructions to Flashing Micro SD Cards] before you begin. &lt;br /&gt;
&lt;br /&gt;
For this method you will need the following: &lt;br /&gt;
&lt;br /&gt;
*A Windows, Linux or Mac OS computer&lt;br /&gt;
*A PINE64 eMMC module&lt;br /&gt;
*The PINE64 USB-to-eMMC adapter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Flashing eMMC using the adapter'''&lt;br /&gt;
&lt;br /&gt;
*Insert the the eMMC module into the USB adaptor and plug it into your Windows, Linux or Mac OS computer. It should mount as a regular USB drive and show up in your file manager. &lt;br /&gt;
*If you are using Linux or Mac OS you can either use the dd terminal command or a GUI utility such as [https://etcher.io/ Etcher] to flash the chosen OS Image to eMMC. &lt;br /&gt;
*If you are using a Windows machine use [https://etcher.io/ Etcher] or [https://sourceforge.net/projects/win32diskimager/ Win32 Disk Imager] to flash the OS Image to the eMMC module.  &lt;br /&gt;
&lt;br /&gt;
Once the image has been flashed using your preferred method safely dismount the USB adaptor in your system and unplug it from your computer. Your eMMC is now ready to boot and can be inserted into the eMMC socket on your PINE64 device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC from a SD Boot ===&lt;br /&gt;
&lt;br /&gt;
Some of the available Linux images for Allwinner A64 devices recognise eMMC modules as mounted storage when the device is booted from a micro SD card. This is true for all recent releases of [https://github.com/ayufan-pine64/linux-build/releases ayufan's Linux images]. In result it is possible to flash an OS image to eMMC using the DD command in terminal or the Disks GUI utility included with the Mate desktop. &lt;br /&gt;
&lt;br /&gt;
There are '''two ways''' in which an OS image can be flashed from within a micro SD boot: &lt;br /&gt;
*Via a script called Pine64_install_to_eMMC.sh found in ''/usr/local/sbin''. This script will install an Ubuntu Mate OS installation (identical to the on running on the SD) to the eMMC module. To execute the script navigate to its location in the terminal and type ''sudo ./Pine64_install_to_eMMC.sh''. Follow the instructions. &lt;br /&gt;
&lt;br /&gt;
*By manually downloading and flashing a OS image for your device using DD or the Disk GUI. This way of flashing an OS image to the eMMC is identical to that used on a Linux computer (e.g. for flashing an OS image to a SD card). For more information on how the process works please see the detailed guide on [https://wiki.pine64.org/index.php/NOOB#Imaging_microSD_on_Linux imaging OS images to SD card on Linux]. &lt;br /&gt;
&lt;br /&gt;
For the latter of the two methods here is a summary of the process: &lt;br /&gt;
*Flash an OS image which recognises eMMC as mounted storage to a micro SD card. For details on how to flash a micro SD card see [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards section 3.0] &lt;br /&gt;
*Insert both the micro SD and eMMC module into your device and power it on.&lt;br /&gt;
*Once the PINE64 device boots from micro SD, open the web browser and download the desired OS image for your device. &lt;br /&gt;
*Once the OS image downloads check in terminal or in Disks utility the eMMC's mounting location.&lt;br /&gt;
*Use the DD command or Disks utility to flash the downloaded image to the eMMC module. &lt;br /&gt;
*Once the flashing process is completed power down your device and remove the micro SD card. You should now be able to power your device back up and it will boot the image flashed to the eMMC module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC using FEL (Allwinner A64 Devices Only) ===&lt;br /&gt;
&lt;br /&gt;
Under particular circumstances it may prove difficult to rely on a SD card to flash an OS image to an Allwinner A64 device. In such instances OS images can be directly flashed by means of entering into FEL mode. FEL is a low-level subroutine in the BootROM, and the process of enabling FEL differs from one device to another. To learn more about FEL please refer to the [https://linux-sunxi.org/FEL SUNXI Wiki section] dedicated to the subject. &lt;br /&gt;
&lt;br /&gt;
The process of flashing via FEL is more complex than utilising a micro SD and is therefore '''better suited for proficient and advanced users'''.  &lt;br /&gt;
&lt;br /&gt;
For the process of flashing an image to the eMMC on a device in FEL mode you will need: &lt;br /&gt;
*A computer running Mac OS or Linux&lt;br /&gt;
*An OTG USB A-to-A cable &lt;br /&gt;
&lt;br /&gt;
To enter FEL you will need to: &lt;br /&gt;
*On the Pinebook, power down the Pinebook and remove the PSU, unscrew the bottom of the case and press down the FEL button on the PCB (REF). Plug in the OTG USB A-to-A cord to your computer and the OTG USB port on the Pinebook (on the right facing an open case). Reinsert the PSU cord and press the power button with the FEL button pressed down. Release the FEL button after 3 seconds. &lt;br /&gt;
*On the Pine A64(+) power down the board and remove the micro SD card and power cord. Plug in the OTG USB A-to-A cord to your computer and the OTG USB port on the Pine A64 (+) and SoPine (top port). Power on the device and immediately after insert a micro SD card [https://app.box.com/s/s3m7rb5zfe0jkwqhaiy1zytqq3436fqs with FEL code].&lt;br /&gt;
&lt;br /&gt;
You can check if your device entered FEL mode using ''lsusb'' command in terminal. It should be listed as a device on the USB Bus. &lt;br /&gt;
&lt;br /&gt;
The next step is to mount your device so that your computer recognises the eMMC as mass storage (UMS). A script called boot-tools streamlining this process is available '''thanks to ayufan''' on [https://github.com/ayufan-pine64/boot-tools his github]. Follow his instructions and in terminal perform the following stepps: &lt;br /&gt;
&lt;br /&gt;
*''git clone https://github.com/ayufan-pine64/boot-tools.git&lt;br /&gt;
*''cd boot-tools''&lt;br /&gt;
*''make pinebook_ums''&lt;br /&gt;
or&lt;br /&gt;
*''make pine64_ums''&lt;br /&gt;
&lt;br /&gt;
Once your device mounts as UMS it will appear in your file manager. In CLI you can check if the storage is listed using ''fdisk -l''.  &lt;br /&gt;
&lt;br /&gt;
This process of flashing an OS image to eMMC with the device in FEL mode and mounted as UMS is  '''literally identical to imaging micro SD cards''', so please read [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Step-by-Step Instructions to Flashing Micro SD Cards] and follow the procedure. You can use DD or Disks/ Disk Utility to flash the OS image directly to your device's eMMC. &lt;br /&gt;
&lt;br /&gt;
Once the flashing process is completed, power down your device, remove the A-to-A USB OTG cable and after reapply power to boot your device from eMMC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC using Rockchip Tools (Rock64 Only) ===&lt;br /&gt;
&lt;br /&gt;
Rockchip has a different boot hierarchy to Allwinner's devices making it much more difficult to flash OS images using the micro SD-to-eMMC scheme used on A64. There are, however, flashing tools that make it possible to flash directly to eMMC on a Rock64 in loader and MarkROM modes. &lt;br /&gt;
&lt;br /&gt;
To flash to the eMMC module using these tools you will need the following: &lt;br /&gt;
*A Windows, Mac OS or Linux computer&lt;br /&gt;
*An A-to-A USB cable &lt;br /&gt;
*The Rock64 board with the eMMC module inserted into the socket&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using Windows 7/8.1/10 ''' &lt;br /&gt;
You will need to download the [https://github.com/rockchip-linux/tools/tree/master/windows DriverAssistant aka Rockchip driver] as well as the [https://github.com/rockchip-linux/tools/tree/master/windows AndroidTool_Release] used for flashing OS images. Having completed the downloads extract both archives.The Rockchip driver needs to be installed prior to using the AndroidTool utility. &lt;br /&gt;
&lt;br /&gt;
Having installed the driver and flashing utility, follow these steps:&lt;br /&gt;
*Make sure that eMMC is inserted into the slot on the Rock64&lt;br /&gt;
*Place a jumper / short out the eMMC pins on the board (consult [https://files.pine64.org/doc/rock64/guide/ROCK64_Installing_Android_To_eMMC.pdf this document] for more details.&lt;br /&gt;
*Insert one end of the A-to-A cable into your Windows PC and the other into your Rock64 OTG USB port (top)&lt;br /&gt;
*Inset the power cord into the Rock64&lt;br /&gt;
*Start AndroidTool; make sure that it reports 'Found One Maskrom Device' (if it does not recognise your device, please repeat previous steps)&lt;br /&gt;
*Select either the latest Stock Android build or ayufan's Android TV build with the suffic -update. Download and the extract the chosen image.  &lt;br /&gt;
*In AndroidTool press the firmware tab and navigate to where you extracted the OS image and select it. &lt;br /&gt;
*Press the upgrade tab. You will be prompted when the flashing process is completed. &lt;br /&gt;
*Remove the USB A-to-A cable, power off your board and power it on again to boot into eMMC. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using Linux or Mac OS'''&lt;br /&gt;
&lt;br /&gt;
*Make sure that eMMC is inserted into the slot on the Rock64&lt;br /&gt;
*Download latest stable or pre-release (to be used at own risk) Android TV OS image from [https://github.com/ayufan-rock64/android-7.1/releases ayufan's github]. The image you wish to download is the one '''without a suffix'''; without -update or -raw in the OS image title. &lt;br /&gt;
*In terminal, download rkflashtool following instructions on [https://github.com/ayufan-rock64/android-7.1/blob/master/README.md ayufan's github]&lt;br /&gt;
*Extract the folder containing partitions of the OS image and place the script listed on ayufan's github in the folder&lt;br /&gt;
*Hold down the recovery button on the board&lt;br /&gt;
*Insert one end of the A-to-A cable into your Mac OS or Linux PC and the other into your Rock64 OTG USB port (top)&lt;br /&gt;
*Inset the power cord into the Rock64&lt;br /&gt;
*Check that your device is in loader mode by typing in the terminal ''sudo rkflashtool n''. If rkflashtool doesn't detect the Rock64 please repeat last 3 steps &lt;br /&gt;
*In terminal navigate to where you extracted the Android folder containing the OS partitions and the script and type ''rkinstall''; this will install the community Android TV build to eMMC. &lt;br /&gt;
*Remove the USB A-to-A cable, power off your board and power it on again to boot into eMMC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC Android 'Update' OS Images on Linux (Rock64 Only) ===&lt;br /&gt;
&lt;br /&gt;
It is possible to flash Android 'update' images to the Rock64 eMMC using a Linux PC. This process requires a tool called [https://www.haoyuelectronics.com/service/RK3066/tools/linux/Linux_Upgrade_Tool_v1.2.tar.gz Linux Upgrade Tool] and the full documentation of its functions can be found [https://www.hotmcu.com/wiki/Flashing_Firmware_Image_Files_Using_The_Rockchip_Tool#Using_Linux_Upgrade_Tool_to_flash_update.img here]. Make sure that you download v1.2 or newer, as older tools do not support the RK3328 used on the Rock64.   &lt;br /&gt;
&lt;br /&gt;
To flash to the eMMC module using this method you will need the following: &lt;br /&gt;
*A Linux computer&lt;br /&gt;
*An A-to-A USB cable &lt;br /&gt;
*The Rock64 board with the eMMC module inserted into the socket&lt;br /&gt;
&lt;br /&gt;
Start by downloading an Android '''update''' image for the Rock64. Both PINE64 and Ayufan provide such images for the board - and they are clearly designated as such on both this WiKi's download section and on ayufan's github. For the purpose of this example, I'll use the ayufan's ATV community build: &lt;br /&gt;
&lt;br /&gt;
*Download latest stable or pre-release (to be used at own risk) Android TV OS image from [https://github.com/ayufan-rock64/android-7.1/releases ayufan's github]. The image you wish to download is the one '''with update suffix'''. You need to '''rename the downloaded image to update.img'''.&lt;br /&gt;
*Download the [https://www.haoyuelectronics.com/service/RK3066/tools/linux/Linux_Upgrade_Tool_v1.2.tar.gz Linux Upgrade Tool] to your Linux PC and unarchived it. &lt;br /&gt;
*Extract the archived update Android OS image somewhere where you will remember its path&lt;br /&gt;
*Hold down the recovery button on the board&lt;br /&gt;
*Insert one end of the A-to-A cable into your Mac OS or Linux PC and the other into your Rock64 OTG USB port (top)&lt;br /&gt;
*Inset the power cord into the Rock64&lt;br /&gt;
*In terminal, navigate to where you extracted Rockchip Update Tool and issue the following command substituting the correct path for where the Android Update OS Image is located: ''sudo ./upgrade_tool uf /path/to/update.img''&lt;br /&gt;
*Wait as the utility installs Android to eMMC on your Rock64. &lt;br /&gt;
*Remove the USB A-to-A cable, power off your board and power it on again to boot into eMMC.&lt;br /&gt;
&lt;br /&gt;
== Flashing u-boot to SPI Flash ==&lt;br /&gt;
&lt;br /&gt;
Some of PINE64 devices, such as the Rock64 and SOPine, are equipped with SPI Flash. This allows users to flash u-boot onto the SPI and boot from an external USB 2.0 or USB 3.0 SSD/HDD/thumb-drive, thereby forgoing using eMMC or an microSD card. &lt;br /&gt;
&lt;br /&gt;
To find out more about which images can used in conjunction for SPI booting please see [https://github.com/ayufan-rock64/ ayufan's github].&lt;br /&gt;
&lt;br /&gt;
Writing u-boot to SPI Flash can be achieved in two ways:&lt;br /&gt;
&lt;br /&gt;
=== Using a Stand-Alone Image to Write u-boot to SPI ===&lt;br /&gt;
This may be the simplest method of flashing u-boot to SPI. Download a dedicated image labelled '''u-boot-flash-spi.img.xz''' from [https://github.com/ayufan-rock64/linux-u-boot/releases ayufan's github] and flash it to a micro SD card, the same  you would with any OS image (to learn how to flash OS images to micro SD please following steps outlined in [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Section 3].&lt;br /&gt;
&lt;br /&gt;
'''Having flashed the image follow these steps''': &lt;br /&gt;
&lt;br /&gt;
*Insert the SD into the ROCK64&lt;br /&gt;
*Remove all other peripherals from the board &lt;br /&gt;
*'''Make sure that the eMMC module is disconnected from the board'''&lt;br /&gt;
*Apply power to the ROCK64&lt;br /&gt;
*Wait (few seconds) until the the LEDs on the board will blink continually&lt;br /&gt;
*Power off the board.&lt;br /&gt;
&lt;br /&gt;
The board is now ready to boot from USB 2.0/3.0 storage.&lt;br /&gt;
&lt;br /&gt;
=== Using a Script on Linux OS Images ===&lt;br /&gt;
Most of recent (newer than 0.6.9) Linux OS images contain a script called '''rock64_write_spi_flash.sh''', which is found in ''/usr/local/sbin'' directory. To run the script you will first need to flash a Linux OS image to a micro SD card (to learn how to flash OS images to micro SD please following steps outlined in [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Section 3]). Before proceeding '''make sure that the eMMC module is disconnected''' from the board. Once you have booted into Linux on your PINE64 device all you have to do is run the aforementioned script using this command: &lt;br /&gt;
&lt;br /&gt;
''sudo ./rock64_write_spi_flash.sh''&lt;br /&gt;
&lt;br /&gt;
Once the script finishes its operation, power off your board and remove the micro SD card.&lt;br /&gt;
The board is now ready to boot from USB 2.0/3.0 storage.&lt;br /&gt;
&lt;br /&gt;
=== Erasing and Rewriting SPI === &lt;br /&gt;
There are two ways of removing u-boot from SPI. You can either download '''u-boot-flash-spi.img.xz''' from [https://github.com/ayufan-rock64/linux-u-boot/releases ayufan's github] or use a script found on Linux OS images titled:'''rock64_erase_spi_flash.sh'''. Follow the instructions in the previous sub-sections for the chosen method of removing u-boot from SPI; the instructions are are identical, as the process of erasing u-boot is the exact opposite of flashing it. &lt;br /&gt;
&lt;br /&gt;
'''N.B. You can also erase SPI manually'''. &lt;br /&gt;
To do so, you need to download mtd-utils. on Debian or Ubuntu follow these instructions:&lt;br /&gt;
&lt;br /&gt;
''sudo apt-get install mtd-utils''&lt;br /&gt;
&lt;br /&gt;
''sudo flash_eraseall /dev/mtd0''&lt;br /&gt;
&lt;br /&gt;
=== Booting an OS image from USB 2.0/3.0 Storage ===&lt;br /&gt;
To boot and OS image from USB 2.0/3.0 Storage such as a SSD/HDD or a thumbdrive you first need to have u-boot written to your SPI flash. Please follow the instructions in the previous sub-sections to learn how to write u-boot to SPI on your PINE64 device. &lt;br /&gt;
&lt;br /&gt;
Once you have u-boot on your SPI, the process off booting is very similar to booting from micro SD or eMMC.&lt;br /&gt;
*Download one of the supported OS images for your PINE64 device&lt;br /&gt;
*Flash the OS image to your USB 2.0/USB 3.0 storage device (to learn how to flash OS images please following steps outlined in [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Section 3] The instructions are identical for all types of storage, including USB 2.0/USB 3.0 HDDs and thumb-drives.) &lt;br /&gt;
*Insert the USB storage device with the flashed OS image into one of the USB ports on your PINE64 device&lt;br /&gt;
*Apply power&lt;br /&gt;
&lt;br /&gt;
If you have followed all the steps correctly, the board should boot from your USB 2.0/3.0 storage device.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Your Device ==&lt;br /&gt;
&lt;br /&gt;
There is a number of things that can prevent the PINE64 board from booting up properly. The most common culprits of a failed boot are (to find out more click [https://forum.pine64.org/showthread.php?tid=514 here]):&lt;br /&gt;
&lt;br /&gt;
* Subpar or counterfeit microSD card&lt;br /&gt;
* Subpar Power Supply&lt;br /&gt;
* High resistance (thin) or a very long microUSB cable&lt;br /&gt;
* Failed imaging of the microSD card or eMMC module&lt;br /&gt;
&lt;br /&gt;
Make sure to have the newest version of the OS image your are running. On Allwinner A64 devices running Linux you can update the kernel and uboot using scripts located in the following directory: /usr/local/sbin&lt;br /&gt;
&lt;br /&gt;
* To navigate to the directory type (in terminal): ''cd /usr/local/sbin''&lt;br /&gt;
* You list all the available scripts by typing (in terminal): ''ls''&lt;br /&gt;
* To run the script required update script run the following command: ''sudo ./update_script.sh'' (substitute the relevant update script for update_script)&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting Step by Step'''&lt;br /&gt;
&lt;br /&gt;
Follow these steps to determine the cause of your problem:&lt;br /&gt;
&lt;br /&gt;
* Check your PSU and microUSB cable ratings&lt;br /&gt;
* Download and image a base image of Linux&lt;br /&gt;
* Plug in power and Ethernet into your PINE64 device&lt;br /&gt;
* Watch Ethernet port LED activity&lt;br /&gt;
* Check your router for your device's IP&lt;br /&gt;
* Attempt to ssh into your device's from your computer&lt;br /&gt;
&lt;br /&gt;
If your PSU and microUSB meet the criteria, and you have correctly followed the instructions to image your card and power on the board, but you are not seeing any LED activity and cannot ssh into your device then either the imaging process failed (possibly due to a subpar microSD) OR the PSU / microUSB cable is/are faulty.&lt;br /&gt;
&lt;br /&gt;
If your PSU and microUSB meet the criteria, and you have correctly imaged the OS to your card and power on the board and your can ssh into your PINE A64(+) but get no video feed, then it's likely that the native resolution of your monitor/TV is not supported.&lt;br /&gt;
&lt;br /&gt;
If neither of the above mentioned scenarios fits the problem you are facing, please consult this thread (thanks to Ghost for compiling the list): https://forum.pine64.org/showthread.php?tid=680&lt;br /&gt;
&lt;br /&gt;
If you cannot find a solution to your problem you can submit a ticket at: https://support.pine64.org/&lt;/div&gt;</summary>
		<author><name>Evergreen97</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Getting_started&amp;diff=8934</id>
		<title>Getting started</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Getting_started&amp;diff=8934"/>
		<updated>2021-01-10T19:31:23Z</updated>

		<summary type="html">&lt;p&gt;Evergreen97: ‎ Corrected &amp;quot;PIN64&amp;quot; to &amp;quot;PINE64&amp;quot; (Minor typo).&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:NOOB.png]]&lt;br /&gt;
&lt;br /&gt;
== Setting Up Your device - What You’ll Need to Get Started ==&lt;br /&gt;
&lt;br /&gt;
You will need the following to get started with using your PINE A64(+), SOPine/PINE A64-LTS, Pinebook or ROCK64 board:&lt;br /&gt;
* Windows / Linux PC or MAC with a SD Card Reader connected to the Internet.&lt;br /&gt;
* For PINE A64(+): Power Supply (PSU) and a micro usb cable. Please make sure to use a PSU rated at +5V @2A and a micro USB cable that is at least 26 AWG thick.&lt;br /&gt;
* For SOPine/PINE A64-LTS: Power Supply (PSU) with 3.5mm OD/1.5mm ID barrel DC Jack. Please make sure to use a PSU rated at +5V @2A.&lt;br /&gt;
* For Pinebook and ROCK64: Power Supply (PSU) with 3.5mm OD/1.5mm ID barrel DC Jack. Please make sure to use a PSU rated at +5V @3A.&lt;br /&gt;
* MicroSD card (8GB or higher capacity) rated 'class 10' or better.&lt;br /&gt;
* HDMI cable (unless you wish to run headless / without a monitor). On '''A64 Devices''' Android and Remix OS support 720p and 1080p, while Linux supports a [https://github.com/longsleep/sunxi-disp-tool#available-hdmi-output-names wider range of resolutions].&lt;br /&gt;
* Input device(s) such as: keyboard, mouse, remote, pointer, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Step-by-Step Instructions to Flashing MicroSD Cards ==&lt;br /&gt;
&lt;br /&gt;
'''Caution!'''&lt;br /&gt;
&lt;br /&gt;
Handle the Pine64 Single Board Computers' PCBs with care. Always hold bare boards by the edges and make sure to wear an anti-static wrist strap. Touching components on the front and back of the boards can result in an ESD discharge that may cause damage to the electronics. Avoid placing bare boards on materials such as carpets, plastics or other surfaces prone to electrostatic build-up.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Begin by imaging the OS of your choice'''&lt;br /&gt;
&lt;br /&gt;
The process of flashing PINE64 OS images to micro SD on your Windows, Linux or OSX device is the same for all devices. You will require a quality microSD card (8GB or greater; class 10 or faster). There are many [https://forum.pine64.org/showthread.php?tid=681 substandard and counterfeit cards] in circulation and even reputable vendors may unknowingly sell counterfeit microSD cards. Cards that do not meet the criteria outlined above are known to cause a variety of issues including, but not limited to, complete boot failure. There are ways of testing microSD cards prior to installing the operating system to make sure they are appropriate for use with your board. The main utility for checking microSD cards is  [https://www.softpedia.com/get/System/System-Miscellaneous/H2testw.shtml#download H2testw 1.4]; yet another alternative is [https://github.com/AltraMayor/f3/archive/v6.0.zip F3]. Yet abother overview of various options [https://www.raymond.cc/blog/test-and-detect-fake-or-counterfeit-usb-flash-drives-bought-from-ebay-with-h2testw/ Test and Detect Fake Cards]&lt;br /&gt;
&lt;br /&gt;
Please refer to the relevant section below for instructions on how to image your microSD card:&lt;br /&gt;
* [[#Imaging microSD on Windows 7/8/8.1/10|Imaging microSD on Windows 7/8/8.1/10]]&lt;br /&gt;
* [[#Imaging microSD on Apple OSX|Imaging microSD on Apple OSX]]&lt;br /&gt;
* [[#Imaging microSD on Linux|Imaging microSD on Linux]]&lt;br /&gt;
&lt;br /&gt;
Having successfully imaged your microSD card, insert it into the microSD slot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Plug in the HDMI Cable, Ethernet Cable and Peripherals to your PINE64 SBC'''&lt;br /&gt;
&lt;br /&gt;
Unless you are planning on running your board headless (without a monitor / as a server) you should plug in all necessary peripherals, including the HDMI and Ethernet cable, prior to powering ON the board. Do note, depending on which OS image you are using, some peripherals may or may not work. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Apply Power to Your Board'''&lt;br /&gt;
&lt;br /&gt;
Once you have imaged your microSD and plugged everything in, you are ready to apply power to the PINE64 Single Board Computer. You'll need a good quality 5 Volt, 2 Amp PSU. Using a good quality PSU is very important as failing to meet the required specifications may prevent the board from booting correctly. A marginally higher PSU Voltage is acceptable (for instance, 5.1 volts - due to the nature of the micro usb connection, a 5.1v supply can help protect slightly against voltage drops which can cause undesirable results). However, a significantly higher voltage of 7 Volts or more will damage the PINE64 Single Board Computer and may render it inoperative.&lt;br /&gt;
&lt;br /&gt;
For PINE A64(+) board, if you are using a separate micro USB cable with your PSU, make sure that the cable has a low resistance rating. Cables with high resistance will cause improper function and the unit may not boot at all or only partially. The thicker the internal cabling, the better [https://voyager8.blogspot.co.uk/2013/04/how-to-choose-good-usb-data-and.html i.e. AWG (American Wire Gauge) 20 is better than AWG 28]. In General, '''power-only microUSB''' cables come with red colour USB header.&lt;br /&gt;
&lt;br /&gt;
Having completed the steps outlined above the PINE64 SIngle Board Computer will begin to boot. The onboard power-on LEDs will come on and Ethernet port LEDs will start to blink if you have an Ethenet cable plugged in. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Imaging microSD on Windows 7/8/8.1/10 ===&lt;br /&gt;
&lt;br /&gt;
You will need the following utilities to get started with imaging the OS of your choice onto your microSD card:&lt;br /&gt;
* A compression utility (used to unarchive the OS image). We recommend you use [https://www.7-zip.org/download.html 7zip].&lt;br /&gt;
* A disk image utility (used to flash the .img to your SD card). We recommend you use either the [https://etcher.io/ Etcher] or [https://sourceforge.net/projects/win32diskimager/ Win32Imager] utility.&lt;br /&gt;
&lt;br /&gt;
'''Optional for Allwinner A64 SoC based boards'''&lt;br /&gt;
* Phoenix Card image utility (used ONLY for phoenix card images). You can download it from [https://drive.google.com/file/d/0B0cEs0lxTtL3VmstaEFfbmU1NFk/view?usp=sharing here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Downloading and extracting OS image(s)'''&lt;br /&gt;
&lt;br /&gt;
You can find OS images for the respective devices in the [https://wiki.pine64.org/index.php/Main_Page device section] on the main page. &lt;br /&gt;
Images designated ‘DD’ need to be flashed using Etcher or Win32imager, whilst images labelled ‘Phoenix Card Image’ require the Phoenix Card utility.&lt;br /&gt;
&lt;br /&gt;
Having downloaded the required OS image proceed to use 7zip to unarchive it by right-clicking the archive, and selecting ‘Extract All’. Upon completion, note the destination of where the .img file was extracted (‘Downloads’ folder by default). Once the process has completed, you can proceed to imaging the .img file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging the microSD card (DD)'''&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your laptop/USB card reader. You may require a SD → microSD converter, as most laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer, make sure to take note of the drive it has been assigned (the drive is assigned a letter, e.g. ‘F:’). You will need to remember the ‘letter’ it has been assigned when imaging the OS.&lt;br /&gt;
&lt;br /&gt;
* Launch Win32diskImager.exe or etcher.exe. You will be presented with a field titled ‘path’ and a drop down menu labeled ‘device’. Click the ‘path’, navigate to and select the OS image you extracted from the archive earlier. Next, from the drop-down menu select the drive your microSD has been assigned. '''N.B.''' Pay close attention to the selected drive (remember your letter) – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Having chosen the desired OS image and the correct driver press ‘write’. Once the image has been written to your microSD card you will receive a pop-up notification. Be sure to close the application and to eject/remove your SD card safely from Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging using Phoenix Card (applicable only to Allwinner A64 SoC based boards)'''&lt;br /&gt;
&lt;br /&gt;
On Windows, you can also use Phoenix Card (for detailed instructions click [[PhoenixCard|here]]). The Phoenix Card utility works ONLY with images designated as ‘Phoenix Card’ in the downloads section. To use Phoenix Card follow these steps:&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your laptop/USB card reader. You may require a SD → microSD converter, as most laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer, make sure to take note of the drive it has been assigned (the drive is assigned a letter, e.g. ‘F:’). You will need to remember the ‘letter’ it has been assigned when imaging the OS.&lt;br /&gt;
&lt;br /&gt;
* Launch phoenixcard.exe. You will be presented with a ‘disk’ drop-down menu and a field denoted as ‘.img File’. Click on ‘.img File’ and navigate to and select the OS image have downloaded and unarchived. Next, make sure to select the disk that your microSD card has been assigned. '''N.B.''' Pay close attention to the selected drive (remember your letter) – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Make sure to select ‘Startup!’ from the ‘Write mode’ window and click Burn. Once the image has been written to your microSD card you will receive a confirmation in the ‘option’ window. Be sure to close the application and to eject/remove your SD card safely from Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Imaging microSD on Apple OSX ===&lt;br /&gt;
&lt;br /&gt;
You will need the following utilities to get started with imaging the OS of your choice onto your microSD card:&lt;br /&gt;
* A compression Utility (used to unarchive the OS image). We recommend you use [https://www.7-zip.org/download.html 7Zip].&lt;br /&gt;
* A disk image utility (used to flash the .img to your SD card in GUI). We recommend you use [https://mac.softpedia.com/get/Utilities/ApplePi-Baker.shtml#download ApplePi Baker] or [https://etcher.io/ Etcher].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' Phoenix Card utility and images are NOT available on Apple OSX.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Downloading and extracting OS image(s)'''&lt;br /&gt;
&lt;br /&gt;
You can find OS images for the respective devices in the [https://wiki.pine64.org/index.php/Main_Page device section] on the main page. On OSX you can only use images designated as ‘DD’.&lt;br /&gt;
&lt;br /&gt;
Having downloaded the required OS image proceed to use 7zip to unarchive it by double clicking the archive, and selecting ‘Extract All’. Upon completion, note the destination where the .img file was extracted (‘Downloads’ folder by default). Once the process has completed, you can proceed to imaging the .img file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging the microSD card (GUI)'''&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Mac laptop/USB card reader. You may require a SD → microSD converter, as Apple’s laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer it should appear in Finder / on your desktop.&lt;br /&gt;
&lt;br /&gt;
* Launch Apple-Pi Baker or the etcher utility. Upon startup the application it will ask for your password. When the application launches you will be presented with a field titled ‘IMG file’ and a path of the mounted microSD card (it will look something like this: ‘/dev/diskX 32.0Gb SD card’). Click the ‘IMG file’ button, navigate to and select the OS image you extracted from the archive earlier. Next, select the microSD from the window. '''N.B.''' Pay close attention to the selected drive – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Having chosen the desired OS image and the correct driver press ‘Restore Backup’. Once the image has been written to your microSD card you will receive a pop-up notification. Be sure to close the application and to eject/remove your SD card safely from your Mac.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging from Terminal'''&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' If you are not comfortable using the terminal, please use the GUI method outlined above instead.&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Mac laptop/USB card reader. You may require a SD → microSD converter, as Apple’s laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer it should appear in Finder / on your desktop.&lt;br /&gt;
&lt;br /&gt;
* Open up your terminal and navigate to the directory where you unarchived your OS image.&lt;br /&gt;
&lt;br /&gt;
* Before you start writing to the card, you will have to identify your microSD card. Type: diskutil list and note the output. The disk number should match the size of your SD card and will likely be using ‘Fdisk_partition_scheme’. Having identified the disk number execute the following commands (substitute diskX for your disk and name of image for pine64-image-name.img):&lt;br /&gt;
&lt;br /&gt;
''diskutil unmountDisk /dev/diskX&lt;br /&gt;
sudo dd if=pine64-image-name.img of=/dev/disk2 bs=1M''&lt;br /&gt;
&lt;br /&gt;
* Wait patiently for the process to complete. Be sure to eject/remove your SD card safely from your Mac.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Imaging microSD on Linux ===&lt;br /&gt;
&lt;br /&gt;
You will need the following utilities to get started with imaging the OS of your choice onto your microSD card:&lt;br /&gt;
* A compression Utility (used to unarchive the OS image). We recommend you use [https://apps.kde.org/en/ark Ark].&lt;br /&gt;
* A disk image utility (used to flash the .img to your SD card in GUI). We recommend you use [https://etcher.io/ Etcher] or the [https://git.gnome.org/browse/gnome-disk-utility/ GUI Disks utility] that ships with most popular distros.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' Phoenix Card utility and images are NOT available on Linux.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Downloading and extracting OS image(s)'''&lt;br /&gt;
&lt;br /&gt;
You can find OS images for the respective devices in the [https://wiki.pine64.org/index.php/Main_Page device section] on the main page. On Linux you can only use images designated as ‘DD’.&lt;br /&gt;
&lt;br /&gt;
Having downloaded the required OS image proceed to use 7zip to unarchive it by double clicking the archive, and selecting ‘Extract All’. Upon completion, note the destination where the .img file was extracted (‘Downloads’ folder by default). Once the process has completed, you can proceed to imaging the .img file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging the microSD card (GUI)'''&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Linux laptop/USB card reader. Once the microSD card is plugged into your computer it should appear in your File Manager / on your desktop.&lt;br /&gt;
&lt;br /&gt;
* Launch Disks or the etcher utility (This tutorial outlines how to use Disks, if you wish to learn how to use Etcher please visit [https://etcher.io/ their website]).&lt;br /&gt;
&lt;br /&gt;
* Upon launching Disks, you will be presented with all volumes visible to your computer. As a rule of thumb, your microSD card should be found at the bottom of listed volumes. Verify this by checking the size and mounting of the microSD card. '''N.B.''' Pay close attention to the selected drive – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Having selected your microSD card, click the cog menu in top right corner and choose the ‘Restore Disk Image’ option from the drop-down list. Navigate to and select the OS image you extracted from the archive earlier. Once you select it, you will be asked to enter your password and to confirm writing to the chosen volume (microSD card).&lt;br /&gt;
&lt;br /&gt;
* You will be given a predicted time, writing-speed and completion percentage. Once the image has been written to your microSD card you will receive a pop-up notification. Be sure to close the application and to eject/remove your SD card safely from your computer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging from Terminal'''&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' If you are not comfortable using the terminal, please use the GUI method outlined above instead.&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Linux laptop/USB card reader. Once the microSD card is plugged into your computer it should appear in Finder / on your desktop.&lt;br /&gt;
* Open up your terminal and navigate to the directory where you unarchived your OS image. e.g. &amp;lt;code&amp;gt; cd Download&amp;lt;/code&amp;gt;&lt;br /&gt;
* Before you start writing to the card, you will have to identify your microSD card.&lt;br /&gt;
&lt;br /&gt;
* Type: &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt; and pay attention to the listed disks. Disks will appear as ''/dev/mmcblk0 /dev/mmcblk1'' etc. &lt;br /&gt;
* '''Hint''': the drive you currently have booted from has the &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; at the end of the line. This is the wrong drive. Look at the drive that matches your microSD card’s size.&lt;br /&gt;
* Having located the microSD card use the following command to flash the .img of choice to the microSD card (/dev/sdb used as example): &amp;lt;code&amp;gt;sudo unmount /dev/mmcblk0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now you are ready to write the image to the microSD card using this command: (replace the pine.img file with your image and mmcblkX with the correct device for the microSD card)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo dd if=pine.img of=/dev/mmcblkX bs=1M status=progress conv=fsync&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Wait patiently for the process to complete.&lt;br /&gt;
* use the command &amp;lt;code&amp;gt;sync&amp;lt;/code&amp;gt; to ensure everything is written to the microSD card.&lt;br /&gt;
* The card is ready to boot &lt;br /&gt;
&lt;br /&gt;
(sometimes this process fails and your microSD card can't boot, one way of fixing this is just to repeat the same thing, you can also try a different microSD card)&lt;br /&gt;
&lt;br /&gt;
== Instructions to Flashing eMMC Modules ==&lt;br /&gt;
&lt;br /&gt;
All PINE64 devices - with the '''notable exception of the original Pine A64(+) SBC''' - support eMMC modules as an alternative boot and storage solution to micro SD cards.&lt;br /&gt;
An eMMC module can be purchased for your device(s) from the [https://pine64.com/?post_type=product PINE64 store]. The only PINE64 device that ships with an eMMC module by default is the Pinebook.&lt;br /&gt;
&lt;br /&gt;
The available modules come in three different capacities: 16Gb, 32Gb, 64Gb and 128Gb&lt;br /&gt;
&lt;br /&gt;
There are a few ways to flash eMMC modules with the desired OS image. The following sections are a summary of the processes involved in flashing the OS image of your choice to the eMMC module.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing Using the USB-to-eMMC Adaptor (Preferred Way) ===&lt;br /&gt;
&lt;br /&gt;
A USB-to-eMMC adaptor is available from purchase from the [https://pine64.com/product/usb-adapter-for-emmc-module/ PINE64 Store] making it easy to mount the eMMC module as a volume in your Windows, Mac OS or Linux computer. The eMMC can hence be flashed directly from your computer with any image similarly to a micro SD card.&lt;br /&gt;
&lt;br /&gt;
'''This installation method works for all devices that support eMMC modules regardless of the chipset''' and it is therefore the preferred way of flashing OS images to eMMC. All available OS images for your device can be installed on the eMMC module this way. &lt;br /&gt;
&lt;br /&gt;
*This process of flashing an OS image to eMMC is '''literally identical to imaging micro SD cards''', so please read [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Step-by-Step Instructions to Flashing Micro SD Cards] before you begin. &lt;br /&gt;
&lt;br /&gt;
For this method you will need the following: &lt;br /&gt;
&lt;br /&gt;
*A Windows, Linux or Mac OS computer&lt;br /&gt;
*A PINE64 eMMC module&lt;br /&gt;
*The PINE64 USB-to-eMMC adaptor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Flashing eMMC using the adaptor'''&lt;br /&gt;
&lt;br /&gt;
*Insert the the eMMC module into the USB adaptor and plug it into your Windows, Linux or Mac OS computer. It should mount as a regular USB drive and show up in your file manager. &lt;br /&gt;
*If you are using Linux or Mac OS you can either use the dd terminal command or a GUI utility such as [https://etcher.io/ Etcher] to flash the chosen OS Image to eMMC. &lt;br /&gt;
*If you are using a Windows machine use [https://etcher.io/ Etcher] or [https://sourceforge.net/projects/win32diskimager/ Win32 Disk Imager] to flash the OS Image to the eMMC module.  &lt;br /&gt;
&lt;br /&gt;
Once the image has been flashed using your preferred method safely dismount the USB adaptor in your system and unplug it from your computer. Your eMMC is now ready to boot and can be inserted into the eMMC socket on your PINE64 device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC from a SD Boot ===&lt;br /&gt;
&lt;br /&gt;
Some of the available Linux images for Allwinner A64 devices recognise eMMC modules as mounted storage when the device is booted from a micro SD card. This is true for all recent releases of [https://github.com/ayufan-pine64/linux-build/releases ayufan's Linux images]. In result it is possible to flash an OS image to eMMC using the DD command in terminal or the Disks GUI utility included with the Mate desktop. &lt;br /&gt;
&lt;br /&gt;
There are '''two ways''' in which an OS image can be flashed from within a micro SD boot: &lt;br /&gt;
*Via a script called Pine64_install_to_eMMC.sh found in ''/usr/local/sbin''. This script will install an Ubuntu Mate OS installation (identical to the on running on the SD) to the eMMC module. To execute the script navigate to its location in the terminal and type ''sudo ./Pine64_install_to_eMMC.sh''. Follow the instructions. &lt;br /&gt;
&lt;br /&gt;
*By manually downloading and flashing a OS image for your device using DD or the Disk GUI. This way of flashing an OS image to the eMMC is identical to that used on a Linux computer (e.g. for flashing an OS image to a SD card). For more information on how the process works please see the detailed guide on [https://wiki.pine64.org/index.php/NOOB#Imaging_microSD_on_Linux imaging OS images to SD card on Linux]. &lt;br /&gt;
&lt;br /&gt;
For the latter of the two methods here is a summary of the process: &lt;br /&gt;
*Flash an OS image which recognises eMMC as mounted storage to a micro SD card. For details on how to flash a micro SD card see [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards section 3.0] &lt;br /&gt;
*Insert both the micro SD and eMMC module into your device and power it on.&lt;br /&gt;
*Once the PINE64 device boots from micro SD, open the web browser and download the desired OS image for your device. &lt;br /&gt;
*Once the OS image downloads check in terminal or in Disks utility the eMMC's mounting location.&lt;br /&gt;
*Use the DD command or Disks utility to flash the downloaded image to the eMMC module. &lt;br /&gt;
*Once the flashing process is completed power down your device and remove the micro SD card. You should now be able to power your device back up and it will boot the image flashed to the eMMC module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC using FEL (Allwinner A64 Devices Only) ===&lt;br /&gt;
&lt;br /&gt;
Under particular circumstances it may prove difficult to rely on a SD card to flash an OS image to an Allwinner A64 device. In such instances OS images can be directly flashed by means of entering into FEL mode. FEL is a low-level subroutine in the BootROM, and the process of enabling FEL differs from one device to another. To learn more about FEL please refer to the [https://linux-sunxi.org/FEL SUNXI Wiki section] dedicated to the subject. &lt;br /&gt;
&lt;br /&gt;
The process of flashing via FEL is more complex than utilising a micro SD and is therefore '''better suited for proficient and advanced users'''.  &lt;br /&gt;
&lt;br /&gt;
For the process of flashing an image to the eMMC on a device in FEL mode you will need: &lt;br /&gt;
*A computer running Mac OS or Linux&lt;br /&gt;
*An OTG USB A-to-A cable &lt;br /&gt;
&lt;br /&gt;
To enter FEL you will need to: &lt;br /&gt;
*On the Pinebook, power down the Pinebook and remove the PSU, unscrew the bottom of the case and press down the FEL button on the PCB (REF). Plug in the OTG USB A-to-A cord to your computer and the OTG USB port on the Pinebook (on the right facing an open case). Reinsert the PSU cord and press the power button with the FEL button pressed down. Release the FEL button after 3 seconds. &lt;br /&gt;
*On the Pine A64(+) power down the board and remove the micro SD card and power cord. Plug in the OTG USB A-to-A cord to your computer and the OTG USB port on the Pine A64 (+) and SoPine (top port). Power on the device and immediately after insert a micro SD card [https://app.box.com/s/s3m7rb5zfe0jkwqhaiy1zytqq3436fqs with FEL code].&lt;br /&gt;
&lt;br /&gt;
You can check if your device entered FEL mode using ''lsusb'' command in terminal. It should be listed as a device on the USB Bus. &lt;br /&gt;
&lt;br /&gt;
The next step is to mount your device so that your computer recognises the eMMC as mass storage (UMS). A script called boot-tools streamlining this process is available '''thanks to ayufan''' on [https://github.com/ayufan-pine64/boot-tools his github]. Follow his instructions and in terminal perform the following stepps: &lt;br /&gt;
&lt;br /&gt;
*''git clone https://github.com/ayufan-pine64/boot-tools.git&lt;br /&gt;
*''cd boot-tools''&lt;br /&gt;
*''make pinebook_ums''&lt;br /&gt;
or&lt;br /&gt;
*''make pine64_ums''&lt;br /&gt;
&lt;br /&gt;
Once your device mounts as UMS it will appear in your file manager. In CLI you can check if the storage is listed using ''fdisk -l''.  &lt;br /&gt;
&lt;br /&gt;
This process of flashing an OS image to eMMC with the device in FEL mode and mounted as UMS is  '''literally identical to imaging micro SD cards''', so please read [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Step-by-Step Instructions to Flashing Micro SD Cards] and follow the procedure. You can use DD or Disks/ Disk Utility to flash the OS image directly to your device's eMMC. &lt;br /&gt;
&lt;br /&gt;
Once the flashing process is completed, power down your device, remove the A-to-A USB OTG cable and after reapply power to boot your device from eMMC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC using Rockchip Tools (Rock64 Only) ===&lt;br /&gt;
&lt;br /&gt;
Rockchip has a different boot hierarchy to Allwinner's devices making it much more difficult to flash OS images using the micro SD-to-eMMC scheme used on A64. There are, however, flashing tools that make it possible to flash directly to eMMC on a Rock64 in loader and MarkROM modes. &lt;br /&gt;
&lt;br /&gt;
To flash to the eMMC module using these tools you will need the following: &lt;br /&gt;
*A Windows, Mac OS or Linux computer&lt;br /&gt;
*An A-to-A USB cable &lt;br /&gt;
*The Rock64 board with the eMMC module inserted into the socket&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using Windows 7/8.1/10 ''' &lt;br /&gt;
You will need to download the [https://github.com/rockchip-linux/tools/tree/master/windows DriverAssistant aka Rockchip driver] as well as the [https://github.com/rockchip-linux/tools/tree/master/windows AndroidTool_Release] used for flashing OS images. Having completed the downloads extract both archives.The Rockchip driver needs to be installed prior to using the AndroidTool utility. &lt;br /&gt;
&lt;br /&gt;
Having installed the driver and flashing utility, follow these steps:&lt;br /&gt;
*Make sure that eMMC is inserted into the slot on the Rock64&lt;br /&gt;
*Place a jumper / short out the eMMC pins on the board (consult [https://files.pine64.org/doc/rock64/guide/ROCK64_Installing_Android_To_eMMC.pdf this document] for more details.&lt;br /&gt;
*Insert one end of the A-to-A cable into your Windows PC and the other into your Rock64 OTG USB port (top)&lt;br /&gt;
*Inset the power cord into the Rock64&lt;br /&gt;
*Start AndroidTool; make sure that it reports 'Found One Maskrom Device' (if it does not recognise your device, please repeat previous steps)&lt;br /&gt;
*Select either the latest Stock Android build or ayufan's Android TV build with the suffic -update. Download and the extract the chosen image.  &lt;br /&gt;
*In AndroidTool press the firmware tab and navigate to where you extracted the OS image and select it. &lt;br /&gt;
*Press the upgrade tab. You will be prompted when the flashing process is completed. &lt;br /&gt;
*Remove the USB A-to-A cable, power off your board and power it on again to boot into eMMC. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using Linux or Mac OS'''&lt;br /&gt;
&lt;br /&gt;
*Make sure that eMMC is inserted into the slot on the Rock64&lt;br /&gt;
*Download latest stable or pre-release (to be used at own risk) Android TV OS image from [https://github.com/ayufan-rock64/android-7.1/releases ayufan's github]. The image you wish to download is the one '''without a suffix'''; without -update or -raw in the OS image title. &lt;br /&gt;
*In terminal, download rkflashtool following instructions on [https://github.com/ayufan-rock64/android-7.1/blob/master/README.md ayufan's github]&lt;br /&gt;
*Extract the folder containing partitions of the OS image and place the script listed on ayufan's github in the folder&lt;br /&gt;
*Hold down the recovery button on the board&lt;br /&gt;
*Insert one end of the A-to-A cable into your Mac OS or Linux PC and the other into your Rock64 OTG USB port (top)&lt;br /&gt;
*Inset the power cord into the Rock64&lt;br /&gt;
*Check that your device is in loader mode by typing in the terminal ''sudo rkflashtool n''. If rkflashtool doesn't detect the Rock64 please repeat last 3 steps &lt;br /&gt;
*In terminal navigate to where you extracted the Android folder containing the OS partitions and the script and type ''rkinstall''; this will install the community Android TV build to eMMC. &lt;br /&gt;
*Remove the USB A-to-A cable, power off your board and power it on again to boot into eMMC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC Android 'Update' OS Images on Linux (Rock64 Only) ===&lt;br /&gt;
&lt;br /&gt;
It is possible to flash Android 'update' images to the Rock64 eMMC using a Linux PC. This process requires a tool called [https://www.haoyuelectronics.com/service/RK3066/tools/linux/Linux_Upgrade_Tool_v1.2.tar.gz Linux Upgrade Tool] and the full documentation of its functions can be found [https://www.hotmcu.com/wiki/Flashing_Firmware_Image_Files_Using_The_Rockchip_Tool#Using_Linux_Upgrade_Tool_to_flash_update.img here]. Make sure that you download v1.2 or newer, as older tools do not support the RK3328 used on the Rock64.   &lt;br /&gt;
&lt;br /&gt;
To flash to the eMMC module using this method you will need the following: &lt;br /&gt;
*A Linux computer&lt;br /&gt;
*An A-to-A USB cable &lt;br /&gt;
*The Rock64 board with the eMMC module inserted into the socket&lt;br /&gt;
&lt;br /&gt;
Start by downloading an Android '''update''' image for the Rock64. Both PINE64 and Ayufan provide such images for the board - and they are clearly designated as such on both this WiKi's download section and on ayufan's github. For the purpose of this example, I'll use the ayufan's ATV community build: &lt;br /&gt;
&lt;br /&gt;
*Download latest stable or pre-release (to be used at own risk) Android TV OS image from [https://github.com/ayufan-rock64/android-7.1/releases ayufan's github]. The image you wish to download is the one '''with update suffix'''. You need to '''rename the downloaded image to update.img'''.&lt;br /&gt;
*Download the [https://www.haoyuelectronics.com/service/RK3066/tools/linux/Linux_Upgrade_Tool_v1.2.tar.gz Linux Upgrade Tool] to your Linux PC and unarchived it. &lt;br /&gt;
*Extract the archived update Android OS image somewhere where you will remember its path&lt;br /&gt;
*Hold down the recovery button on the board&lt;br /&gt;
*Insert one end of the A-to-A cable into your Mac OS or Linux PC and the other into your Rock64 OTG USB port (top)&lt;br /&gt;
*Inset the power cord into the Rock64&lt;br /&gt;
*In terminal, navigate to where you extracted Rockchip Update Tool and issue the following command substituting the correct path for where the Android Update OS Image is located: ''sudo ./upgrade_tool uf /path/to/update.img''&lt;br /&gt;
*Wait as the utility installs Android to eMMC on your Rock64. &lt;br /&gt;
*Remove the USB A-to-A cable, power off your board and power it on again to boot into eMMC.&lt;br /&gt;
&lt;br /&gt;
== Flashing u-boot to SPI Flash ==&lt;br /&gt;
&lt;br /&gt;
Some of PINE64 devices, such as the Rock64 and SOPine, are equipped with SPI Flash. This allows users to flash u-boot onto the SPI and boot from an external USB 2.0 or USB 3.0 SSD/HDD/thumb-drive, thereby forgoing using eMMC or an microSD card. &lt;br /&gt;
&lt;br /&gt;
To find out more about which images can used in conjunction for SPI booting please see [https://github.com/ayufan-rock64/ ayufan's github].&lt;br /&gt;
&lt;br /&gt;
Writing u-boot to SPI Flash can be achieved in two ways:&lt;br /&gt;
&lt;br /&gt;
=== Using a Stand-Alone Image to Write u-boot to SPI ===&lt;br /&gt;
This may be the simplest method of flashing u-boot to SPI. Download a dedicated image labelled '''u-boot-flash-spi.img.xz''' from [https://github.com/ayufan-rock64/linux-u-boot/releases ayufan's github] and flash it to a micro SD card, the same  you would with any OS image (to learn how to flash OS images to micro SD please following steps outlined in [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Section 3].&lt;br /&gt;
&lt;br /&gt;
'''Having flashed the image follow these steps''': &lt;br /&gt;
&lt;br /&gt;
*Insert the SD into the ROCK64&lt;br /&gt;
*Remove all other peripherals from the board &lt;br /&gt;
*'''Make sure that the eMMC module is disconnected from the board'''&lt;br /&gt;
*Apply power to the ROCK64&lt;br /&gt;
*Wait (few seconds) until the the LEDs on the board will blink continually&lt;br /&gt;
*Power off the board.&lt;br /&gt;
&lt;br /&gt;
The board is now ready to boot from USB 2.0/3.0 storage.&lt;br /&gt;
&lt;br /&gt;
=== Using a Script on Linux OS Images ===&lt;br /&gt;
Most of recent (newer than 0.6.9) Linux OS images contain a script called '''rock64_write_spi_flash.sh''', which is found in ''/usr/local/sbin'' directory. To run the script you will first need to flash a Linux OS image to a micro SD card (to learn how to flash OS images to micro SD please following steps outlined in [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Section 3]). Before proceeding '''make sure that the eMMC module is disconnected''' from the board. Once you have booted into Linux on your PINE64 device all you have to do is run the aforementioned script using this command: &lt;br /&gt;
&lt;br /&gt;
''sudo ./rock64_write_spi_flash.sh''&lt;br /&gt;
&lt;br /&gt;
Once the script finishes its operation, power off your board and remove the micro SD card.&lt;br /&gt;
The board is now ready to boot from USB 2.0/3.0 storage.&lt;br /&gt;
&lt;br /&gt;
=== Erasing and Rewriting SPI === &lt;br /&gt;
There are two ways of removing u-boot from SPI. You can either download '''u-boot-flash-spi.img.xz''' from [https://github.com/ayufan-rock64/linux-u-boot/releases ayufan's github] or use a script found on Linux OS images titled:'''rock64_erase_spi_flash.sh'''. Follow the instructions in the previous sub-sections for the chosen method of removing u-boot from SPI; the instructions are are identical, as the process of erasing u-boot is the exact opposite of flashing it. &lt;br /&gt;
&lt;br /&gt;
'''N.B. You can also erase SPI manually'''. &lt;br /&gt;
To do so, you need to download mtd-utils. on Debian or Ubuntu follow these instructions:&lt;br /&gt;
&lt;br /&gt;
''sudo apt-get install mtd-utils''&lt;br /&gt;
&lt;br /&gt;
''sudo flash_eraseall /dev/mtd0''&lt;br /&gt;
&lt;br /&gt;
=== Booting an OS image from USB 2.0/3.0 Storage ===&lt;br /&gt;
To boot and OS image from USB 2.0/3.0 Storage such as a SSD/HDD or a thumbdrive you first need to have u-boot written to your SPI flash. Please follow the instructions in the previous sub-sections to learn how to write u-boot to SPI on your PINE64 device. &lt;br /&gt;
&lt;br /&gt;
Once you have u-boot on your SPI, the process off booting is very similar to booting from micro SD or eMMC.&lt;br /&gt;
*Download one of the supported OS images for your PINE64 device&lt;br /&gt;
*Flash the OS image to your USB 2.0/USB 3.0 storage device (to learn how to flash OS images please following steps outlined in [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Section 3] The instructions are identical for all types of storage, including USB 2.0/USB 3.0 HDDs and thumb-drives.) &lt;br /&gt;
*Insert the USB storage device with the flashed OS image into one of the USB ports on your PINE64 device&lt;br /&gt;
*Apply power&lt;br /&gt;
&lt;br /&gt;
If you have followed all the steps correctly, the board should boot from your USB 2.0/3.0 storage device.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Your Device ==&lt;br /&gt;
&lt;br /&gt;
There is a number of things that can prevent the PINE64 board from booting up properly. The most common culprits of a failed boot are (to find out more click [https://forum.pine64.org/showthread.php?tid=514 here]):&lt;br /&gt;
&lt;br /&gt;
* Subpar or counterfeit microSD card&lt;br /&gt;
* Subpar Power Supply&lt;br /&gt;
* High resistance (thin) or a very long microUSB cable&lt;br /&gt;
* Failed imaging of the microSD card or eMMC module&lt;br /&gt;
&lt;br /&gt;
Make sure to have the newest version of the OS image your are running. On Allwinner A64 devices running Linux you can update the kernel and uboot using scripts located in the following directory: /usr/local/sbin&lt;br /&gt;
&lt;br /&gt;
* To navigate to the directory type (in terminal): ''cd /usr/local/sbin''&lt;br /&gt;
* You list all the available scripts by typing (in terminal): ''ls''&lt;br /&gt;
* To run the script required update script run the following command: ''sudo ./update_script.sh'' (substitute the relevant update script for update_script)&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting Step by Step'''&lt;br /&gt;
&lt;br /&gt;
Follow these steps to determine the cause of your problem:&lt;br /&gt;
&lt;br /&gt;
* Check your PSU and microUSB cable ratings&lt;br /&gt;
* Download and image a base image of Linux&lt;br /&gt;
* Plug in power and Ethernet into your PINE64 device&lt;br /&gt;
* Watch Ethernet port LED activity&lt;br /&gt;
* Check your router for your device's IP&lt;br /&gt;
* Attempt to ssh into your device's from your computer&lt;br /&gt;
&lt;br /&gt;
If your PSU and microUSB meet the criteria, and you have correctly followed the instructions to image your card and power on the board, but you are not seeing any LED activity and cannot ssh into your device then either the imaging process failed (possibly due to a subpar microSD) OR the PSU / microUSB cable is/are faulty.&lt;br /&gt;
&lt;br /&gt;
If your PSU and microUSB meet the criteria, and you have correctly imaged the OS to your card and power on the board and your can ssh into your PINE A64(+) but get no video feed, then it's likely that the native resolution of your monitor/TV is not supported.&lt;br /&gt;
&lt;br /&gt;
If neither of the above mentioned scenarios fits the problem you are facing, please consult this thread (thanks to Ghost for compiling the list): https://forum.pine64.org/showthread.php?tid=680&lt;br /&gt;
&lt;br /&gt;
If you cannot find a solution to your problem you can submit a ticket at: https://support.pine64.org/&lt;/div&gt;</summary>
		<author><name>Evergreen97</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Getting_started&amp;diff=8933</id>
		<title>Getting started</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Getting_started&amp;diff=8933"/>
		<updated>2021-01-10T19:18:10Z</updated>

		<summary type="html">&lt;p&gt;Evergreen97: Corrected &amp;quot;PIN64&amp;quot; to &amp;quot;PINE64&amp;quot; (Minor typo).&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:NOOB.png]]&lt;br /&gt;
&lt;br /&gt;
== Setting Up Your device - What You’ll Need to Get Started ==&lt;br /&gt;
&lt;br /&gt;
You will need the following to get started with using your PINE A64(+), SOPine/PINE A64-LTS, Pinebook or ROCK64 board:&lt;br /&gt;
* Windows / Linux PC or MAC with a SD Card Reader connected to the Internet.&lt;br /&gt;
* For PINE A64(+): Power Supply (PSU) and a micro usb cable. Please make sure to use a PSU rated at +5V @2A and a micro USB cable that is at least 26 AWG thick.&lt;br /&gt;
* For SOPine/PINE A64-LTS: Power Supply (PSU) with 3.5mm OD/1.5mm ID barrel DC Jack. Please make sure to use a PSU rated at +5V @2A.&lt;br /&gt;
* For Pinebook and ROCK64: Power Supply (PSU) with 3.5mm OD/1.5mm ID barrel DC Jack. Please make sure to use a PSU rated at +5V @3A.&lt;br /&gt;
* MicroSD card (8GB or higher capacity) rated 'class 10' or better.&lt;br /&gt;
* HDMI cable (unless you wish to run headless / without a monitor). On '''A64 Devices''' Android and Remix OS support 720p and 1080p, while Linux supports a [https://github.com/longsleep/sunxi-disp-tool#available-hdmi-output-names wider range of resolutions].&lt;br /&gt;
* Input device(s) such as: keyboard, mouse, remote, pointer, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Step-by-Step Instructions to Flashing MicroSD Cards ==&lt;br /&gt;
&lt;br /&gt;
'''Caution!'''&lt;br /&gt;
&lt;br /&gt;
Handle the Pine64 Single Board Computers' PCBs with care. Always hold bare boards by the edges and make sure to wear an anti-static wrist strap. Touching components on the front and back of the boards can result in an ESD discharge that may cause damage to the electronics. Avoid placing bare boards on materials such as carpets, plastics or other surfaces prone to electrostatic build-up.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Begin by imaging the OS of your choice'''&lt;br /&gt;
&lt;br /&gt;
The process of flashing PINE64 OS images to micro SD on your Windows, Linux or OSX device is the same for all devices. You will require a quality microSD card (8GB or greater; class 10 or faster). There are many [https://forum.pine64.org/showthread.php?tid=681 substandard and counterfeit cards] in circulation and even reputable vendors may unknowingly sell counterfeit microSD cards. Cards that do not meet the criteria outlined above are known to cause a variety of issues including, but not limited to, complete boot failure. There are ways of testing microSD cards prior to installing the operating system to make sure they are appropriate for use with your board. The main utility for checking microSD cards is  [https://www.softpedia.com/get/System/System-Miscellaneous/H2testw.shtml#download H2testw 1.4]; yet another alternative is [https://github.com/AltraMayor/f3/archive/v6.0.zip F3]. Yet abother overview of various options [https://www.raymond.cc/blog/test-and-detect-fake-or-counterfeit-usb-flash-drives-bought-from-ebay-with-h2testw/ Test and Detect Fake Cards]&lt;br /&gt;
&lt;br /&gt;
Please refer to the relevant section below for instructions on how to image your microSD card:&lt;br /&gt;
* [[#Imaging microSD on Windows 7/8/8.1/10|Imaging microSD on Windows 7/8/8.1/10]]&lt;br /&gt;
* [[#Imaging microSD on Apple OSX|Imaging microSD on Apple OSX]]&lt;br /&gt;
* [[#Imaging microSD on Linux|Imaging microSD on Linux]]&lt;br /&gt;
&lt;br /&gt;
Having successfully imaged your microSD card, insert it into the microSD slot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Plug in the HDMI Cable, Ethernet Cable and Peripherals to your PINE64 SBC'''&lt;br /&gt;
&lt;br /&gt;
Unless you are planning on running your board headless (without a monitor / as a server) you should plug in all necessary peripherals, including the HDMI and Ethernet cable, prior to powering ON the board. Do note, depending on which OS image you are using, some peripherals may or may not work. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Apply Power to Your Board'''&lt;br /&gt;
&lt;br /&gt;
Once you have imaged your microSD and plugged everything in, you are ready to apply power to the PINE64 Single Board Computer. You'll need a good quality 5 Volt, 2 Amp PSU. Using a good quality PSU is very important as failing to meet the required specifications may prevent the board from booting correctly. A marginally higher PSU Voltage is acceptable (for instance, 5.1 volts - due to the nature of the micro usb connection, a 5.1v supply can help protect slightly against voltage drops which can cause undesirable results). However, a significantly higher voltage of 7 Volts or more will damage the PINE64 Single Board Computer and may render it inoperative.&lt;br /&gt;
&lt;br /&gt;
For PINE A64(+) board, if you are using a separate micro USB cable with your PSU, make sure that the cable has a low resistance rating. Cables with high resistance will cause improper function and the unit may not boot at all or only partially. The thicker the internal cabling, the better [https://voyager8.blogspot.co.uk/2013/04/how-to-choose-good-usb-data-and.html i.e. AWG (American Wire Gauge) 20 is better than AWG 28]. In General, '''power-only microUSB''' cables come with red colour USB header.&lt;br /&gt;
&lt;br /&gt;
Having completed the steps outlined above the PINE64 SIngle Board Computer will begin to boot. The onboard power-on LEDs will come on and Ethernet port LEDs will start to blink if you have an Ethenet cable plugged in. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Imaging microSD on Windows 7/8/8.1/10 ===&lt;br /&gt;
&lt;br /&gt;
You will need the following utilities to get started with imaging the OS of your choice onto your microSD card:&lt;br /&gt;
* A compression utility (used to unarchive the OS image). We recommend you use [https://www.7-zip.org/download.html 7zip].&lt;br /&gt;
* A disk image utility (used to flash the .img to your SD card). We recommend you use either the [https://etcher.io/ Etcher] or [https://sourceforge.net/projects/win32diskimager/ Win32Imager] utility.&lt;br /&gt;
&lt;br /&gt;
'''Optional for Allwinner A64 SoC based boards'''&lt;br /&gt;
* Phoenix Card image utility (used ONLY for phoenix card images). You can download it from [https://drive.google.com/file/d/0B0cEs0lxTtL3VmstaEFfbmU1NFk/view?usp=sharing here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Downloading and extracting OS image(s)'''&lt;br /&gt;
&lt;br /&gt;
You can find OS images for the respective devices in the [https://wiki.pine64.org/index.php/Main_Page device section] on the main page. &lt;br /&gt;
Images designated ‘DD’ need to be flashed using Etcher or Win32imager, whilst images labelled ‘Phoenix Card Image’ require the Phoenix Card utility.&lt;br /&gt;
&lt;br /&gt;
Having downloaded the required OS image proceed to use 7zip to unarchive it by right-clicking the archive, and selecting ‘Extract All’. Upon completion, note the destination of where the .img file was extracted (‘Downloads’ folder by default). Once the process has completed, you can proceed to imaging the .img file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging the microSD card (DD)'''&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your laptop/USB card reader. You may require a SD → microSD converter, as most laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer, make sure to take note of the drive it has been assigned (the drive is assigned a letter, e.g. ‘F:’). You will need to remember the ‘letter’ it has been assigned when imaging the OS.&lt;br /&gt;
&lt;br /&gt;
* Launch Win32diskImager.exe or etcher.exe. You will be presented with a field titled ‘path’ and a drop down menu labeled ‘device’. Click the ‘path’, navigate to and select the OS image you extracted from the archive earlier. Next, from the drop-down menu select the drive your microSD has been assigned. '''N.B.''' Pay close attention to the selected drive (remember your letter) – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Having chosen the desired OS image and the correct driver press ‘write’. Once the image has been written to your microSD card you will receive a pop-up notification. Be sure to close the application and to eject/remove your SD card safely from Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging using Phoenix Card (applicable only to Allwinner A64 SoC based boards)'''&lt;br /&gt;
&lt;br /&gt;
On Windows, you can also use Phoenix Card (for detailed instructions click [[PhoenixCard|here]]). The Phoenix Card utility works ONLY with images designated as ‘Phoenix Card’ in the downloads section. To use Phoenix Card follow these steps:&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your laptop/USB card reader. You may require a SD → microSD converter, as most laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer, make sure to take note of the drive it has been assigned (the drive is assigned a letter, e.g. ‘F:’). You will need to remember the ‘letter’ it has been assigned when imaging the OS.&lt;br /&gt;
&lt;br /&gt;
* Launch phoenixcard.exe. You will be presented with a ‘disk’ drop-down menu and a field denoted as ‘.img File’. Click on ‘.img File’ and navigate to and select the OS image have downloaded and unarchived. Next, make sure to select the disk that your microSD card has been assigned. '''N.B.''' Pay close attention to the selected drive (remember your letter) – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Make sure to select ‘Startup!’ from the ‘Write mode’ window and click Burn. Once the image has been written to your microSD card you will receive a confirmation in the ‘option’ window. Be sure to close the application and to eject/remove your SD card safely from Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Imaging microSD on Apple OSX ===&lt;br /&gt;
&lt;br /&gt;
You will need the following utilities to get started with imaging the OS of your choice onto your microSD card:&lt;br /&gt;
* A compression Utility (used to unarchive the OS image). We recommend you use [https://www.7-zip.org/download.html 7Zip].&lt;br /&gt;
* A disk image utility (used to flash the .img to your SD card in GUI). We recommend you use [https://mac.softpedia.com/get/Utilities/ApplePi-Baker.shtml#download ApplePi Baker] or [https://etcher.io/ Etcher].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' Phoenix Card utility and images are NOT available on Apple OSX.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Downloading and extracting OS image(s)'''&lt;br /&gt;
&lt;br /&gt;
You can find OS images for the respective devices in the [https://wiki.pine64.org/index.php/Main_Page device section] on the main page. On OSX you can only use images designated as ‘DD’.&lt;br /&gt;
&lt;br /&gt;
Having downloaded the required OS image proceed to use 7zip to unarchive it by double clicking the archive, and selecting ‘Extract All’. Upon completion, note the destination where the .img file was extracted (‘Downloads’ folder by default). Once the process has completed, you can proceed to imaging the .img file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging the microSD card (GUI)'''&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Mac laptop/USB card reader. You may require a SD → microSD converter, as Apple’s laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer it should appear in Finder / on your desktop.&lt;br /&gt;
&lt;br /&gt;
* Launch Apple-Pi Baker or the etcher utility. Upon startup the application it will ask for your password. When the application launches you will be presented with a field titled ‘IMG file’ and a path of the mounted microSD card (it will look something like this: ‘/dev/diskX 32.0Gb SD card’). Click the ‘IMG file’ button, navigate to and select the OS image you extracted from the archive earlier. Next, select the microSD from the window. '''N.B.''' Pay close attention to the selected drive – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Having chosen the desired OS image and the correct driver press ‘Restore Backup’. Once the image has been written to your microSD card you will receive a pop-up notification. Be sure to close the application and to eject/remove your SD card safely from your Mac.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging from Terminal'''&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' If you are not comfortable using the terminal, please use the GUI method outlined above instead.&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Mac laptop/USB card reader. You may require a SD → microSD converter, as Apple’s laptops and desktops only feature a full-size SD card reader. Once the microSD card is plugged into your computer it should appear in Finder / on your desktop.&lt;br /&gt;
&lt;br /&gt;
* Open up your terminal and navigate to the directory where you unarchived your OS image.&lt;br /&gt;
&lt;br /&gt;
* Before you start writing to the card, you will have to identify your microSD card. Type: diskutil list and note the output. The disk number should match the size of your SD card and will likely be using ‘Fdisk_partition_scheme’. Having identified the disk number execute the following commands (substitute diskX for your disk and name of image for pine64-image-name.img):&lt;br /&gt;
&lt;br /&gt;
''diskutil unmountDisk /dev/diskX&lt;br /&gt;
sudo dd if=pine64-image-name.img of=/dev/disk2 bs=1M''&lt;br /&gt;
&lt;br /&gt;
* Wait patiently for the process to complete. Be sure to eject/remove your SD card safely from your Mac.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Imaging microSD on Linux ===&lt;br /&gt;
&lt;br /&gt;
You will need the following utilities to get started with imaging the OS of your choice onto your microSD card:&lt;br /&gt;
* A compression Utility (used to unarchive the OS image). We recommend you use [https://apps.kde.org/en/ark Ark].&lt;br /&gt;
* A disk image utility (used to flash the .img to your SD card in GUI). We recommend you use [https://etcher.io/ Etcher] or the [https://git.gnome.org/browse/gnome-disk-utility/ GUI Disks utility] that ships with most popular distros.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' Phoenix Card utility and images are NOT available on Linux.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Downloading and extracting OS image(s)'''&lt;br /&gt;
&lt;br /&gt;
You can find OS images for the respective devices in the [https://wiki.pine64.org/index.php/Main_Page device section] on the main page. On Linux you can only use images designated as ‘DD’.&lt;br /&gt;
&lt;br /&gt;
Having downloaded the required OS image proceed to use 7zip to unarchive it by double clicking the archive, and selecting ‘Extract All’. Upon completion, note the destination where the .img file was extracted (‘Downloads’ folder by default). Once the process has completed, you can proceed to imaging the .img file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging the microSD card (GUI)'''&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Linux laptop/USB card reader. Once the microSD card is plugged into your computer it should appear in your File Manager / on your desktop.&lt;br /&gt;
&lt;br /&gt;
* Launch Disks or the etcher utility (This tutorial outlines how to use Disks, if you wish to learn how to use Etcher please visit [https://etcher.io/ their website]).&lt;br /&gt;
&lt;br /&gt;
* Upon launching Disks, you will be presented with all volumes visible to your computer. As a rule of thumb, your microSD card should be found at the bottom of listed volumes. Verify this by checking the size and mounting of the microSD card. '''N.B.''' Pay close attention to the selected drive – the imaging process will format the selected drive. If you choose the wrong drive all your data will be lost.&lt;br /&gt;
&lt;br /&gt;
* Having selected your microSD card, click the cog menu in top right corner and choose the ‘Restore Disk Image’ option from the drop-down list. Navigate to and select the OS image you extracted from the archive earlier. Once you select it, you will be asked to enter your password and to confirm writing to the chosen volume (microSD card).&lt;br /&gt;
&lt;br /&gt;
* You will be given a predicted time, writing-speed and completion percentage. Once the image has been written to your microSD card you will receive a pop-up notification. Be sure to close the application and to eject/remove your SD card safely from your computer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Imaging from Terminal'''&lt;br /&gt;
&lt;br /&gt;
'''N.B.''' If you are not comfortable using the terminal, please use the GUI method outlined above instead.&lt;br /&gt;
&lt;br /&gt;
* Insert your microSD card into your Linux laptop/USB card reader. Once the microSD card is plugged into your computer it should appear in Finder / on your desktop.&lt;br /&gt;
* Open up your terminal and navigate to the directory where you unarchived your OS image. e.g. &amp;lt;code&amp;gt; cd Download&amp;lt;/code&amp;gt;&lt;br /&gt;
* Before you start writing to the card, you will have to identify your microSD card.&lt;br /&gt;
&lt;br /&gt;
* Type: &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt; and pay attention to the listed disks. Disks will appear as ''/dev/mmcblk0 /dev/mmcblk1'' etc. &lt;br /&gt;
* '''Hint''': the drive you currently have booted from has the &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; at the end of the line. This is the wrong drive. Look at the drive that matches your microSD card’s size.&lt;br /&gt;
* Having located the microSD card use the following command to flash the .img of choice to the microSD card (/dev/sdb used as example): &amp;lt;code&amp;gt;sudo unmount /dev/mmcblk0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now you are ready to write the image to the microSD card using this command: (replace the pine.img file with your image and mmcblkX with the correct device for the microSD card)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo dd if=pine.img of=/dev/mmcblkX bs=1M status=progress conv=fsync&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Wait patiently for the process to complete.&lt;br /&gt;
* use the command &amp;lt;code&amp;gt;sync&amp;lt;/code&amp;gt; to ensure everything is written to the microSD card.&lt;br /&gt;
* The card is ready to boot &lt;br /&gt;
&lt;br /&gt;
(sometimes this process fails and your microSD card can't boot, one way of fixing this is just to repeat the same thing, you can also try a different microSD card)&lt;br /&gt;
&lt;br /&gt;
== Instructions to Flashing eMMC Modules ==&lt;br /&gt;
&lt;br /&gt;
All PINE64 devices - with the '''notable exception of the original Pine A64(+) SBC''' - support eMMC modules as an alternative boot and storage solution to micro SD cards.&lt;br /&gt;
An eMMC module can be purchased for your device(s) from the [https://pine64.com/?post_type=product PINE64 store]. The only PINE64 device that ships with an eMMC module by default is the Pinebook.&lt;br /&gt;
&lt;br /&gt;
The available modules come in three different capacities: 16Gb, 32Gb, 64Gb and 128Gb&lt;br /&gt;
&lt;br /&gt;
There are a few ways to flash eMMC modules with the desired OS image. The following sections are a summary of the processes involved in flashing the OS image of your choice to the eMMC module.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing Using the USB-to-eMMC Adaptor (Preferred Way) ===&lt;br /&gt;
&lt;br /&gt;
A USB-to-eMMC adaptor is available from purchase from the [https://pine64.com/product/usb-adapter-for-emmc-module/ PIN64 Store] making it easy to mount the eMMC module as a volume in your Windows, Mac OS or Linux computer. The eMMC can hence be flashed directly from your computer with any image similarly to a micro SD card.&lt;br /&gt;
&lt;br /&gt;
'''This installation method works for all devices that support eMMC modules regardless of the chipset''' and it is therefore the preferred way of flashing OS images to eMMC. All available OS images for your device can be installed on the eMMC module this way. &lt;br /&gt;
&lt;br /&gt;
*This process of flashing an OS image to eMMC is '''literally identical to imaging micro SD cards''', so please read [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Step-by-Step Instructions to Flashing Micro SD Cards] before you begin. &lt;br /&gt;
&lt;br /&gt;
For this method you will need the following: &lt;br /&gt;
&lt;br /&gt;
*A Windows, Linux or Mac OS computer&lt;br /&gt;
*A PINE64 eMMC module&lt;br /&gt;
*The PINE64 USB-to-eMMC adaptor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Flashing eMMC using the adaptor'''&lt;br /&gt;
&lt;br /&gt;
*Insert the the eMMC module into the USB adaptor and plug it into your Windows, Linux or Mac OS computer. It should mount as a regular USB drive and show up in your file manager. &lt;br /&gt;
*If you are using Linux or Mac OS you can either use the dd terminal command or a GUI utility such as [https://etcher.io/ Etcher] to flash the chosen OS Image to eMMC. &lt;br /&gt;
*If you are using a Windows machine use [https://etcher.io/ Etcher] or [https://sourceforge.net/projects/win32diskimager/ Win32 Disk Imager] to flash the OS Image to the eMMC module.  &lt;br /&gt;
&lt;br /&gt;
Once the image has been flashed using your preferred method safely dismount the USB adaptor in your system and unplug it from your computer. Your eMMC is now ready to boot and can be inserted into the eMMC socket on your PINE64 device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC from a SD Boot ===&lt;br /&gt;
&lt;br /&gt;
Some of the available Linux images for Allwinner A64 devices recognise eMMC modules as mounted storage when the device is booted from a micro SD card. This is true for all recent releases of [https://github.com/ayufan-pine64/linux-build/releases ayufan's Linux images]. In result it is possible to flash an OS image to eMMC using the DD command in terminal or the Disks GUI utility included with the Mate desktop. &lt;br /&gt;
&lt;br /&gt;
There are '''two ways''' in which an OS image can be flashed from within a micro SD boot: &lt;br /&gt;
*Via a script called Pine64_install_to_eMMC.sh found in ''/usr/local/sbin''. This script will install an Ubuntu Mate OS installation (identical to the on running on the SD) to the eMMC module. To execute the script navigate to its location in the terminal and type ''sudo ./Pine64_install_to_eMMC.sh''. Follow the instructions. &lt;br /&gt;
&lt;br /&gt;
*By manually downloading and flashing a OS image for your device using DD or the Disk GUI. This way of flashing an OS image to the eMMC is identical to that used on a Linux computer (e.g. for flashing an OS image to a SD card). For more information on how the process works please see the detailed guide on [https://wiki.pine64.org/index.php/NOOB#Imaging_microSD_on_Linux imaging OS images to SD card on Linux]. &lt;br /&gt;
&lt;br /&gt;
For the latter of the two methods here is a summary of the process: &lt;br /&gt;
*Flash an OS image which recognises eMMC as mounted storage to a micro SD card. For details on how to flash a micro SD card see [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards section 3.0] &lt;br /&gt;
*Insert both the micro SD and eMMC module into your device and power it on.&lt;br /&gt;
*Once the PINE64 device boots from micro SD, open the web browser and download the desired OS image for your device. &lt;br /&gt;
*Once the OS image downloads check in terminal or in Disks utility the eMMC's mounting location.&lt;br /&gt;
*Use the DD command or Disks utility to flash the downloaded image to the eMMC module. &lt;br /&gt;
*Once the flashing process is completed power down your device and remove the micro SD card. You should now be able to power your device back up and it will boot the image flashed to the eMMC module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC using FEL (Allwinner A64 Devices Only) ===&lt;br /&gt;
&lt;br /&gt;
Under particular circumstances it may prove difficult to rely on a SD card to flash an OS image to an Allwinner A64 device. In such instances OS images can be directly flashed by means of entering into FEL mode. FEL is a low-level subroutine in the BootROM, and the process of enabling FEL differs from one device to another. To learn more about FEL please refer to the [https://linux-sunxi.org/FEL SUNXI Wiki section] dedicated to the subject. &lt;br /&gt;
&lt;br /&gt;
The process of flashing via FEL is more complex than utilising a micro SD and is therefore '''better suited for proficient and advanced users'''.  &lt;br /&gt;
&lt;br /&gt;
For the process of flashing an image to the eMMC on a device in FEL mode you will need: &lt;br /&gt;
*A computer running Mac OS or Linux&lt;br /&gt;
*An OTG USB A-to-A cable &lt;br /&gt;
&lt;br /&gt;
To enter FEL you will need to: &lt;br /&gt;
*On the Pinebook, power down the Pinebook and remove the PSU, unscrew the bottom of the case and press down the FEL button on the PCB (REF). Plug in the OTG USB A-to-A cord to your computer and the OTG USB port on the Pinebook (on the right facing an open case). Reinsert the PSU cord and press the power button with the FEL button pressed down. Release the FEL button after 3 seconds. &lt;br /&gt;
*On the Pine A64(+) power down the board and remove the micro SD card and power cord. Plug in the OTG USB A-to-A cord to your computer and the OTG USB port on the Pine A64 (+) and SoPine (top port). Power on the device and immediately after insert a micro SD card [https://app.box.com/s/s3m7rb5zfe0jkwqhaiy1zytqq3436fqs with FEL code].&lt;br /&gt;
&lt;br /&gt;
You can check if your device entered FEL mode using ''lsusb'' command in terminal. It should be listed as a device on the USB Bus. &lt;br /&gt;
&lt;br /&gt;
The next step is to mount your device so that your computer recognises the eMMC as mass storage (UMS). A script called boot-tools streamlining this process is available '''thanks to ayufan''' on [https://github.com/ayufan-pine64/boot-tools his github]. Follow his instructions and in terminal perform the following stepps: &lt;br /&gt;
&lt;br /&gt;
*''git clone https://github.com/ayufan-pine64/boot-tools.git&lt;br /&gt;
*''cd boot-tools''&lt;br /&gt;
*''make pinebook_ums''&lt;br /&gt;
or&lt;br /&gt;
*''make pine64_ums''&lt;br /&gt;
&lt;br /&gt;
Once your device mounts as UMS it will appear in your file manager. In CLI you can check if the storage is listed using ''fdisk -l''.  &lt;br /&gt;
&lt;br /&gt;
This process of flashing an OS image to eMMC with the device in FEL mode and mounted as UMS is  '''literally identical to imaging micro SD cards''', so please read [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Step-by-Step Instructions to Flashing Micro SD Cards] and follow the procedure. You can use DD or Disks/ Disk Utility to flash the OS image directly to your device's eMMC. &lt;br /&gt;
&lt;br /&gt;
Once the flashing process is completed, power down your device, remove the A-to-A USB OTG cable and after reapply power to boot your device from eMMC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC using Rockchip Tools (Rock64 Only) ===&lt;br /&gt;
&lt;br /&gt;
Rockchip has a different boot hierarchy to Allwinner's devices making it much more difficult to flash OS images using the micro SD-to-eMMC scheme used on A64. There are, however, flashing tools that make it possible to flash directly to eMMC on a Rock64 in loader and MarkROM modes. &lt;br /&gt;
&lt;br /&gt;
To flash to the eMMC module using these tools you will need the following: &lt;br /&gt;
*A Windows, Mac OS or Linux computer&lt;br /&gt;
*An A-to-A USB cable &lt;br /&gt;
*The Rock64 board with the eMMC module inserted into the socket&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using Windows 7/8.1/10 ''' &lt;br /&gt;
You will need to download the [https://github.com/rockchip-linux/tools/tree/master/windows DriverAssistant aka Rockchip driver] as well as the [https://github.com/rockchip-linux/tools/tree/master/windows AndroidTool_Release] used for flashing OS images. Having completed the downloads extract both archives.The Rockchip driver needs to be installed prior to using the AndroidTool utility. &lt;br /&gt;
&lt;br /&gt;
Having installed the driver and flashing utility, follow these steps:&lt;br /&gt;
*Make sure that eMMC is inserted into the slot on the Rock64&lt;br /&gt;
*Place a jumper / short out the eMMC pins on the board (consult [https://files.pine64.org/doc/rock64/guide/ROCK64_Installing_Android_To_eMMC.pdf this document] for more details.&lt;br /&gt;
*Insert one end of the A-to-A cable into your Windows PC and the other into your Rock64 OTG USB port (top)&lt;br /&gt;
*Inset the power cord into the Rock64&lt;br /&gt;
*Start AndroidTool; make sure that it reports 'Found One Maskrom Device' (if it does not recognise your device, please repeat previous steps)&lt;br /&gt;
*Select either the latest Stock Android build or ayufan's Android TV build with the suffic -update. Download and the extract the chosen image.  &lt;br /&gt;
*In AndroidTool press the firmware tab and navigate to where you extracted the OS image and select it. &lt;br /&gt;
*Press the upgrade tab. You will be prompted when the flashing process is completed. &lt;br /&gt;
*Remove the USB A-to-A cable, power off your board and power it on again to boot into eMMC. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using Linux or Mac OS'''&lt;br /&gt;
&lt;br /&gt;
*Make sure that eMMC is inserted into the slot on the Rock64&lt;br /&gt;
*Download latest stable or pre-release (to be used at own risk) Android TV OS image from [https://github.com/ayufan-rock64/android-7.1/releases ayufan's github]. The image you wish to download is the one '''without a suffix'''; without -update or -raw in the OS image title. &lt;br /&gt;
*In terminal, download rkflashtool following instructions on [https://github.com/ayufan-rock64/android-7.1/blob/master/README.md ayufan's github]&lt;br /&gt;
*Extract the folder containing partitions of the OS image and place the script listed on ayufan's github in the folder&lt;br /&gt;
*Hold down the recovery button on the board&lt;br /&gt;
*Insert one end of the A-to-A cable into your Mac OS or Linux PC and the other into your Rock64 OTG USB port (top)&lt;br /&gt;
*Inset the power cord into the Rock64&lt;br /&gt;
*Check that your device is in loader mode by typing in the terminal ''sudo rkflashtool n''. If rkflashtool doesn't detect the Rock64 please repeat last 3 steps &lt;br /&gt;
*In terminal navigate to where you extracted the Android folder containing the OS partitions and the script and type ''rkinstall''; this will install the community Android TV build to eMMC. &lt;br /&gt;
*Remove the USB A-to-A cable, power off your board and power it on again to boot into eMMC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Flashing to eMMC Android 'Update' OS Images on Linux (Rock64 Only) ===&lt;br /&gt;
&lt;br /&gt;
It is possible to flash Android 'update' images to the Rock64 eMMC using a Linux PC. This process requires a tool called [https://www.haoyuelectronics.com/service/RK3066/tools/linux/Linux_Upgrade_Tool_v1.2.tar.gz Linux Upgrade Tool] and the full documentation of its functions can be found [https://www.hotmcu.com/wiki/Flashing_Firmware_Image_Files_Using_The_Rockchip_Tool#Using_Linux_Upgrade_Tool_to_flash_update.img here]. Make sure that you download v1.2 or newer, as older tools do not support the RK3328 used on the Rock64.   &lt;br /&gt;
&lt;br /&gt;
To flash to the eMMC module using this method you will need the following: &lt;br /&gt;
*A Linux computer&lt;br /&gt;
*An A-to-A USB cable &lt;br /&gt;
*The Rock64 board with the eMMC module inserted into the socket&lt;br /&gt;
&lt;br /&gt;
Start by downloading an Android '''update''' image for the Rock64. Both PINE64 and Ayufan provide such images for the board - and they are clearly designated as such on both this WiKi's download section and on ayufan's github. For the purpose of this example, I'll use the ayufan's ATV community build: &lt;br /&gt;
&lt;br /&gt;
*Download latest stable or pre-release (to be used at own risk) Android TV OS image from [https://github.com/ayufan-rock64/android-7.1/releases ayufan's github]. The image you wish to download is the one '''with update suffix'''. You need to '''rename the downloaded image to update.img'''.&lt;br /&gt;
*Download the [https://www.haoyuelectronics.com/service/RK3066/tools/linux/Linux_Upgrade_Tool_v1.2.tar.gz Linux Upgrade Tool] to your Linux PC and unarchived it. &lt;br /&gt;
*Extract the archived update Android OS image somewhere where you will remember its path&lt;br /&gt;
*Hold down the recovery button on the board&lt;br /&gt;
*Insert one end of the A-to-A cable into your Mac OS or Linux PC and the other into your Rock64 OTG USB port (top)&lt;br /&gt;
*Inset the power cord into the Rock64&lt;br /&gt;
*In terminal, navigate to where you extracted Rockchip Update Tool and issue the following command substituting the correct path for where the Android Update OS Image is located: ''sudo ./upgrade_tool uf /path/to/update.img''&lt;br /&gt;
*Wait as the utility installs Android to eMMC on your Rock64. &lt;br /&gt;
*Remove the USB A-to-A cable, power off your board and power it on again to boot into eMMC.&lt;br /&gt;
&lt;br /&gt;
== Flashing u-boot to SPI Flash ==&lt;br /&gt;
&lt;br /&gt;
Some of PINE64 devices, such as the Rock64 and SOPine, are equipped with SPI Flash. This allows users to flash u-boot onto the SPI and boot from an external USB 2.0 or USB 3.0 SSD/HDD/thumb-drive, thereby forgoing using eMMC or an microSD card. &lt;br /&gt;
&lt;br /&gt;
To find out more about which images can used in conjunction for SPI booting please see [https://github.com/ayufan-rock64/ ayufan's github].&lt;br /&gt;
&lt;br /&gt;
Writing u-boot to SPI Flash can be achieved in two ways:&lt;br /&gt;
&lt;br /&gt;
=== Using a Stand-Alone Image to Write u-boot to SPI ===&lt;br /&gt;
This may be the simplest method of flashing u-boot to SPI. Download a dedicated image labelled '''u-boot-flash-spi.img.xz''' from [https://github.com/ayufan-rock64/linux-u-boot/releases ayufan's github] and flash it to a micro SD card, the same  you would with any OS image (to learn how to flash OS images to micro SD please following steps outlined in [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Section 3].&lt;br /&gt;
&lt;br /&gt;
'''Having flashed the image follow these steps''': &lt;br /&gt;
&lt;br /&gt;
*Insert the SD into the ROCK64&lt;br /&gt;
*Remove all other peripherals from the board &lt;br /&gt;
*'''Make sure that the eMMC module is disconnected from the board'''&lt;br /&gt;
*Apply power to the ROCK64&lt;br /&gt;
*Wait (few seconds) until the the LEDs on the board will blink continually&lt;br /&gt;
*Power off the board.&lt;br /&gt;
&lt;br /&gt;
The board is now ready to boot from USB 2.0/3.0 storage.&lt;br /&gt;
&lt;br /&gt;
=== Using a Script on Linux OS Images ===&lt;br /&gt;
Most of recent (newer than 0.6.9) Linux OS images contain a script called '''rock64_write_spi_flash.sh''', which is found in ''/usr/local/sbin'' directory. To run the script you will first need to flash a Linux OS image to a micro SD card (to learn how to flash OS images to micro SD please following steps outlined in [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Section 3]). Before proceeding '''make sure that the eMMC module is disconnected''' from the board. Once you have booted into Linux on your PINE64 device all you have to do is run the aforementioned script using this command: &lt;br /&gt;
&lt;br /&gt;
''sudo ./rock64_write_spi_flash.sh''&lt;br /&gt;
&lt;br /&gt;
Once the script finishes its operation, power off your board and remove the micro SD card.&lt;br /&gt;
The board is now ready to boot from USB 2.0/3.0 storage.&lt;br /&gt;
&lt;br /&gt;
=== Erasing and Rewriting SPI === &lt;br /&gt;
There are two ways of removing u-boot from SPI. You can either download '''u-boot-flash-spi.img.xz''' from [https://github.com/ayufan-rock64/linux-u-boot/releases ayufan's github] or use a script found on Linux OS images titled:'''rock64_erase_spi_flash.sh'''. Follow the instructions in the previous sub-sections for the chosen method of removing u-boot from SPI; the instructions are are identical, as the process of erasing u-boot is the exact opposite of flashing it. &lt;br /&gt;
&lt;br /&gt;
'''N.B. You can also erase SPI manually'''. &lt;br /&gt;
To do so, you need to download mtd-utils. on Debian or Ubuntu follow these instructions:&lt;br /&gt;
&lt;br /&gt;
''sudo apt-get install mtd-utils''&lt;br /&gt;
&lt;br /&gt;
''sudo flash_eraseall /dev/mtd0''&lt;br /&gt;
&lt;br /&gt;
=== Booting an OS image from USB 2.0/3.0 Storage ===&lt;br /&gt;
To boot and OS image from USB 2.0/3.0 Storage such as a SSD/HDD or a thumbdrive you first need to have u-boot written to your SPI flash. Please follow the instructions in the previous sub-sections to learn how to write u-boot to SPI on your PINE64 device. &lt;br /&gt;
&lt;br /&gt;
Once you have u-boot on your SPI, the process off booting is very similar to booting from micro SD or eMMC.&lt;br /&gt;
*Download one of the supported OS images for your PINE64 device&lt;br /&gt;
*Flash the OS image to your USB 2.0/USB 3.0 storage device (to learn how to flash OS images please following steps outlined in [https://wiki.pine64.org/index.php/NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards Section 3] The instructions are identical for all types of storage, including USB 2.0/USB 3.0 HDDs and thumb-drives.) &lt;br /&gt;
*Insert the USB storage device with the flashed OS image into one of the USB ports on your PINE64 device&lt;br /&gt;
*Apply power&lt;br /&gt;
&lt;br /&gt;
If you have followed all the steps correctly, the board should boot from your USB 2.0/3.0 storage device.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Your Device ==&lt;br /&gt;
&lt;br /&gt;
There is a number of things that can prevent the PINE64 board from booting up properly. The most common culprits of a failed boot are (to find out more click [https://forum.pine64.org/showthread.php?tid=514 here]):&lt;br /&gt;
&lt;br /&gt;
* Subpar or counterfeit microSD card&lt;br /&gt;
* Subpar Power Supply&lt;br /&gt;
* High resistance (thin) or a very long microUSB cable&lt;br /&gt;
* Failed imaging of the microSD card or eMMC module&lt;br /&gt;
&lt;br /&gt;
Make sure to have the newest version of the OS image your are running. On Allwinner A64 devices running Linux you can update the kernel and uboot using scripts located in the following directory: /usr/local/sbin&lt;br /&gt;
&lt;br /&gt;
* To navigate to the directory type (in terminal): ''cd /usr/local/sbin''&lt;br /&gt;
* You list all the available scripts by typing (in terminal): ''ls''&lt;br /&gt;
* To run the script required update script run the following command: ''sudo ./update_script.sh'' (substitute the relevant update script for update_script)&lt;br /&gt;
&lt;br /&gt;
'''Troubleshooting Step by Step'''&lt;br /&gt;
&lt;br /&gt;
Follow these steps to determine the cause of your problem:&lt;br /&gt;
&lt;br /&gt;
* Check your PSU and microUSB cable ratings&lt;br /&gt;
* Download and image a base image of Linux&lt;br /&gt;
* Plug in power and Ethernet into your PINE64 device&lt;br /&gt;
* Watch Ethernet port LED activity&lt;br /&gt;
* Check your router for your device's IP&lt;br /&gt;
* Attempt to ssh into your device's from your computer&lt;br /&gt;
&lt;br /&gt;
If your PSU and microUSB meet the criteria, and you have correctly followed the instructions to image your card and power on the board, but you are not seeing any LED activity and cannot ssh into your device then either the imaging process failed (possibly due to a subpar microSD) OR the PSU / microUSB cable is/are faulty.&lt;br /&gt;
&lt;br /&gt;
If your PSU and microUSB meet the criteria, and you have correctly imaged the OS to your card and power on the board and your can ssh into your PINE A64(+) but get no video feed, then it's likely that the native resolution of your monitor/TV is not supported.&lt;br /&gt;
&lt;br /&gt;
If neither of the above mentioned scenarios fits the problem you are facing, please consult this thread (thanks to Ghost for compiling the list): https://forum.pine64.org/showthread.php?tid=680&lt;br /&gt;
&lt;br /&gt;
If you cannot find a solution to your problem you can submit a ticket at: https://support.pine64.org/&lt;/div&gt;</summary>
		<author><name>Evergreen97</name></author>
	</entry>
</feed>