Saturday, June 11, 2016

[KEXEC] [ARM64] Kexec-Hardboot Patch

Note:

Kernel Developers: I would like to ask you to merge this patch to your kernels, because it is essential part of MultiROM (MR) - it allows MR to boot any kernel without changing the boot partition. I realize that it is no small request, but the patch is not big, touches relatively stable parts of kernel and should not cause any problems outside its intended function.

The Patch:

You'll need to cherry pick a total of 5 commits (if anyone feels like squashing them to help me out, feel free to link me to it).

Cherry-pick against: http://ift.tt/21fxp7D on the branch 'mm'.

Commit hashes in order:
a0e241134d8ad6323a6856f57315d1792bb9356e
9d7034f90bf36108bf31e4de7d40acfd324a3989
a1497b70fab6a95067334fb49e6be3eac8ff1e56
00e1fce93d918276b930773c6786a02b81ca30d5
788d209662cde3d527ff8791a49e29158472b4b7
22b97e2f0527f282f3cb0a98bcf804ebcdf669a7

Related defconfig options, and their explanations:
Code:

CONFIG_KEXEC=y # Enables the Kexec SysCall to allow loading the new 'secondary' kernel into memory
CONFIG_KEXEC_HARDBOOT=y  # Enables the HardBoot flag, which allows 'cold-booting' a new kernel
# CONFIG_ATAGS_PROC is not set # Prevents potential atags related discrepancies, this must be either removed or  commented out
CONFIG_PROC_DEVICETREE=y # Allows us to read out the kernel config, and tell that the kernel has all the necessary configs enabled (read out from /proc/config.gz)

User-space Kexec binary: here (you'll need to extract the zip, and it will be in 'multirom/kexec')

A guide to use the binary is coming.

Authors:
- This patch was made by Mike Kasick for Samsung Epic 4G.
- Tassadar built on this patch, and partially rewrote it to support the Nexus 4, 5, and 6.
- Zhuowei Zhang rewrote the patch from scratch for arm64.
- Myself for maintaining MultiROM for the 6P, and managing the patch.

XDA:DevDB Information
[KEXEC] [ARM64] Kexec-Hardboot Patch, Kernel for the Huawei Nexus 6P

Contributors
npjohnson, 500 Internal Server Error
Kernel Special Features:

Version Information
Status: Stable
Current Stable Version: Version 1
Stable Release Date: 2016-06-11

Created 2016-06-12
Last Updated 2016-06-12


from xda-developers http://ift.tt/21fwNi9
via IFTTT

No comments:

Post a Comment