Difference between revisions of "NEOS"

From comma wiki
Jump to: navigation, search
(Connect over ssh)
 
Line 9: Line 9:
 
Having issues updating NEOS to v4? The following instructions may help you along. At this time, a locked bootloader causes a reboot loop. Unlocking solves the issue.
 
Having issues updating NEOS to v4? The following instructions may help you along. At this time, a locked bootloader causes a reboot loop. Unlocking solves the issue.
 
*[[NEOS_OTA_Update_Procedure]]
 
*[[NEOS_OTA_Update_Procedure]]
 +
 +
== Flashing NEOS ==
 +
If, for some reason, you need to reflash NEOS onto your EON/Comma Two follow the steps in the [https://github.com/commaai/eon-neos official Github repo]
 +
 +
However, if you are on Windows the process is a bit more involved.  Windows does not have the necessary tool to convert the system image used by the flash.sh script that Macs or Linux environments have.
 +
 +
To flash NEOS on windows, follow these steps.
 +
 +
=== Step 1: Install Android platform tools ===
 +
Download [https://developer.android.com/studio/releases/platform-tools android platform tools] for Windows and unzip it into a folder on your local computer. 
 +
Once completed you should have a folder called "platform-tools" on your local drive like in this [//i.imgur.com/tAO81xd.jpg example screenshot].
 +
 +
=== Step 2: Download the current NEOS files ===
 +
You will need to download the zip file manually on windows. To get the URL location of the current NEOS image load the [https://github.com/commaai/eon-neos/blob/master/update.json update.json] file from the repository and copy the URL for "ota_url". See [//i.imgur.com/RlRHspr.jpg example].
 +
 +
Download the file from that URL and extract the contents of that zip file into your local drive.  For easier access it is recommended to extract the file into the folder where you installed the platform-tools in Step 1.  If done correctly you should have a platform-tools\files\ folder on your computer which contains the boot.img and system.img files.
 +
 +
=== Step 3: Boot the device into fastboot ===
 +
Depending on whether your device is a OnePlus 3T or a LeEco LePro 3 you will need to power up the device while holding the Volume Up + Power or Volume Down + Power buttons in order to boot into the fastboot mode.
 +
 +
Once the device is in the fastboot screen you can verify that your computer can communicate with the device by plugging the device into the computer using an appropriate USB-mini or USB-C to USB-A cable and running the following command in a command window (make sure you are in the folder where you extracted the platform-tools folder before running this command):
 +
 +
fastboot devices
 +
 +
If everything is working you should see at least one device listed.
 +
 +
If the above command does not work you may not be in the correct folder.  You will need to change directory to the location where you extracted the platform-tools folder.  For example, if you extracted the platform tools in C:\platform-tools you would need to run this command:
 +
 +
cd C:\platform-tools
 +
 +
=== Step 4: Run the flash commands ===
 +
In the same command window run these commands in the order they are listed:
 +
 +
fastboot oem unlock
 +
 +
If the device is already unlocked move onto the next command below.  If not, confirm on the device that you want to unlock the bootloader by using the volume keys to select and power button to confirm the selection.  The device will reboot back into fastboot once you confirm the selection.  Once the device is back in the fastboot screen continue with the commands below.
 +
 +
fastboot flash boot files\boot.img
 +
fastboot flash system files\system.img
 +
fastboot erase userdata
 +
fastboot format cache
 +
fastboot reboot
 +
 +
If each command executed successfully your device should reboot and load into a fresh state as if it were a new device.

Latest revision as of 01:34, 14 February 2020

Connect over ssh

NEOS uses private/public keys for authentication. The first step is to download the keys. They can be found here

SSH on NEOS runs at port 8022. So after you downloaded the key you can connect with the following ssh command:

ssh -i /path/to/id_rsa -p 8022 root@<ip of eon or neo>

OTA Update Procedure

Having issues updating NEOS to v4? The following instructions may help you along. At this time, a locked bootloader causes a reboot loop. Unlocking solves the issue.

Flashing NEOS

If, for some reason, you need to reflash NEOS onto your EON/Comma Two follow the steps in the official Github repo

However, if you are on Windows the process is a bit more involved. Windows does not have the necessary tool to convert the system image used by the flash.sh script that Macs or Linux environments have.

To flash NEOS on windows, follow these steps.

Step 1: Install Android platform tools

Download android platform tools for Windows and unzip it into a folder on your local computer. Once completed you should have a folder called "platform-tools" on your local drive like in this example screenshot.

Step 2: Download the current NEOS files

You will need to download the zip file manually on windows. To get the URL location of the current NEOS image load the update.json file from the repository and copy the URL for "ota_url". See example.

Download the file from that URL and extract the contents of that zip file into your local drive. For easier access it is recommended to extract the file into the folder where you installed the platform-tools in Step 1. If done correctly you should have a platform-tools\files\ folder on your computer which contains the boot.img and system.img files.

Step 3: Boot the device into fastboot

Depending on whether your device is a OnePlus 3T or a LeEco LePro 3 you will need to power up the device while holding the Volume Up + Power or Volume Down + Power buttons in order to boot into the fastboot mode.

Once the device is in the fastboot screen you can verify that your computer can communicate with the device by plugging the device into the computer using an appropriate USB-mini or USB-C to USB-A cable and running the following command in a command window (make sure you are in the folder where you extracted the platform-tools folder before running this command):

fastboot devices

If everything is working you should see at least one device listed.

If the above command does not work you may not be in the correct folder. You will need to change directory to the location where you extracted the platform-tools folder. For example, if you extracted the platform tools in C:\platform-tools you would need to run this command:

cd C:\platform-tools

Step 4: Run the flash commands

In the same command window run these commands in the order they are listed:

fastboot oem unlock

If the device is already unlocked move onto the next command below. If not, confirm on the device that you want to unlock the bootloader by using the volume keys to select and power button to confirm the selection. The device will reboot back into fastboot once you confirm the selection. Once the device is back in the fastboot screen continue with the commands below.

fastboot flash boot files\boot.img
fastboot flash system files\system.img
fastboot erase userdata
fastboot format cache
fastboot reboot

If each command executed successfully your device should reboot and load into a fresh state as if it were a new device.