Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #418 from userariii/master
Browse files Browse the repository at this point in the history
Nokia SDM660: Update installation guide
  • Loading branch information
RisenID authored Mar 8, 2024
2 parents d653ad2 + 175cf2e commit 108dcbf
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 114 deletions.
84 changes: 36 additions & 48 deletions _includes/templates/device_specific/before_install_custom_DRG.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,39 @@
{%- assign device = site.data.devices[page.device] -%}

## Unlocking the bootloader
## Ensuring all firmware partitions are consistent [2/5 - Optional] :

{% include alerts/note.html content="The steps below only need to be run once per device." %}
{% include alerts/warning.html content="Unlocking the bootloader will erase all data on your device!
Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent." %}

1. Install Nokia USB Drivers (required):
To ensure that your device is properly detected during the bootloader unlock process, make sure to install the required.
If you already have the required drivers installed you can skip this step. To install the drivers, download [this](https://github.com/StollD/nokia-driver-installer/blob/master/out/Phone_Nokia_USB_Driver_v1.4.0.exe) installer package from GitHub and install it to your computer.

2. Download and extract the Nokia Bootloader Unlock tool from [here](https://tchms.to/NokiaUBLTool). Using this tool you can easily unlock the bootloader of your device without touching the command line. Use a zip management tool of your choice to extract the tool to a folder on your computer.

{% include alerts/note.html content="The tool currently only supports Windows 7 or later with Microsoft .Net Framework version 4.7.2 or higher. Linux or Mac are not supported. Windows 10 with latest updates is recommended" %}

3. Reboot the phone into download mode:
Now you need to boot your device to download mode. Follow these steps for bootloader mode:

1. Turn off your phone.
2. Connect the USB cable to the device only and not the computer.
3. Press and hold Volume Down + Power key together till you reach the screen reads that reads “Download mode”.
Alternatively, you can also use the command ```adb reboot bootloader``` from the stock ROM to bring the phone to download mode.

4. Generate OTP for the Unlock Tool:
To avoid misuse and limit usage, the tool uses OTP (One-time password). Before you unlock you need to get an OTP. You can generate one from [here](https://www.techmesto.com/nokia-ubl-otp/)

{% include alerts/note.html content="The OTP is valid for only 15 minutes from generation. In addition only 15 devices are allowed for unlocking each day. After this further generation of OTPs will be disabled for the day. If the OTP generation fails, please be patient and wait for the next day to try again" %}

5. Run the Unlock Tool and unlock your phone
Now you can use the previously generated OTP to unlock the bootloader of your device.

1. Run the "Bootloader Unlock by tm.exe" file in the folder where you extracted the tool
2. Paste the OTP (from step 3) into the Enter OTP box in the Unlock Tool.
3. Connect your smartphone in download mode.
4. Click on the "BEGIN UNLOCK" button.
5. Wait for the process to complete and follow the instructions shown in the output window.
6. Your device should prompt you for unlock. Use the volume keys to accept the unlock

{% include alerts/note.html content="The tool will try to automatically unlock the device in fastboot mode. However, sometimes that can fail. Please put the device to fastboot mode manually if that happens." %}

{% if device.before_recovery_install %}
{% capture path %}templates/device_specific/before_recovery_install_{{ device.before_recovery_install }}.md{% endcapture %}
{% include {{ path }} %}
{% endif %}

{% if device.is_ab_device and device.has_recovery_partition != true %}
{% include templates/recovery_install_fastboot_ab.md %}
{% else %}
{% include templates/recovery_install_fastboot_generic.md %}
{% endif %}
1. Download the latest firmware from [Here](https://sourceforge.net/projects/fihsw-sdm660/files/DRG/FIHSW_DRG-415C-0-00WW-B01_600WW_10_20200501.full.lzma2.1c8a3a5f8729024558cd3f6d771ab8c0a3036438efc62bcab1c74ac0a6446e1e.7z/download)
2. Download the `HCTSW Care OSTRemote Client tool` & follow the usage/flashing guide from [Here](https://xdaforums.com/t/tools-hctsw-care-ostremote-client-batch-script-replacement-of-ost-la.4282019/).
3. Once the firmware installation is done, now power off the device & follow up the below steps.

## Re-Partition your Nokia 6.1+ device [3/5] :

{% include alerts/warning.html content="Re-Partition only required once, befor installing the Custom ROM" %}
1. Download the new-partition scheme file from [Here](https://github.com/Nokia-SDM660-Devices/B2N_GPT-Partition/raw/master/3.5s/FIH_SDM660_AVB1_gpt_both0_3.5s_1v.bin)
2. Reboot your device into `fastboot mode/Download mode` & flash the file by `fastboot flash partition <PATH_TO_FIH_SDM660_AVB1_gpt_both0_3.5s_1v.bin>`
3. Once the re-partition performed, you can follow up the below steps.

## Retrofit Dynamic Partititions instruction [4/5] :

{% include alerts/warning.html content="Retrofit Dynamic partition must be initialized when installing for the first time, so the process to do so is described below." %}

1. Reboot your device into `Download mode/fastboot mode`
2. Install the `Nokia Driver` from [Here](https://github.com/StollD/nokia-driver-installer/raw/master/out/Phone_Nokia_USB_Driver_v1.4.0.exe)
3. Download `PLatform tool by Google` from [Here](https://developer.android.com/tools/releases/platform-tools)
4. Download the `super_empty.img` from [Here](https://github.com/Nokia-SDM660-Devices/device_nokia_PL2/releases/download/PL2-RDP/super_empty.img)
5. Now flash `super_empty.img` file with the given command
```fastboot wipe-super <PATH TO Super-empty.img>```
6. Now follow up with the below steps.

## ROM installation [5/5] :

1. Reboot your device into `fastboot mode/Download mode`
2. Type `fastboot device`, if the device S/N detected then everything is all good. [If not detected install the [Nokia Driver](https://github.com/StollD/nokia-driver-installer/raw/master/out/Phone_Nokia_USB_Driver_v1.4.0.exe) & [Platform tool](https://developer.android.com/tools/releases/platform-tools)]
3. Now flash the boot.img (PixelExperice recovery) in both the slots by the following commands:
```
fastboot flash boot_a <PATH_TO_boot.img>
fastboot flash boot_b <PATH_TO_boot.img>
```
4. Now reboot into `recovery mode` by holding the Volume Up & Power button.
5. Apply Update >> adb sideload method & sideload the PixelExperience .zip file by `adb sideload <PATH_TO_PixelExperience-*.zip>`
6. Once the installation done, perform the `Factory reset` then >> `Reboot to system`
77 changes: 29 additions & 48 deletions _includes/templates/device_specific/before_install_custom_PL2.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,32 @@
{%- assign device = site.data.devices[page.device] -%}

## Unlocking the bootloader
## Ensuring all firmware partitions are consistent [2/4 - Optional] :

{% include alerts/note.html content="The steps below only need to be run once per device." %}
{% include alerts/warning.html content="Unlocking the bootloader will erase all data on your device!
Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent." %}

1. Install Nokia USB Drivers (required):
To ensure that your device is properly detected during the bootloader unlock process, make sure to install the required.
If you already have the required drivers installed you can skip this step. To install the drivers, download [this](https://github.com/StollD/nokia-driver-installer/blob/master/out/Phone_Nokia_USB_Driver_v1.4.0.exe) installer package from GitHub and install it to your computer.

2. Download and extract the Nokia Bootloader Unlock tool from [here](https://tchms.to/NokiaUBLTool). Using this tool you can easily unlock the bootloader of your device without touching the command line. Use a zip management tool of your choice to extract the tool to a folder on your computer.

{% include alerts/note.html content="The tool currently only supports Windows 7 or later with Microsoft .Net Framework version 4.7.2 or higher. Linux or Mac are not supported. Windows 10 with latest updates is recommended" %}

3. Reboot the phone into download mode:
Now you need to boot your device to download mode. Follow these steps for bootloader mode:

1. Turn off your phone.
2. Connect the USB cable to the device only and not the computer.
3. Press and hold Volume Down + Power key together till you reach the screen reads that reads “Download mode”.
Alternatively, you can also use the command ```adb reboot bootloader``` from the stock ROM to bring the phone to download mode.

4. Generate OTP for the Unlock Tool:
To avoid misuse and limit usage, the tool uses OTP (One-time password). Before you unlock you need to get an OTP. You can generate one from [here](https://www.techmesto.com/nokia-ubl-otp/)

{% include alerts/note.html content="The OTP is valid for only 15 minutes from generation. In addition only 15 devices are allowed for unlocking each day. After this further generation of OTPs will be disabled for the day. If the OTP generation fails, please be patient and wait for the next day to try again" %}

5. Run the Unlock Tool and unlock your phone
Now you can use the previously generated OTP to unlock the bootloader of your device.

1. Run the "Bootloader Unlock by tm.exe" file in the folder where you extracted the tool
2. Paste the OTP (from step 3) into the Enter OTP box in the Unlock Tool.
3. Connect your smartphone in download mode.
4. Click on the "BEGIN UNLOCK" button.
5. Wait for the process to complete and follow the instructions shown in the output window.
6. Your device should prompt you for unlock. Use the volume keys to accept the unlock

{% include alerts/note.html content="The tool will try to automatically unlock the device in fastboot mode. However, sometimes that can fail. Please put the device to fastboot mode manually if that happens." %}

{% if device.before_recovery_install %}
{% capture path %}templates/device_specific/before_recovery_install_{{ device.before_recovery_install }}.md{% endcapture %}
{% include {{ path }} %}
{% endif %}

{% if device.is_ab_device and device.has_recovery_partition != true %}
{% include templates/recovery_install_fastboot_ab.md %}
{% else %}
{% include templates/recovery_install_fastboot_generic.md %}
{% endif %}
1. Download the latest firmware from [Here](https://sourceforge.net/projects/fihsw-sdm660/files/PL2/FIHSW_PL2-415C-0-00WW-B01_600WW_10_20200501.full.lzma2.8196b83ea498b17a172bbb95f46b94cb3bab32404f2493a818e390f858a55eaf.7z/download)
2. Download the `HCTSW Care OSTRemote Client tool` & follow the usage/flashing guide from [Here](https://xdaforums.com/t/tools-hctsw-care-ostremote-client-batch-script-replacement-of-ost-la.4282019/).
3. Once the firmware installation is done, now power off the device & follow up the below steps.

## Retrofit Dynamic Partititions instruction [3/4] :

{% include alerts/warning.html content="Retrofit Dynamic partition must be initialized when installing for the first time, so the process to do so is described below." %}

1. Reboot your device into `Download mode/fastboot mode`
2. Install the `Nokia Driver` from [Here](https://github.com/StollD/nokia-driver-installer/raw/master/out/Phone_Nokia_USB_Driver_v1.4.0.exe)
3. Download `PLatform tool by Google` from [Here](https://developer.android.com/tools/releases/platform-tools)
4. Download the `super_empty.img` from [Here](https://github.com/Nokia-SDM660-Devices/device_nokia_PL2/releases/download/PL2-RDP/super_empty.img)
5. Now flash `super_empty.img` file with the given command
```fastboot wipe-super <PATH TO Super-empty.img>```
6. Now follow up with the below steps.

## ROM installation [4/4] :

1. Reboot your device into `fastboot mode/Download mode`
2. Type `fastboot device`, if the device S/N detected then everything is all good. [If not detected install the [Nokia Driver](https://github.com/StollD/nokia-driver-installer/raw/master/out/Phone_Nokia_USB_Driver_v1.4.0.exe) & [Platform tool](https://developer.android.com/tools/releases/platform-tools)]
3. Now flash the boot.img (PixelExperice recovery) in both the slots by the following commands:
```
fastboot flash boot_a <PATH_TO_boot.img>
fastboot flash boot_b <PATH_TO_boot.img>
```
4. Now reboot into `recovery mode` by holding the Volume Up & Power button.
5. Apply Update >> adb sideload method & sideload the PixelExperience .zip file by `adb sideload <PATH_TO_PixelExperience-*.zip>`
6. Once the installation done, perform the `Factory reset` then >> `Reboot to system`
11 changes: 2 additions & 9 deletions _includes/templates/recovery_install_fastboot_DRG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{%- assign device = site.data.devices[page.device] -%}

## Unlocking the bootloader
## Unlocking the Bootloader [1/5] :

{% include alerts/note.html content="The steps below only need to be run once per device." %}
{% include alerts/warning.html content="Unlocking the bootloader will erase all data on your device!
Expand Down Expand Up @@ -37,9 +35,4 @@ Now you can use the previously generated OTP to unlock the bootloader of your de
5. Wait for the process to complete and follow the instructions shown in the output window.
6. Your device should prompt you for unlock. Use the volume keys to accept the unlock

{% include alerts/note.html content="The tool will try to automatically unlock the device in fastboot mode. However, sometimes that can fail. Please put the device to fastboot mode manually if that happens." %}

{% if device.before_recovery_install %}
{% capture path %}templates/device_specific/before_recovery_install_{{ device.before_recovery_install }}.md{% endcapture %}
{% include {{ path }} %}
{% endif %}
6. Once the device bootloader unlocked follow up with the next steps.
11 changes: 2 additions & 9 deletions _includes/templates/recovery_install_fastboot_PL2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{%- assign device = site.data.devices[page.device] -%}

## Unlocking the bootloader
## Unlocking the Bootloader [1/4] :

{% include alerts/note.html content="The steps below only need to be run once per device." %}
{% include alerts/warning.html content="Unlocking the bootloader will erase all data on your device!
Expand Down Expand Up @@ -36,10 +34,5 @@ Now you can use the previously generated OTP to unlock the bootloader of your de
4. Click on the "BEGIN UNLOCK" button.
5. Wait for the process to complete and follow the instructions shown in the output window.
6. Your device should prompt you for unlock. Use the volume keys to accept the unlock

{% include alerts/note.html content="The tool will try to automatically unlock the device in fastboot mode. However, sometimes that can fail. Please put the device to fastboot mode manually if that happens." %}

{% if device.before_recovery_install %}
{% capture path %}templates/device_specific/before_recovery_install_{{ device.before_recovery_install }}.md{% endcapture %}
{% include {{ path }} %}
{% endif %}
6. Once the device bootloader unlocked follow up with the next steps.

0 comments on commit 108dcbf

Please sign in to comment.