Tasssadar / multirom

MultiROM for Nexus 7 and LG Optimus One
http://forum.xda-developers.com/showthread.php?t=2011403
GNU General Public License v3.0
413 stars 273 forks source link

Question about the kexec hardboot patch #103

Open z3ntu opened 7 years ago

z3ntu commented 7 years ago

As I hope, that more people that have knowledge about it, will see it, here it goes: I am trying to port the kexec hardboot patch for the Fairphone 2. So far I have got multirom working but now I am stuck with the kexec hardboot part.

The phone has a Snapdragon 801 and so I have oriented myself at a patch for the OnePlus X [onyx] found here: https://github.com/DavyA/android_kernel_oneplus_onyx/commit/bea2527f792a6414baf81e125191a74100288590 .

What one question is now is, that the onyx patch uses membank 2 (index 1) (see here) for KEXEC_HB_PAGE_ADDR but the "reference patch" uses membank 1 (index 0) (see here). What membank should I use now? The wiki also says

where the first bank of System RAM ends

which should suggest that the first (index 0) bank should be used.

Is there also somewhere an explanation, what KEXEC_HB_PAGE_ADDR and KEXEC_HB_KERNEL_LOC is?

Thanks!

z3ntu commented 7 years ago

The HTC One devices with a MSM8974 chipset also use membank 2 (index 1) - so I will try the second membank.

The OnePlus One is also using membank index 1.