Jump to content

OnePlus 8T (oneplus-kebab): Difference between revisions

From postmarketOS Wiki
add flasher flash_dtbo
Maxnet (talk | contribs)
m clean up
Line 1: Line 1:
{{Infobox device
{{Infobox device
| manufacturer = OnePlus <!-- e.g. HTC -->
| manufacturer = OnePlus
| name = 8T <!-- e.g. Desire -->
| name = 8T
| codename = oneplus-kebab <!-- e.g. htc-bravo -->
| codename = oneplus-kebab
| image = File:oneplus-kebab.jpg
| image = File:oneplus-kebab.jpg
| imagecaption = OnePlus 8T running postmarketOS with weston
| imagecaption = OnePlus 8T running postmarketOS with weston
| releaseyear = 2020
| releaseyear = 2020
| originalsoftware = Android 11 <!-- e.g. Android 2.1 -->
| originalsoftware = Android 11
| chipset = Qualcomm SM8250 (Snapdragon 865 5G) <!-- e.g. Qualcomm QSD8250 Snapdragon S1 -->
| chipset = Qualcomm SM8250 (Snapdragon 865 5G)
| cpu = Octa-core Kryo 585 (1x2.84 GHz & 3x2.42 GHz & 4x1.8 GHz) <!-- e.g. 1.0 GHz Scorpion -->
| cpu = Octa-core Kryo 585 (1x2.84 GHz & 3x2.42 GHz & 4x1.8 GHz)
| gpu = Adreno 650 <!-- e.g. Adreno 200 -->
| gpu = Adreno 650
| storage = 128/256GB <!-- e.g. 512 MB -->
| storage = 128/256GB
| display = 1080x2400@120 AMOLED <!-- e.g. 480x800 AMOLED -->
| display = 1080x2400@120 AMOLED
| memory = 8/12GB <!-- e.g. 576 MB -->
| memory = 8/12GB
| architecture = aarch64 <!-- One of these: armhf, armv7, aarch64, x86, x86_64 -->
| architecture = aarch64
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
| status_usbnet = Y
| status_usbnet = Y
| status_flashing = Y
| status_flashing = Y
| status_touch = Y
| status_touch = Y
| status_screen = Y
| status_screen = Y
| status_wifi = <!-- Wireless network works? -->
| status_wifi =
| status_xwayland = <!-- Showing X11 applications in a Wayland compositor (Weston, KWin, ...) works? -->
| status_xwayland =
| status_fde = <!-- When installing with full disk encryption, can you type in the password with the on screen keyboard? -->
| status_fde =
| status_mainline = <!-- Instead of a Linux kernel fork, it is possible to run mainline. -->
| status_mainline =
| status_battery = <!-- Charging the battery with charging-sdl is possible -->
| status_battery =
| status_3d = <!-- Hardware accelerated 3D graphics (e.g. with freedreno) -->
| status_3d =
| status_accel = <!-- The sensor that measures proper acceleration works -->
| status_accel =
| status_audio = <!-- Using the device's speakers/headphone jack works -->
| status_audio =
| status_bluetooth = <!-- It's possible to pair and use other devices via the bluetooth protocol -->
| status_bluetooth =
| status_camera = <!-- Taking photos and videos works. -->
| status_camera =
| status_gps = <!-- The Global Positioning System sensor works.  -->
| status_gps =
| status_mobiledata = <!-- Connecting to the Internet via cellular network. -->
| status_mobiledata =
| status_sms = <!-- Sending and receiving short messages works as intended. -->
| status_sms =
| status_calls = <!-- Talking to other people over the cellular network. -->
| status_calls =
| status = <!-- Text displayed in the "not booting" table on the Devices page , e.g "kernel compiles, doesn't boot" -->
| status =
| status_otg = <!-- USB-OTG adapters work, e.g. to connect an USB flash drive to the device -->
| status_otg =
| status_nfc = <!-- Near-Field Communication (NFC) works -->
| status_nfc =
| booting = yes
| booting = yes
 
| pmoskernel = 4.19.110
<!-- you can also use these lines if you need to:
| whet_dhry =
if the device haven't originally ran Android OS, e.g. Nokia N900
| n-android =  ✔
Version of the kernel that pmos is running
| pmoskernel = 3.x.x
see Unixbench page on wiki
| whet_dhry = 0.0
-->
}}
}}


Line 53: Line 45:
== Users owning this device ==
== Users owning this device ==
{{Device owners}}
{{Device owners}}
<!-- autogenerated, use {{Owns device|devicepage|notes}} on your profile page -->
<!-- use _ instead of spaces in device page name, e.g. {{Owns device|HTC_Desire_(htc-bravo)|custom notes}}-->
<!-- you may need to purge page cache to see changes (more->purge cache)-->
<!-- you can use {{My devices}} on your profile page to show table with all your devices -->


== How to enter flash mode ==
== How to enter flash mode ==
Line 66: Line 54:


== Installation ==
== Installation ==
<!-- add more sections below as necessary, e.g. WiFi, photos, ... -->
This device uses dynamic partitions which allows it to merge multiple partitions (including system) into one super partition. PostmarketOS' initramfs can't mount these logical partitions ''yet''. We'll need to flash the rootfs directly onto the super partition.
This device uses dynamic partitions which allows it to merge multiple partitions (including system) into one super partition. PostmarketOS' initramfs can't mount these logical partitions ''yet''. We'll need to flash the rootfs directly onto the super partition.


Line 105: Line 92:
== See also ==
== See also ==
* {{MR|2420|pmaports}} Initial merge request
* {{MR|2420|pmaports}} Initial merge request
<!--
Link to related GitLab issues or merge requests like the following (replace CHANGEME with the ID, e.g. 1234):
* {{MR|CHANGEME|pmaports}} Initial merge request
* {{issue|CHANGEME|pmaports}} Some related issue
You can also add normal web links:
* [https://redmine.replicant.us/projects/replicant/wiki/GalaxyS2I9100 Replicant wiki page]
-->
* {{Device package|oneplus-kebab}}
* {{Device package|oneplus-kebab}}
* {{Kernel package|oneplus-kebab}}
* {{Kernel package|oneplus-kebab}}

Revision as of 09:40, 6 December 2021

OnePlus 8T
OnePlus 8T running postmarketOS with weston
OnePlus 8T running postmarketOS with weston
Manufacturer OnePlus
Name 8T
Codename oneplus-kebab
Released 2020
Hardware
Chipset Qualcomm SM8250 (Snapdragon 865 5G)
CPU Octa-core Kryo 585 (1x2.84 GHz & 3x2.42 GHz & 4x1.8 GHz)
GPU Adreno 650
Display 1080x2400@120 AMOLED
Storage 128/256GB
Memory 8/12GB
Architecture aarch64
Software
Original software Android 11
postmarketOS
Category testing
Pre-built images no
postmarketOS kernel 4.19.110
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
No data
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
No data
Audio
No data
Camera
No data
Camera Flash
No data
Connectivity
WiFi
No data
Bluetooth
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB OTG
No data
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data


Contributors

Users owning this device


How to enter flash mode

When powered off:

  • Hold power button
    • If the device has USB plugged in: wait for the device to vibrate, otherwise it might boot to Qualcomm MSM Mode
  • Hold volume up and down

Installation

This device uses dynamic partitions which allows it to merge multiple partitions (including system) into one super partition. PostmarketOS' initramfs can't mount these logical partitions yet. We'll need to flash the rootfs directly onto the super partition.

You can try to dump your original super.img (if you want to restore your original Android installation later) by using

adb pull /dev/block/by-name/super super.img

Follow the postmarketOS porting/installation guide and use

pmbootstrap flasher flash_rootfs

to flash rootfs.

Before booting, you'll have to flash a image to your dtbo partition:

pmbootstrap flasher flash_dtbo

Note: the dtbo.img is only present after a rootfs or initramfs image generation.

Getting back to Android

Since flashing the rootfs overwrites the super partition you'll have to do some extra steps to return to a state where you can normally flash an Android ROM.

Use your backed-up super.img

Before flashing your super.img you'll have to convert it into an sparsed image that fastboot can read:

img2simg super.img super-s.img
fastboot flash super super-s.img

Ideally you should be able to boot back into Android after restoring boot and dtbo or after switching to an untouched slot. If Android doesn't boot up or you encounter long loading times, bad performance, missing firmware and spontaneous crashes you should try the following options.

Wipe your super partition using super_empty.img

super_empty.img is a small metadata file you can create with Google's own tools (more research needed) and automatically with the Android Build System. If you have an LineageOS build enviroment set-up you can generate it with

make dist

Wipe the super partition using

fastboot wipe-super super_empty.img

After that you'll be able to flash a LineageOS OTA package. If the partition sizes defined in LineageOS' super_empty.img don't fit your ROM's partitions or if you're still encountering glitches you can follow this guide.

Use MsmDownloadTool

(more testing required) These tools aren't officially distributed by either Qualcomm nor OnePlus and only work under Windows.

Follow this guide.

See also