|
1 | 1 | # OnePlus 6/6T |
2 | 2 |
|
3 | | -## Installation |
4 | | - |
5 | | -### Prerequisites |
6 | | - |
7 | | -Installation requires fastboot (`android-tools`) |
8 | | - |
9 | | -Before installing Pocketblue, it is recommended to install the latest version of |
10 | | -the stock OS to ensure all firmware is present on the vendor partitions. |
11 | | - |
12 | | -Make sure the bootloader is unlocked, |
13 | | -download the latest Pocketblue release from [releases](https://github.com/pocketblue/pocketblue/releases/latest) |
14 | | -and extract the archive, then proceed to installation. |
15 | | - |
16 | | -!!! warning |
17 | | - Your current OS and all your files will be deleted |
18 | | - |
19 | | -### Automatic installation |
20 | | - |
21 | | -Boot into fastboot, connect your phone to your computer via usb, and run the installation script |
22 | | - |
23 | | -On Linux: |
24 | | - |
25 | | -- `./flash-oneplus6-enchilada.sh` for OnePlus 6 |
26 | | -- `./flash-oneplus6t-fajita.sh` for OnePlus 6T |
27 | | - |
28 | | -On Windows: |
| 3 | +!!! note |
| 4 | + This page is supplementary to the [qualcomm-sdm845](qualcomm-sdm845.md) page, |
| 5 | + read it before proceeding. |
29 | 6 |
|
30 | | -- `./flash-oneplus6-enchilada.cmd` for OnePlus 6 |
31 | | -- `./flash-oneplus6t-fajita.cmd` for OnePlus 6T |
32 | | - |
33 | | -Your device will reboot and boot into Pocketblue automatically. |
34 | | - |
35 | | -**DO NOT** reboot via the power button: this can result in not all data being properly written to storage. |
36 | | - |
37 | | -### Manual installation |
38 | | - |
39 | | -#### List of provided images |
| 7 | +## Installation |
40 | 8 |
|
41 | | -The archive contains the following images: |
| 9 | +See [qualcomm-sdm845#installation](qualcomm-sdm845.md#installation) |
42 | 10 |
|
43 | | -- `uboot-enchilada.img`, `uboot-fajita.img` - U-Boot, a bootloader implementing the UEFI API ([source](https://github.com/fedora-remix-mobility/u-boot), GPLv2) |
44 | | -- `fedora_boot.raw` - Fedora /boot partition, contains kernels, initrd images, bootloader configs, etc |
45 | | -- `fedora_esp.raw` - EFI System Partition, contains EFI executables and device trees |
46 | | -- `fedora_rootfs.raw` - root partition |
| 11 | +### Recommended partition layout |
47 | 12 |
|
48 | | -#### Recommended partition layout |
| 13 | +Recommended partition layout for manual installation: |
49 | 14 |
|
50 | | -- `boot` - U-Boot (`images/uboot-<DEVICE>.img`) |
| 15 | +- `boot` - U-Boot (`images/u-boot-<DEVICE>.img`) |
51 | 16 | - `system_a` - /boot partition (`images/fedora_boot.raw`) |
52 | 17 | - `system_b` - ESP (`images/fedora_esp.raw`) |
53 | 18 | - `userdata` - root partition (`images/fedora_rootfs.raw`) |
54 | 19 |
|
55 | | -#### Flashing |
56 | | - |
57 | | -Boot into fastboot, connect your phone to your computer via usb, and install the system: |
58 | | - |
59 | | -Erase dtbo: |
60 | | -```shell |
61 | | -fastboot erase dtbo_a |
62 | | -fastboot erase dtbo_b |
63 | | -``` |
64 | | - |
65 | | -Flash U-Boot (replace `<DEVICE>` with your device codename): |
66 | | -```shell |
67 | | -fastboot flash boot images/uboot_<DEVICE>.img --slot=all |
68 | | -``` |
69 | | - |
70 | | -Flash Fedora partitions: |
71 | | -```shell |
72 | | -fastboot flash system_a images/fedora_boot.raw |
73 | | -fastboot flash system_b images/fedora_esp.raw |
74 | | -fastboot flash userdata images/fedora_rootfs.raw |
75 | | -``` |
76 | | - |
77 | | -Reboot, this may take a while. **DO NOT** reboot via the power button: this can result in not all data being properly written to storage. |
78 | | -```shell |
79 | | -fastboot reboot |
80 | | -``` |
81 | | - |
82 | | -## Default credentials |
83 | | - |
84 | | -- default username: `user` |
85 | | -- default password: `123456` |
86 | | - |
87 | | -## Images, updates and packages |
88 | | - |
89 | | -Learn how to upgrade the system and install packages in the following guide: [Installing packages](../tips-and-tricks/installing-packages.md) |
90 | | - |
91 | | -You can rebase to a different image, for example to switch your desktop environment. To do this, run: |
92 | | - |
93 | | -```shell |
94 | | -rpm-ostree reset |
95 | | -sudo bootc switch <IMAGE> |
96 | | -``` |
97 | | - |
98 | | -Available images: |
99 | | - |
100 | | -- Gnome mobile - `quay.io/pocketblue/oneplus-sdm845-gnome-mobile:43` |
101 | | -- Plasma mobile - `quay.io/pocketblue/oneplus-sdm845-plasma-mobile:43` |
102 | | -- Phosh - `quay.io/pocketblue/oneplus-sdm845-phosh:43` |
103 | | -- Gnome desktop - `quay.io/pocketblue/oneplus-sdm845-gnome-desktop:43` |
104 | | -- Plasma desktop - `quay.io/pocketblue/oneplus-sdm845-plasma-desktop:43` |
105 | | - |
106 | 20 | ## Fix incorrect battery percentage |
107 | 21 |
|
108 | 22 | Sometimes the battery percentage may be reported incorrectly, particularly if |
@@ -143,10 +57,3 @@ reboot |
143 | 57 | ## Unbricking using python3-edl |
144 | 58 |
|
145 | 59 | [github.com/pocketblue/oneplus6-unbrick](https://github.com/pocketblue/oneplus6-unbrick) |
146 | | - |
147 | | -## Enabled copr repositories |
148 | | - |
149 | | -- `pocketblue/common` - [copr](https://copr.fedorainfracloud.org/coprs/pocketblue/common) / [github](https://github.com/pocketblue/common-rpms) |
150 | | -- `pocketblue/sdm845` - [copr](https://copr.fedorainfracloud.org/coprs/pocketblue/sdm845) / [github](https://github.com/fedora-remix-mobility/packages) |
151 | | -- `@mobility/gnome-mobile` - [copr](https://copr.fedorainfracloud.org/coprs/g/mobility/gnome-mobile) |
152 | | -- [kernel source code](https://github.com/fedora-remix-mobility/sdm845-kernel) |
0 commit comments