Jump to content

OnePlus 6 (oneplus-enchilada)/Hacking

From postmarketOS Wiki
Revision as of 13:08, 3 October 2021 by Alexey Vazhnov (talk | contribs) (Added internal link to OnePlus 6)

Hacking on the OnePlus 6

The OnePlus 6 is a pretty good device for lowlevel hacking, if you're already comfortable with lowlevel Qualcomm here's a quick rundown:

  • bkerler's fantastic EDL tool contains the firehose binary for the device, you can use this to flash individual partitions or completely switch up the partition table, as long as you stay within the constraints of the bootloader.
  • The ABL has been modified a fair bit by OnePlus, here's a full bootloader log:

OnePlus 6 bootloader logs

  • The bootloader supports selecting the "best match" from multiple DTBs (all appended to the kernel), this is also true for the PocoPhone F1 and makes it possible to use a single boot image across both devices. The OnePlus 6T seems to select the enchilada DTB before it's own though.
Note See if appending the fajita DTB before the enchilada one will cause it to be selected first.
  • ABL logs will also be printed via UART, however XBL / SBL logs are only printed if you hook up the Rx line (pulling it high to 1.8v should be enough for this).
Note I haven't worked out which commit matches the ABL which is actually on device.