OnePlus Two (oneplus-oneplus2): Difference between revisions
No edit summary |
|||
Line 35: | Line 35: | ||
}} | }} | ||
== | == Development status == | ||
As of 23/05/2021 this device is not recommended to be used for mission critical tasks as it's not possible to connect to the Wi-Fi nor broadband and it's lacking implementation of Direct Rendering Manager (DRM) in linux kernel makes it impossible to use graphical interfaces such as phosh and plasma-mobile. | |||
'''What works:''' | |||
* Kernel compilation | * Kernel compilation | ||
* Flashing system | * Flashing system | ||
Line 56: | Line 51: | ||
* Touchscreen | * Touchscreen | ||
'''What does NOT work:''' | |||
* Wi-Fi (blob needed) | * Wi-Fi (blob needed) | ||
* Hardware-accelerated graphics | * Hardware-accelerated graphics | ||
== BIOS built-in signals == | == BIOS built-in signals == | ||
Line 143: | Line 136: | ||
Put the device in a "fastboot mode" and invoke: <pre>pmbootstrap flasher flash_kernel</pre> | Put the device in a "fastboot mode" and invoke: <pre>pmbootstrap flasher flash_kernel</pre> | ||
== | == Affiliates == | ||
Maintainer(s): | |||
- None | |||
Contributor(s): | |||
* [https://github.com/KREYREN KREYREN] | |||
* NotKit | |||
* [https://github.com/lduboeuf lduboeuf] | |||
== References == | |||
1. {{Device package|oneplus-oneplus2}} | |||
2. {{Kernel package|oneplus-oneplus2}} | |||
3. {{3rd party kernel used in AOSP Extended|https://github.com/mukul2259/stealth_oneplus2}} | |||
4. {{Wiki page of the device|https://en.wikipedia.org/wiki/OnePlus_2?wprov=srpw1_1}} |
Revision as of 21:32, 23 May 2021
![]() OnePlus Two running Weston | |
Manufacturer | OnePlus |
---|---|
Name | Two |
Codename | oneplus-oneplus2 |
Released | 2015 |
Hardware | |
Chipset | Qualcomm MSM8994 Snapdragon 810 |
CPU | Octa-core 64-bit Quad-core 1.77 GHz Cortex-A57 |
GPU | Adreno 430 650 MHz |
Display | 1080x1920 Full HD IPS LCD In-Cell |
Storage | 16 or 64 GB eMMC v5.0 |
Memory | 3 or 4 GB LPDDR4 RAM |
Architecture | aarch64 |
Software | |
Original software | Android 5.1.1 |
postmarketOS | |
Category | testing |
Pre-built images | no |
Mainline | no |
Flashing |
Works |
---|---|
USB Networking |
Works |
Internal storage |
No data |
SD card |
No data |
Battery |
Works |
Screen |
Works |
Touchscreen |
Works |
Multimedia | |
3D Acceleration |
Broken |
Audio |
No data |
Camera |
Broken |
Camera Flash |
No data |
Connectivity | |
WiFi |
Broken |
Bluetooth |
Broken |
GPS |
Broken |
NFC |
No data |
Modem | |
Calls |
Broken |
SMS |
Broken |
Mobile data |
Broken |
Miscellaneous | |
FDE |
No data |
USB OTG |
No data |
HDMI/DP |
No data |
Sensors | |
Accelerometer |
Broken |
Magnetometer |
No data |
Ambient Light |
No data |
Proximity |
No data |
Hall Effect |
No data |
Haptics |
No data |
Barometer |
No data |
Development status
As of 23/05/2021 this device is not recommended to be used for mission critical tasks as it's not possible to connect to the Wi-Fi nor broadband and it's lacking implementation of Direct Rendering Manager (DRM) in linux kernel makes it impossible to use graphical interfaces such as phosh and plasma-mobile.
What works:
- Kernel compilation
- Flashing system
- Booting kernel via fastboot
- initramfs boot
- Flashing kernel
- USB network
- SSH connectivity
- Weston
- sxmo
- Touchscreen
What does NOT work:
- Wi-Fi (blob needed)
- Hardware-accelerated graphics
BIOS built-in signals
Majority of all android devices have three signals accessible by pressing physical buttons depending on the runtime state of a device.
Hard shutdown
Pressing and holding POWER button for +- 20 seconds will force device shutdown allowing you to access recovery and fastboot mode.
Recovery
is used to recover a device which Operating System is unable to boot. To access this mode press and hold when the device is turned off
VOLUME_DOWN + POWER
Fastboot
is mainly used during the device production for manufacturer to load the required software onto the device. This mode can also be used to flash 3rd party recovery.
To access it press and hold while device is turned off
VOLUME_UP + POWER
Deployment of pmos the device
This section covers recommended steps to deploy PostmarketOS on Oneplus2, these steps are made for a reference and should be used with a causion.
Preparation
pmbootstrap
To install PostmarketOS you need a pmbootstrap
, see https://wiki.postmarketos.org/wiki/Installing_pmbootstrap for more informations
Once you've installed it, follow-up with pmbootstrap init
and go through the Terminal interface selecting Vendor `oneplus` and `oneplus2`. If the vendor is not available you might need to use and edge
channel.
USB-C cable
Lot of USB-C cables are crappy which causes the insulation to get brutal and chip off causing short in-between pins
TODO(Krey): Photo
resulting in a bad connecting and failure to enumerate (identify the USB device for the system) in dmesg seen as:
[535470.046440] usb 2-1: new full-speed USB device number 76 using xhci_hcd [535470.186582] usb 2-1: device descriptor read/64, error -71 [535470.434567] usb 2-1: device descriptor read/64, error -71
Verify using dmesg -w
to ensure that your cable has data pin linked and that it's working without issues for example:
[536030.265487] usb 2-1: new high-speed USB device number 87 using xhci_hcd [536030.421932] usb 2-1: New USB device found, idVendor=18d1, idProduct=4ee2, bcdDevice= 3.10 [536030.421944] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [536030.421948] usb 2-1: Product: Android [536030.421952] usb 2-1: Manufacturer: OnePlus [536030.421956] usb 2-1: SerialNumber: REDACTED [536031.780781] usb 2-1: USB disconnect, device number 87
Installation
flashable zip method
Flashable zip files can be installed using: A. Recovery mode B. ADB sideloading
To get a flashable zip invoke:
pmbootstrap install --android-recovery-zip
To export it in a default path /tmp/postmarketOS-export/pmos-oneplus-oneplus2.zip
use:
pmbootstrap export
fastboot method
Put the device in a "fastboot mode" and invoke:
pmbootstrap flasher flash_kernel
Affiliates
Maintainer(s): - None
Contributor(s):
References
1. Device package 2. Kernel package 3. Template:3rd party kernel used in AOSP Extended 4. Template:Wiki page of the device