Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0426605 authored by Manoj Nair's avatar Manoj Nair
Browse files

Resolve "Remove the old installation hard coded templates for script installed devices"

parent 367a8b37
Loading
Loading
Loading
Loading
+0 −70
Original line number Diff line number Diff line
## Installing /e/OS 
{% include alerts/tip.html content="For Windows users, we advise to use Git Bash. For more info about Downloads and Installation see [Official Documentation](https://git-scm.com/about)"%}

{% include alerts/danger.html content="The FP4 comes with an anti-rollback feature. Read the paragraph marked `Caution` in Requirements section of this guide, before proceeding." %}

1. Unzip the archive

    ```
    unzip <fileyoudownloaded>
    ```

   > Replace `<fileyoudownloaded>` with the name of the archive file you downloaded.

   > Alternately you can create a folder and unzip the archive there.


1. Confirm that extracted directory contains following content:

    - `bin-linux-x86 directory` - which contains linux tools including fastboot and adb
    - `bin-msys directory` - which contains Windows tools including fastboot and adb
    - `img files` - The `img` files that are to be flashed onto the device.
    - `flash_FP4_factory.sh` - The installer script.

1. Boot into bootloader/fastboot mode.

    - Power OFF the device.
    - While holding `Volume Down` button, plug in a USB Cable that's connected to a PC on the other end.

1. Run the installer script on Terminal(Linux) or on Git Bash UI(Windows).
   {% include alerts/tip.html content="Executing the `chmod` command may require root or `sudo` privileges."%}
    - Make sure you are in the current directory which contains the `flash_FP4_factory.sh` file.

    **Linux**
    - Right click -> Open terminal here
    - Execute the following command:

    ```
    chmod +x flash_FP4_factory.sh && ./flash_FP4_factory.sh
    ``` 

    **Windows**
    - Right click -> Git Bash here
    - Execute the following command:

    ```
    chmod +x flash_FP4_factory.sh && ./flash_FP4_factory.sh
    ```

    The script will flash all required files and will wait for input at the last step. Proceed to locking the bootloader.


## Locking the Bootloader

{% include alerts/warning.html content="The bootloader is lockable in official builds only. The procedure to lock the bootloader will not work on community builds."%}

{% include alerts/danger.html content="The FP4 comes with an anti-rollback feature. Read the paragraph marked `Caution` in Requirements section of this guide, before proceeding." %}

Once you have completed the above steps  and before rebooting you can lock your Bootloader. 

1. Lock critical partition with the following command
   - `fastboot flashing lock_critical`
   -  Approve with  <kbd>Volume +</kbd> then <kbd>power</kbd>
1. Reboot your device into bootloader, and plug it to your computer
1. Lock the device with the following command
   - `fastboot flashing lock`
   - Approve with  <kbd>Volume +</kbd> then <kbd>power</kbd>



+0 −66
Original line number Diff line number Diff line
## Installing /e/OS
{% include alerts/tip.html content="For Windows users, we advise to use Git Bash. For more info about Downloads and Installation see [Official Documentation](https://git-scm.com/about)"%}

{% include alerts/danger.html content="FP5 comes with an anti-rollback feature. Please read the paragraph marked `Caution` in Requirements section of this guide, before you proceed to install /e/OS on FP5." %}

1. Unzip the archive

    ```
    unzip <fileyoudownloaded>
    ```

   > In the command above, replace `<fileyoudownloaded>` with path of the downloaded archive.

   > Alternatively, you can unzip the archive using a File Manager/File Explorer.


1. Confirm that extracted directory contains following content:

    - `bin-linux-x86` directory - which contains linux tools including fastboot and adb
    - `bin-msys` directory - which contains Windows tools including fastboot and adb
    - `.img` files - The `.img` files that are to be flashed onto the device.
    - `flash_FP5_factory.sh` - The installer script.

1. Boot into bootloader/fastboot mode.

    - Power OFF the device.
    - Hold `Power` + `Volume Down` button combo simultaneously.

1. Run the installer script on Terminal(Linux) or on Git Bash UI(Windows).
   {% include alerts/tip.html content="Executing the `chmod` command may require root or `sudo` privileges."%}
    - Make sure you are in the current directory which contains the `flash_FP5_factory.sh` file.
    - **Linux** 
       - Right click -> Open terminal here
       - Execute the following command:
       
        ```
        chmod +x flash_FP5_factory.sh && ./flash_FP5_factory.sh
        ``` 

    - **Windows**
       - Right click -> Git Bash here
       - Execute the following command:
       
        ```
        chmod +x flash_FP5_factory.sh && ./flash_FP5_factory.sh
        ```

    The script will flash all required files and will wait for input at the last step. Proceed to locking the bootloader.


## Locking the Bootloader

{% include alerts/warning.html content="The bootloader is lockable in official builds only. The procedure to lock the bootloader will not work on community builds."%}

{% include alerts/danger.html content="FP5 comes with an anti-rollback feature. Please read the paragraph marked `Caution` in Requirements section of this guide, before you proceed to install /e/OS on FP5." %}

Once you have completed the above steps  and before rebooting you can lock your Bootloader. 

1. Lock critical partition with the following command
   - `fastboot flashing lock_critical`
   -  Approve with  <kbd>Volume +</kbd> then <kbd>power</kbd>
1. Reboot your device into bootloader, and plug it to your computer
1. Lock the device with the following command
   - `fastboot flashing lock`
   - Approve with  <kbd>Volume +</kbd> then <kbd>power</kbd>
+0 −66
Original line number Diff line number Diff line
## Installing /e/OS
{% include alerts/tip.html content="For Windows users, we advise to use Git Bash. For more info about Downloads and Installation see [Official Documentation](https://git-scm.com/about)"%}

{% include alerts/danger.html content="FP6 comes with an anti-rollback feature. Please read the paragraph marked `Caution` in Requirements section of this guide, before you proceed to install /e/OS on FP6." %}

1. Unzip the archive

    ```
    unzip <fileyoudownloaded>
    ```

   > In the command above, replace `<fileyoudownloaded>` with path of the downloaded archive.

   > Alternatively, you can unzip the archive using a File Manager/File Explorer.


1. Confirm that extracted directory contains following content:

    - `bin-linux-x86` directory - which contains linux tools including fastboot and adb
    - `bin-msys` directory - which contains Windows tools including fastboot and adb
    - `.img` files - The `.img` files that are to be flashed onto the device.
    - `flash_FP6_factory.sh` - The installer script.

1. Boot into bootloader/fastboot mode.

    - Power OFF the device.
    - Hold `Power` + `Volume Down` button combo simultaneously.

1. Run the installer script on Terminal(Linux) or on Git Bash UI(Windows).
   {% include alerts/tip.html content="Executing the `chmod` command may require root or `sudo` privileges."%}
    - Make sure you are in the current directory which contains the `flash_FP6_factory.sh` file.
    - **Linux** 
       - Right click -> Open terminal here
       - Execute the following command:
       
        ```
        chmod +x flash_FP6_factory.sh && ./flash_FP6_factory.sh
        ``` 

    - **Windows**
       - Right click -> Git Bash here
       - Execute the following command:
       
        ```
        chmod +x flash_FP6_factory.sh && ./flash_FP6_factory.sh
        ```

    The script will flash all required files and will wait for input at the last step. Proceed to locking the bootloader.


## Locking the Bootloader

{% include alerts/warning.html content="The bootloader is lockable in official builds only. The procedure to lock the bootloader will not work on community builds."%}

{% include alerts/danger.html content="FP6 comes with an anti-rollback feature. Please read the paragraph marked `Caution` in Requirements section of this guide, before you proceed to install /e/OS on FP6." %}

Once you have completed the above steps  and before rebooting you can lock your Bootloader. 

1. Lock critical partition with the following command
   - `fastboot flashing lock_critical`
   -  Approve with  <kbd>Volume +</kbd> then <kbd>power</kbd>
1. Reboot your device into bootloader, and plug it to your computer
1. Lock the device with the following command
   - `fastboot flashing lock`
   - Approve with  <kbd>Volume +</kbd> then <kbd>power</kbd>
+0 −37
Original line number Diff line number Diff line
## Install /e/OS

1. Download and extract the /e/OS ROM
     > You can unzip the files into the folder where you copied the fastboot files.
   
     > Alternately you can create a folder and unzip the ROM there. 
     
     >  In the second case the below commands will need the path to the folder where you unzipped the ROM files. 
1. Reboot in bootloader with `adb reboot bootloader`

1. Run the following commands to install /e/OS

    > these img files are available in the /e/OS zip you downloaded

    ```  
    fastboot flash system system.img
    fastboot flash vendor vendor.img
    fastboot flash boot boot.img
    fastboot flash dtbo dtbo.img
    fastboot flash recovery recovery.img
    fastboot flash logo logo.img
    fastboot flash md1dsp md1dsp.img
    fastboot flash md1img md1img.img
    fastboot flash spmfw spmfw.img
    fastboot flash lk lk.img
    fastboot flash lk2 lk.img
    fastboot flash sspm_1 sspm.img
    fastboot flash sspm_2 sspm.img
    fastboot flash tee1 trustzone1.bin
    fastboot flash tee2 trustzone2.bin
    fastboot flash preloader preloader.img

    fastboot -w
    fastboot reboot

    ```
+0 −66
Original line number Diff line number Diff line
## Installing /e/OS
{% include alerts/tip.html content="For Windows users, we advise to use Git Bash. For more info about Downloads and Installation see [Official Documentation](https://git-scm.com/about)"%}

{% include alerts/danger.html content="axolotl comes with an anti-rollback feature. Please read the paragraph marked `Caution` in Requirements section of this guide, before you proceed to install /e/OS on axolotl." %}

1. Unzip the archive

    ```
    unzip <fileyoudownloaded>
    ```

   > In the command above, replace `<fileyoudownloaded>` with path of the downloaded archive.

   > Alternatively, you can unzip the archive using a File Manager/File Explorer.


1. Confirm that extracted directory contains following content:

    - `bin-linux-x86` directory - which contains linux tools including fastboot and adb
    - `bin-msys` directory - which contains Windows tools including fastboot and adb
    - `.img` files - The `.img` files that are to be flashed onto the device.
    - `flash_axolotl_factory.sh` - The installer script.

1. Boot into bootloader/fastboot mode.

    - Power OFF the device.
    - Hold `Power` + `Volume Down` button combo simultaneously.

1. Run the installer script on Terminal(Linux) or on Git Bash UI(Windows).
   {% include alerts/tip.html content="Executing the `chmod` command may require root or `sudo` privileges."%}
    - Make sure you are in the current directory which contains the `flash_axolotl_factory.sh` file.
    - **Linux** 
        - Right click -> Open terminal here
    - **Windows**
        - Right click -> Git Bash here
    - Execute the following command:
        ```
        chmod +x flash_axolotl_factory.sh && ./flash_axolotl_factory.sh
        ```

    The script will flash all required files and will wait for input at the last step. Proceed to locking the bootloader.


## Locking the Bootloader


{% include alerts/warning.html content="The bootloader is lockable in official builds only. The procedure to lock the bootloader will not work on community builds."%}


{% include alerts/danger.html content="axolotl comes with an anti-rollback feature. Please read the paragraph marked `Caution` in Requirements section of this guide, before you proceed to install /e/OS on axolotl." %}

Once you have completed the above steps and before rebooting you can lock your Bootloader.

1. Download the [avb custom key](https://images.ecloud.global/devices/keys/avb_murena_rsa4096.bin)
2. Erase the previous key `fastboot erase avb_custom_key`
3. Flash the new key previously downloaded `fastboot flash avb_custom_key avb_murena_rsa4096.bin`
4. Lock critical partition with the following command
   - `fastboot flashing lock_critical`
   -  Approve with  <kbd>Volume +</kbd> then <kbd>power</kbd>
5. Reboot your device into bootloader, and plug it to your computer
    - Power OFF the device.
    - Hold `Power` + `Volume Down` button combo simultaneously.
6. Lock the device with the following command
   - `fastboot flashing lock`
   - Approve with  <kbd>Volume +</kbd> then <kbd>power</kbd>
Loading