-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbootimg: Add support for newer Sony ELF boot images
The boot image found in sony firmwares (stock) is different to the already implemented version. This change adds support for these images (found in the Z2) by introducing more flexibility in the ELF handling and the output format (ELF --> ANDROID!) In particular: - Use a more dynamic structure to describe elf files: Add handling information (e.g., the elf version) and separate structures for the ELF header, the program headers, and the section headers - Adjust the read/load operations to account for the new structure - Add handling code for the differentiation between the two known ELF versions - Adjust the writing code such that it can output the content of an ELF image as a standard ANDROID! image: The newer ELF versions are not booted if a single (unused) bit is modifed Possibly the (unlocked) bootloader performs a signature check only for ELF files - Add some debug code that allows to print either to stdout or the kernel log (useful for on-device debugging) - Extend the Sony Stock support in a dynamic way - Add dependencies for klog_write - Also fix all minor warnings The code has been tested with the boot image of an Xperia Z2, and on the devices from the original ELF implementation (SP) Change-Id: I0e9a41ae6ce26bf4608ef86cec1e2735f746abb6 Signed-off-by: Alexander Diewald <[email protected]> Signed-off-by: Adrian DC <[email protected]>
- Loading branch information
Showing
4 changed files
with
766 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.