Qualcomm mainline porting: Difference between revisions
Appearance
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]] | ||
* | * Having the mainline source code of a similar device can be very helpful: https://wiki.postmarketos.org/wiki/Mainlining#Supported_SoCs | ||
== Relevant chat log == | == Relevant chat log == |
Revision as of 16:07, 17 November 2020
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
- A working device-tree based downstream kernel
- You know the location of the UART port on your device, see (video tutorial | Identifying serial ports) and serial debugging
- Having the mainline source code of a similar device can be very helpful: https://wiki.postmarketos.org/wiki/Mainlining#Supported_SoCs
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
- (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))
- 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
- pmaports#153 crosshatch: mainlining attempt: progress and questions
- Qualcomm SOC Mainlining Project