Use terminal instead of computer where applicable.

merge-requests/3/head
erik 1 year ago
parent e6eb07712a
commit 09df095f2a

@ -1,8 +1,8 @@
# Install LineageOS on Fairphone
## 1. Check your prerequisites on your computer
## 1. Checklist before starting
[ ] adb and fastboot are installed on your computer?
[ ] adb and fastboot are installed on the computer?
[ ] you downloaded the bootimage (img) and LineageOS (zip)?
[ ] you have the unlock code (in case of Fairphone 3)?
[ ] you have an usb cable ready?
@ -25,9 +25,9 @@ Unlocking will allow us to overwrite the boot-loader.
## 3. Connect via usb
For overwriting the boot-loader of your Fairphone, it needs to be connected to your pc.
1. Connect your computer & Fairphone via usb
1. Connect your Fairphone to the computer via usb
1. On your Fairphone allow the usb connection
1. Type `adb devices` on your computer (for Windows users: open the terminal in the directory containing adb&fastboot.exe and use the `.\` prefix. The resulting command will be: `.\adb devices`).
1. Type `adb devices` on your terminal (for Windows users: open the terminal in the directory containing adb&fastboot.exe and use the `.\` prefix. The resulting command will be: `.\adb devices`).
The result should show something like
```
List of devices attached
@ -39,15 +39,15 @@ For overwriting the boot-loader of your Fairphone, it needs to be connected to y
The next step is critical. If something goes wrong here your Fairphone may remain broken. Time to do some checks:
1. Make sure your phone has at least 70% battery.
1. Reboot your Fairphone to bootloader mode: Type `adb reboot bootloader` on your computer.
1. Reboot your Fairphone to bootloader mode: Type `adb reboot bootloader` on the terminal.
1. Your Fairphone should show the bootloader screen.
1. Type `fastboot devices` on your computer. The result should show something like
1. Type `fastboot devices` on the terminal. The result should show something like
```
<SerialNumberOfYourPhone> fastboot
```
1. Check your downloaded recovery image
1. In Windows type `Get-FileHash <image_filename.img>` on your computer.
1. in Linux type `sha256sum <image_filename.img>` or alternatively `shasum -a 256 <image_filename.img>` on your computer.
1. In Windows type `Get-FileHash <image_filename.img>` on the terminal.
1. in Linux type `sha256sum <image_filename.img>` or alternatively `shasum -a 256 <image_filename.img>` on the terminal.
1. The result should look like
```
b6494278d0a399547a9344a6018a30b388f71a97ef52989bcdd661002f3a8631 lineage-18.1-20210906-recovery-FP3.img
@ -63,12 +63,12 @@ All checks passed? Then lets continues:
1. If your Fairphone reboots, you might have to do the steps 2.1-2.4 again to re-enable USB debugging. Then `adb reboot bootloader` will bring you back.
2. For Fairphone2
1. On your computer type `fastboot flashing unlock`.
2. Install fastboot image & reboot to recovery by typing on your computer `fastboot flash recovery <image_filename.img>` (<image_filename.img> is the img-file you have downloaded in 1.).
1. On the terminal type `fastboot flashing unlock`.
2. Install fastboot image & reboot to recovery by typing on the terminal `fastboot flash recovery <image_filename.img>` (<image_filename.img> is the img-file you have downloaded in 1.).
3. Reboot to Recovery without starting your original rom: With the device powered off, hold Power + Volume Up. Release when boot logo appears.
3. For Fairphone3
1. On your computer type `fastboot flashing unlock`.
2. Install fastboot image & reboot to recovery by typing on your computer `fastboot flash recovery <image_filename.img>` (<image_filename.img> is the img-file you have downloaded in 1.).
1. On the terminal type `fastboot flashing unlock`.
2. Install fastboot image & reboot to recovery by typing on the terminal `fastboot flash recovery <image_filename.img>` (<image_filename.img> is the img-file you have downloaded in 1.).
- If you see something like "boot partition is smaller than boot image" you might find the solution [here](https://gitlab.com/domaindrivenarchitecture/lineageos-Fairphone/-/blob/main/Guides/InstallationFAQ.md).
3. On the phone you should not see any difference and it should remain in the bootloader screen. Then hold Volume Up + Power. Release when boot logo appears.
4. Reboot to Recovery without starting your original rom:
@ -76,11 +76,11 @@ All checks passed? Then lets continues:
[<img src="img/start.jpg" width="300" height="400">](img/start.jpg)[<img src="img/recovery.jpg" width="300" height="400">](img/recovery.jpg)
2. Or use the button method, hold Volume Up + Power. Release when boot logo appears.
4. For Fairphone4
1. On your computer type `fastboot flashing unlock`.
1. On the terminal type `fastboot flashing unlock`.
2. Do the steps 2.1-2.4 again to re-enable USB debugging. Then `adb reboot bootloader`
3. On your computer type `fastboot flashing unlock_critical`
3. On the terminal type `fastboot flashing unlock_critical`
4. Do the steps 2.1-2.4 again to re-enable USB debugging. Then `adb reboot bootloader`
5. Install fastboot image & reboot to recovery by typing on your computer `fastboot flash recovery <image_filename.img>` (<image_filename.img> is the img-file you have downloaded in 1.).
5. Install fastboot image & reboot to recovery by typing on the terminal `fastboot flash recovery <image_filename.img>` (<image_filename.img> is the img-file you have downloaded in 1.).
Please take care not to boot in to your old Android / FairphoneOS. If you missed the proper reboot into recovery by buttons you've to step back to step 1. because your old os reinstall its own recovery over the one just installed.
@ -95,7 +95,7 @@ If you are already in the recovery mode you can go to step 6.3.
1. Return to main menu
1. Apply update - Apply from ADB
[<img src="img/apply.jpg" width="300" height="400">](img/apply.jpg)[<img src="img/sideload.jpg" width="300" height="400">](img/sideload.jpg)
1. Type `adb sideload <lineagos.zip>` on your computer (<lineagos.zip> is the zip-file you have downloaded in 1.).
1. Type `adb sideload <lineagos.zip>` on the terminal (<lineagos.zip> is the zip-file you have downloaded in 1.).
[<img src="img/done.jpg" width="300" height="400">](img/done.jpg)
1. Check whether you see the `Step 2/2` on the bottom of your Fairphone.
@ -117,14 +117,14 @@ Then do steps 2.1 - 2.4 again to re-enable USB-debugging and boot again into fas
OEM unlocking / locking will erase all data, so we should ensure to do the lock again now.
1. Type `fastboot devices` on your computer. The result should show something like
1. Type `fastboot devices` on the terminal. The result should show something like
```
<SerialNumberOfYourPhone> fastboot
```
2. For Fairphone2
1. On your computer type `fastboot flashing lock`.
1. On the terminal type `fastboot flashing lock`.
3. For Fairphone3
1. On your computer type `fastboot flashing lock`.
1. On the terminal type `fastboot flashing lock`.
4. For Fairphone4 - OEM lock ist not possible on FP4. You have to use your phone unlocked.
## 8. Start LineageOS

Loading…
Cancel
Save