Skip to content

Commit 358ad14

Browse files
authored
Merge pull request #20 from pocketblue/qualcomm-sdm845
qualcomm-sdm845 page
2 parents 88b1aab + 293c14f commit 358ad14

4 files changed

Lines changed: 180 additions & 102 deletions

File tree

docs/devices/oneplus-sdm845.md

Lines changed: 8 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,22 @@
11
# OnePlus 6/6T
22

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.
296

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
408

41-
The archive contains the following images:
9+
See [qualcomm-sdm845#installation](qualcomm-sdm845.md#installation)
4210

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
4712

48-
#### Recommended partition layout
13+
Recommended partition layout for manual installation:
4914

50-
- `boot` - U-Boot (`images/uboot-<DEVICE>.img`)
15+
- `boot` - U-Boot (`images/u-boot-<DEVICE>.img`)
5116
- `system_a` - /boot partition (`images/fedora_boot.raw`)
5217
- `system_b` - ESP (`images/fedora_esp.raw`)
5318
- `userdata` - root partition (`images/fedora_rootfs.raw`)
5419

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-
10620
## Fix incorrect battery percentage
10721

10822
Sometimes the battery percentage may be reported incorrectly, particularly if
@@ -143,10 +57,3 @@ reboot
14357
## Unbricking using python3-edl
14458

14559
[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)

docs/devices/qualcomm-sdm845.md

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# Qualcomm SDM845
2+
3+
The generic SDM845 image supports the following devices:
4+
5+
- OnePlus 6/6T (oneplus-enchilada / oneplus-fajita) - [wiki](oneplus-sdm845.md)
6+
- Xiaomi Poco F1 (xiaomi-beryllium) - [wiki](xiaomi-beryllium.md)
7+
8+
See the wiki pages for each device for device-specific information.
9+
10+
## Installation
11+
12+
### Prerequisites
13+
14+
Installation requires fastboot (`android-tools`)
15+
16+
Since firmware is extracted from the vendor partitions, it is recommended to
17+
install the latest version of the stock OS before installing Pocketblue to
18+
ensure all firmware is present.
19+
20+
Make sure the bootloader is unlocked,
21+
download the latest Pocketblue release from [releases](https://github.com/pocketblue/pocketblue/releases/latest)
22+
and extract the archive, then proceed to installation.
23+
24+
!!! warning
25+
Your current OS and all your files will be deleted
26+
27+
### Automatic installation
28+
29+
Boot into fastboot, connect your phone to your computer via usb, and run the installation script:
30+
31+
```shell
32+
./flash.sh
33+
```
34+
35+
You will be prompted to select the device model and the installation will begin.
36+
After installation, your device will reboot and boot into Pocketblue automatically.
37+
38+
**DO NOT** reboot via the power button: this can result in not all data being properly written to storage.
39+
40+
### Manual installation
41+
42+
#### List of provided images
43+
44+
The archive contains the following images:
45+
46+
- `u-boot-*.img` - U-Boot, a bootloader implementing the UEFI API
47+
- `fedora_boot.raw` - Fedora /boot partition, contains kernels, initrd images, bootloader configs, etc
48+
- `fedora_esp.raw` - EFI System Partition, contains EFI executables and device trees
49+
- `fedora_rootfs.raw` - root partition
50+
51+
#### Recommended partition layout
52+
53+
You can find the recommended partition layout on the wiki page of your device:
54+
55+
- [OnePlus 6/6T](oneplus-sdm845.md#recommended-partition-layout)
56+
- [Xiaomi Poco F1](xiaomi-beryllium.md#recommended-partition-layout)
57+
58+
#### Flashing
59+
60+
Boot into fastboot, connect your phone to your computer via usb, and install the system:
61+
62+
Erase dtbo:
63+
```shell
64+
# if the device has slots (e.g. OnePlus 6/6T):
65+
fastboot erase dtbo_a
66+
fastboot erase dtbo_b
67+
68+
# if the device doesn't have slots (e.g. Poco F1):
69+
fastboot erase dtbo
70+
```
71+
72+
Flash U-Boot (replace `<DEVICE>` with your device codename):
73+
```shell
74+
# if the device has slots:
75+
fastboot flash boot images/u-boot-<DEVICE>.img --slot=all
76+
77+
# if the device doesn't have slots:
78+
fastboot flash boot images/u-boot-<DEVICE>.img
79+
```
80+
81+
Flash Fedora partitions:
82+
```shell
83+
fastboot flash </boot partition> images/fedora_boot.raw
84+
fastboot flash <ESP partition> images/fedora_esp.raw
85+
fastboot flash <root partition> images/fedora_rootfs.raw
86+
```
87+
88+
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:
89+
```shell
90+
fastboot reboot
91+
```
92+
93+
## After installation
94+
95+
The device will automatically reboot after the first boot - this is `droid-juicer` extracting firmware from the vendor partitions.
96+
97+
Default credentials:
98+
99+
- username: `user`
100+
- password: `123456`
101+
102+
After connecting to the internet, **upgrade the system and reboot** to make sure you're running the latest image:
103+
104+
```shell
105+
sudo rpm-ostree upgrade
106+
reboot
107+
```
108+
109+
Default applications will be installed after connecting to the internet.
110+
111+
## Images, updates and packages
112+
113+
Learn how to upgrade the system and install packages in the following guide: [Installing packages](../tips-and-tricks/installing-packages.md)
114+
115+
You can rebase to a different image, for example to switch your desktop environment. To do this, run:
116+
117+
```shell
118+
sudo rpm-ostree rebase ostree-unverified-registry:<IMAGE>
119+
```
120+
121+
Available images:
122+
123+
- Phosh - `quay.io/pocketblue/qualcomm-sdm845-phosh:43`
124+
- Gnome mobile - `quay.io/pocketblue/qualcomm-sdm845-gnome-mobile:43`
125+
- Plasma mobile - `quay.io/pocketblue/qualcomm-sdm845-plasma-mobile:43`
126+
- Gnome desktop - `quay.io/pocketblue/qualcomm-sdm845-gnome-desktop:43`
127+
- Plasma desktop - `quay.io/pocketblue/qualcomm-sdm845-plasma-desktop:43`
128+
129+
## Enabled copr repositories
130+
131+
- `pocketblue/common` - [copr](https://copr.fedorainfracloud.org/coprs/pocketblue/common) / [github](https://github.com/pocketblue/common-rpms)
132+
- `pocketblue/sdm845` - [copr](https://copr.fedorainfracloud.org/coprs/pocketblue/sdm845) / [github](https://github.com/fedora-remix-mobility/packages)
133+
- `@mobility/gnome-mobile` - [copr](https://copr.fedorainfracloud.org/coprs/g/mobility/gnome-mobile)
134+
- `samcday/droid-juicer` - [copr](https://copr.fedorainfracloud.org/coprs/samcday/droid-juicer)
135+
- [kernel source code](https://github.com/pocketblue/linux)

docs/devices/xiaomi-beryllium.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Xiaomi Poco F1
2+
3+
!!! note
4+
This page is supplementary to the [qualcomm-sdm845](qualcomm-sdm845.md) page,
5+
read it before proceeding.
6+
7+
## Installation
8+
9+
See [qualcomm-sdm845#installation](qualcomm-sdm845.md#installation)
10+
11+
### Panel variants
12+
13+
!!! note
14+
Currently, Pocketblue doesn't support touchscreen on the Tianma panel variant of this device
15+
16+
Poco F1 comes in two variants with different display panels - EBBG and Tianma.
17+
You can determine the panel variant by using a terminal with root access (e.g. using TWRP or a rooted Android ROM):
18+
19+
```bash
20+
su
21+
cat /proc/cmdline
22+
```
23+
24+
The panel variant is signified by the `msm_drm.dsi_display0` argument
25+
(`dsi_ebbg_fhd_ft8719_video_display` or `dsi_tianma_fhd_nt36672a_video_display`)
26+
27+
### Recommended partition layout
28+
29+
Recommended partition layout for manual installation:
30+
31+
- `boot` - U-Boot (`images/u-boot-<DEVICE>.img`)
32+
- `system` - /boot partition (`images/fedora_boot.raw`)
33+
- `cust` - ESP (`images/fedora_esp.raw`)
34+
- `userdata` - root partition (`images/fedora_rootfs.raw`)

docs/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ This is a work-in-progress. During the installation process all data on your dev
1313

1414
- [Xiaomi Pad 5](devices/xiaomi-nabu.md)
1515
- [Xiaomi Pad 6](devices/xiaomi-pipa.md)
16-
- [OnePlus 6/6T](devices/oneplus-sdm845.md)
16+
- [Qualcomm SDM845](devices/qualcomm-sdm845.md)
17+
- [OnePlus 6/6T](devices/oneplus-sdm845.md)
18+
- [Xiaomi Poco F1](devices/xiaomi-beryllium.md)
1719
- [Orange Pi 3 LTS](devices/xunlong-orangepi3-lts.md)
1820

1921
### Useful information

0 commit comments

Comments
 (0)