Skip to content

Instantly share code, notes, and snippets.

@calebccff
Last active June 30, 2020 20:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebccff/80bba8237e2ba512dc07f907e55b4891 to your computer and use it in GitHub Desktop.
Save calebccff/80bba8237e2ba512dc07f907e55b4891 to your computer and use it in GitHub Desktop.
pmOS Mainline Building for oneplus sdm845

This gist it deprecated and may be outdated, latest instructions are on the wiki

pmbootstrap init pick oneplus -> enchilada/fajita. Pick any WM/DE you like, the following have been tested and are functional.

  • Gnome
  • Plasma Mobile - unstable, can sometimes crash out and reboot to crashdump mode
  • Plasma desktop
  • Phosh (fix scaling by setting scale=3 in /etc/phoc/phosh.ini)
  • Mate
  • Weston

NOTE: If you have issues booting, flash the latest OxygenOS 10 full OTA to the slot you're installing postmarketOS too (switch to the OTHER slot, boot twrp and flash the OTA, then switch back).

pmbootstrap install --split
pmbootstrap export

Reboot back into bootloader mode after each of the following commands.

 # Might wanna back this one up first! Will break android booting on this slot
fastboot erase dtbo
fastboot flash vendor /tmp/postmarketOS-export/oneplus-[enchilada|fajita]-boot.img
fastboot flash system /tmp/postmarketOS-export/oneplus-[enchilada|fajita]-root.img
fastboot flash boot /tmp/postmarketOS-export/boot.img-oneplus-sdm845

Reboot and you're good to go!

IMPORTANT

  • Please don't attempt this unless you are comfortable debugging and solving booting issues yourself, I'm happy to help but I won't be able to walk you through every step of the debugging process, please read ALL the related postmarketOS documentation before asking me: https://wiki.postmarketos.org/wiki/Installation_guide, https://wiki.postmarketos.org/wiki/Troubleshooting:boot
  • This is a very very early build and there are many issues, my main priority is adding more hardware support and improving stability, I unfortunately don't have time to do all of that and help you make your device boot.

For support feel free to hop in the Discord: https://discord.gg/haVG9Ga

@chee
Copy link

chee commented Jun 30, 2020

hey! this is great, thank-you. i'm dual-booting postmarketos and android now :3

i think this line

Phosh (fix scaling by setting scale=3 in /etc/phoc/phosh.ini)

is meant to point at the file here: /usr/share/phosh/phoc.ini ?

@calebccff
Copy link
Author

hey! this is great, thank-you. i'm dual-booting alpine and android now :3

i think this line

Phosh (fix scaling by setting scale=3 in /etc/phoc/phosh.ini)

is meant to point at the file here: /usr/share/phosh/phoc.ini ?

Hey @chee, yeah I need to fix it, I'm probably going to deprecate this gist and put the instructions on the wiki page where they should be :D
https://wiki.postmarketos.org/index.php?title=OnePlus_6_(oneplus-enchilada)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment