Jump to content

Qualcomm mainline porting: Difference between revisions

From postmarketOS Wiki
Eloy (talk | contribs)
add wikilink
Remove inline SoC support table and link to Mainlining article
Line 3: Line 3:
* A working device-tree based downstream kernel
* A working device-tree based downstream kernel
* You know the location of the UART port on your device, see ([https://www.youtube.com/watch?v=_aedd8SUBgY video tutorial] | [http://www.devttys0.com/2012/11/reverse-engineering-serial-ports/ Identifying serial ports]) and [[Serial debugging|serial debugging]]
* You know the location of the UART port on your device, see ([https://www.youtube.com/watch?v=_aedd8SUBgY video tutorial] | [http://www.devttys0.com/2012/11/reverse-engineering-serial-ports/ Identifying serial ports]) and [[Serial debugging|serial debugging]]
* A device that has one of the following Snapdragon processors
* Having the mainline source code of a similar device can be very helpful: https://wiki.postmarketos.org/wiki/Mainlining#Supported_SoCs
** '''S3''' (MSM8260 / MSM8660 / APQ8060)
** '''S4 Pro''' (MSM8960T / MSM8960DT / APQ8064)
** '''410''' (MSM8916 / APQ8016)
** '''800''' (MSM8974)
** '''801''' (MSM8974AA / MSM8974AB / MSM8974AC / APQ8074AB)
** '''805''' (APQ8084)
** '''808''' (MSM8992)
** '''810''' (MSM8994)
** '''820''' (MSM8996)
** '''835''' (MSM8998)
** '''845''' (SDM845)


== Relevant chat log ==
== Relevant chat log ==

Revision as of 16:07, 17 November 2020

Note Work in progress and untested. Please improve this page (or merge it together with the non-Qualcomm-specific mainlining wiki page) when you try any of this.

Prerequisites

Relevant chat log

Thanks to opendata and bshah for the following log. Let's make this more wiki friendly once we try it out.

  • Copy fairphone2 DTs and change device info
    • (alas, if you are using Nexus 4, apq8064 based device would be good start i.e Nexus 7 2013 (yes, it's most complete device now))
      • Not sure about 8064, I would do the same thing but base off yuga
  • Look for a file named msm8974-regulator.dtsi in devices android kernel tree
  • Look for pm8841_s1: regulator-s1 then look at the voltages and make sure your DTS is the same, if not change it.
  • Do the same operation for the other regulators:
    • pm8841_s2: regulator-s2
    • pm8841_s3: regulator-s3
    • pm8841_s4: regulator-s4
    • pm8941_s1: regulator-s1
    • pm8941_s2: regulator-s2
    • pm8941_s3: regulator-s3
    • ...
    • pm8941_l1: regulator-l1
    • ...
    • pm8941_l24: regulator-l24
  • Then look in your devices android DTSi and look for any regulator configs if you find any change the corresponding regulator in the dts
  • This should be enough to boot with USB telnet

See also