Personal tools

Log in

Changes

From Planet Computers

Jump to: navigation, search

Linux Flashing Guide

1,328 bytes added, 16:46, 12 February 2019
Rooted Android notes
<div style="margin: 0.4em 0px 0.5em; color: #252525;" source="" sans="" pro="" sans-serif="" font-size:="" 15="" 008px="" font-style:="" normal="" font-variant-ligatures:="" font-variant-caps:="" font-weight:="" 400="" letter-spacing:="" orphans:="" 2="" text-align:="" start="" text-indent:="" 0px="" text-transform:="" none="" white-space:="" widows:="" word-spacing:="" -webkit-text-stroke-width:="" background-color:="" ffffff="" text-decoration-style:="" initial="" text-decoration-color:="">There are 3 steps needed to install Android/Linux your Gemini:</div>
# Install the FlashTool software on your Windows PC or Linux PC
# Customise your Gemini partition table. Using a simple tool, you will be able to specify the space you want to reserve for Linux and for Android. You will also be able to choose the firmware to download, at the moment we support Android, Rooted Android, Debian , Sailfish 3.0 Beta Community Edition, Kali Linux and Sailfish OSTWRP.
# Flash the firmware on your device
==Download and Install FlashTool on Windows==
<div style="margin: 0.4em 0px 0.5em; color: #252525;" source="" sans="" pro="" sans-serif="" font-size:="" 15="" 008px="" font-style:="" normal="" font-variant-ligatures:="" font-variant-caps:="" font-weight:="" 400="" letter-spacing:="" orphans:="" 2="" text-align:="" start="" text-indent:="" 0px="" text-transform:="" none="" white-space:="" widows:="" word-spacing:="" -webkit-text-stroke-width:="" background-color:="" ffffff="" text-decoration-style:="" initial="" text-decoration-color:="">The first step to install FlashTool on a Windows PC is to install the flash tool drivers. The drivers are needed for your Windows PC to communicate with your Gemini, the minimum requirement is to have a 64bit Windows operating system.</div>
<div style="margin: 0.4em 0px 0.5em; color: #252525;" source="" sans="" pro="" sans-serif="" font-size:="" 15="" 008px="" font-style:="" normal="" font-variant-ligatures:="" font-variant-caps:="" font-weight:="" 400="" letter-spacing:="" orphans:="" 2="" text-align:="" start="" text-indent:="" 0px="" text-transform:="" none="" white-space:="" widows:="" word-spacing:="" -webkit-text-stroke-width:="" background-color:="" ffffff="" text-decoration-style:="" initial="" text-decoration-color:="">You can find the latest drivers here: [http://support.planetcom.co.uk/download/FlashToolDrivers.zip Windows Flash Tool Drivers]</div>   
<div style="margin: 0.4em 0px 0.5em; color: #252525;" source="" sans="" pro="" sans-serif="" font-size:="" 15="" 008px="" font-style:="" normal="" font-variant-ligatures:="" font-variant-caps:="" font-weight:="" 400="" letter-spacing:="" orphans:="" 2="" text-align:="" start="" text-indent:="" 0px="" text-transform:="" none="" white-space:="" widows:="" word-spacing:="" -webkit-text-stroke-width:="" background-color:="" ffffff="" text-decoration-style:="" initial="" text-decoration-color:="">Once downloaded, unzip the archive. You will find a folder called '''FlashToolDrivers''', open the folder and double click on the '''Install''' (install.bat) file. Allow the installation to complete by clicking '''Yes''' when asked to make changes.</div>
<div style="margin: 0.4em 0px 0.5em; color: #252525;" source="" sans="" pro="" sans-serif="" font-size:="" 15="" 008px="" font-style:="" normal="" font-variant-ligatures:="" font-variant-caps:="" font-weight:="" 400="" letter-spacing:="" orphans:="" 2="" text-align:="" start="" text-indent:="" 0px="" text-transform:="" none="" white-space:="" widows:="" word-spacing:="" -webkit-text-stroke-width:="" background-color:="" ffffff="" text-decoration-style:="" initial="" text-decoration-color:="">Now that the drivers have been installed, you can download the latest Windows flash tool: [http://support.planetcom.co.uk/download/FlashToolWindows.zip Windows Flash Tool]</div>   
<div style="margin: 0.4em 0px 0.5em; color: #252525;" source="" sans="" pro="" sans-serif="" font-size:="" 15="" 008px="" font-style:="" normal="" font-variant-ligatures:="" font-variant-caps:="" font-weight:="" 400="" letter-spacing:="" orphans:="" 2="" text-align:="" start="" text-indent:="" 0px="" text-transform:="" none="" white-space:="" widows:="" word-spacing:="" -webkit-text-stroke-width:="" background-color:="" ffffff="" text-decoration-style:="" initial="" text-decoration-color:="">Once downloaded the Windows FlashTool, please unzip it to reveal the '''FlashToolWindows''' folder. Next, run the flash tool by double clicking on '''flash_tool''' (flash_tool.exe) file in the '''FlashToolWindows''' folder.</div>
==Download and Install FlashTool on Linux==
* The''' Base firmware''' contains the basic Android firmware. This is the main component, it needs to be extracted to reveal the Gemini Base firmware folder. All the other component need to be copied/unzipped here.
* The '''Scatter file''' contains the definition of your Gemini partition, based on your selection. This needs to be copied into the firmware folder
* The optional '''Linux module''' (Debian, Sailfish 3.0 Beta for Gemini Community Edition, or Debian+SailfishKali Linux) contains the additional Linux firmware. This needs to be unzipped into inside the firmware folder
You should end up with the extracted Base firmware folder, containing also the scatter file and the unzipped optional Linux module.
Use the choose button as in the following screenshot to load the scatter file that you will find inside the downloaded firmware. In particular:
* DownladDownload-Agent should be set to the file MTK_AllInOne_DA.bin, which is located in the FlashToolWindows or FlashToolLinux folder.
* Scatter-loading file should be set to the specific scatter file of the firmware that you customised, which is located in the firmware folder
[[File:Screen_Shot_2018-06-21_at_11.35.58.png|center|800x600px|center|border]]
In particular, all the partitions should be checked. If you see any unchecked partitions in the list, make sure you unzipped the Linux module in the firmware folder and try again.
 
 
==Backup the NVRAM partition==
[[File:Screen_Shot_2018-06-21_at_10.52.02.png|center|799x526px|center|border]] 
<span style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Next, just click the </span><strong style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;">Read Back</strong><span style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"> button, connect your Gemini to your PC and restart the Gemini. Once booting, the flash tool will detect the unit and will write the NVRAM partition on a file on your hard disk called NVRAM0 (see screenshot below). It’s a good idea to keep this file as a backup, together with the customised Scatter file.<br /></span>
==Flashing the Gemini Linux firmware==<div style="margin: 0.4em 0px 0.5em; color: #252525;" source="" sans="" pro="" sans-serif="" font-size:="" 15="" 008px="" font-style:="" normal="" font-variant-ligatures:="" font-variant-caps:="" font-weight:="" 400="" letter-spacing:="" orphans:="" 2="" text-align:="" start="" text-indent:="" 0px="" text-transform:="" none="" white-space:="" widows:="" word-spacing:="" -webkit-text-stroke-width:="" background-color:="" ffffff="" text-decoration-style:="" initial="" text-decoration-color:="">Be sure to follow the previous step to store a copy of the NVRAM partition as backup.Now click back on the '''Download''' tab.</div><div style="margin: 0.4em 0px 0.5em; color: #252525;" source="" sans="" pro="" sans-serif="" font-size:="" 15="" 008px="" font-style:="" normal="" font-variant-ligatures:="" font-variant-caps:="" font-weight:="" 400="" letter-spacing:="" orphans:="" 2="" text-align:="" start="" text-indent:="" 0px="" text-transform:="" none="" white-space:="" widows:="" word-spacing:="" -webkit-text-stroke-width:="" background-color:="" ffffff="" text-decoration-style:="" initial="" text-decoration-color:="">Select the '''Firmware Upgrade''' option from the drop down menu. This will automatically select all the partitions in the table.</div><span style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">NextTo start the flashing process, just click the the big </span><strong style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;">Read BackDownload</strong><span style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"> button, connect your Gemini to your PC and restart the Gemini. Once booting, the flash tool will detect the unit and will write start flashing the device with the NVRAM partition on a file on your hard disk called NVRAM0 (see screenshot below). It’s a good idea to keep this file as a backupselected firmware.</span>
<span style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">The following screenshot shows a successfully completed flashing process:</span>
<span style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">[[File:Screen_Shot_2018-06-21_at_12.08.02.png|center|799x602px|border]]</span>
==Flashing the Gemini Linux firmware==
<div style='margin: 0.4em 0px 0.5em; color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;'>Be sure to follow the previous step to store a copy of the NVRAM partition as backup.Now click back on the '''Download''' tab.</div>
<div style='margin: 0.4em 0px 0.5em; color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;'>Select the '''Firmware Upgrade''' option from the drop down menu. This will automatically select all the partitions in the table.</div>
<span style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">To start the flashing process, just click the big </span><strong style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;">Download</strong><span style="color: #252525; font-family: 'Source Sans Pro', sans-serif; font-size: 15.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"> button, connect your Gemini to your PC and restart the Gemini. Once booting, the flash tool will detect the unit and will start flashing the device with the selected firmware.</span>
==<br /><br />Linux boot notes==
The multi boot mechanism works as follow.
Starting from a switched OFF Gemini, press the Esc (On) key to start the unit until the Gemini vibrates. Once you feel the vibration you can choose the boot mode by pressing the following key combination:
* ==Troubleshooting==* Boot 1: This We made efforts to make sure that the flash procedure is fail-safe, but sometimes background processes or other causes might interfere with the default booting option when no buttons are pressedprocess. If this happens, you might experience an error such as "Failed to get PMT info", "Invalid ROM or PMT address" or "STATUS_DOWNLOAD_EXCEPTION".* Recovery ModeIf you experience this issue, please follow the actions below: Esc (On) is pressed. This will always boot into overy mode.* Boot 2: Side button is pressed.* Boot 3: # Disconnect your Gemini from your PC# Press and hold the Esc(On) key is pressed and Side the silver side button is also presseduntil the unit restarts (until the unit vibrate)# Reboot your PC# Try the flash process again, it should now complete without issues  ==Rooted Android notes==If you choose to flash the rooted Android firmware, remember that you will have to complete the process by installing [https://magiskmanager.com/ Magisk Manager] using the following steps.
# Allow the installation of unknown applications<br />[[File:Screenshot_20190212-124142.png|center|800x400px|border]]<br /><br />
# Navigate to https://magiskmanager.com<br />[[File:Screenshot_20190212-123531.png|center|800x400px|border]]<br /><br />
# Scroll down to 'Download Magisk Manager'. Click on the download button and install the application.<br />[[File:Screenshot_20190212-123546.png|center|800x400px|border]]<br /><br />
# Open the application. If you arre running the app in a non-rooted Android you will see the error 'Magisk is not installed'.<br />[[File:Screenshot_20190212-123732.png|center|800x400px|border]]<br /><br />
# When asked about Additional Setup, Tap on Yes and let the process complete.<br />[[File:Screenshot_20190212-123822.png|center|800x400px|border]]<br /><br />
# Congratulations, you are running rooted Android on your Gemini!<br />[[File:Screenshot_20190212-123849.png|center|800x400px|border]]
==<br />Linux boot notes==
The multi-boot mechanism works as follows.
After Starting from a switched OFF Gemini, press the screen turns ON Esc (On) key to start the unit until the Gemini vibrates. Once you feel the vibration you can release choose the keys.boot mode by pressing the following key combination:
* Boot 1: This is the default booting option when no keys or buttons are pressed.
* Recovery Mode: Esc (On) is pressed. This will always boot into recovery mode.
* Boot 2: silver right-end side button is pressed.
* Boot 3: Both Esc(On) key and silver right-end side button are pressed at the same time
* '''Dual boot Android-Linux firmware'''** Press Esc (On) for around one second to turn ON Keep the unit and boot into Android. You should release the Esc (On) button before the screen turns ON, otherwise the unit will boot into recovery mode (see below).** Press Esc (On) for around one second to turn ON the unit and at the same time press and hold the side button until the screen turns ON to boot into Linux. You should release the Esc (On) button before the screen turns ON, but you must keep the side button keys/buttons pressed until you see the turning ON. When the screen turns ON you can release the side button, and the unit will boot into Linux.** Press Esc (On) and keep pressing the button until the screen turns ON to boot in recovery mode. At this stage the recovery mode is disabled and you will see a droid image with a red triangle and a "No command" text.