Skip to content

Tags: ivan250666/mkbootimg

Tags

2021.08.06

Toggle 2021.08.06's commit message

Verified

This commit was signed with the committer’s verified signature.
osm0sis Chris Renshaw
unpackbootimg: leave note on extra newlines for *-header_version (osm…

…0sis#15)

2021.04.27

Toggle 2021.04.27's commit message

Verified

This commit was signed with the committer’s verified signature.
osm0sis Chris Renshaw
mkbootimg+unpackbootimg: clean up formatting/consistency/organization

2020.05.18

Toggle 2020.05.18's commit message

Verified

This commit was signed with the committer’s verified signature.
osm0sis Chris Renshaw
unpackbootimg: fix compile on NDK + Linux

unpackbootimg.c: In function 'detect_hash_type':
unpackbootimg.c:51:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (int i = SHA_DIGEST_SIZE + 4; i < SHA256_DIGEST_SIZE; ++i) {
     ^
unpackbootimg.c:51:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code

2019.09.20

Toggle 2019.09.20's commit message

Verified

This commit was signed with the committer’s verified signature.
osm0sis Chris Renshaw
mkbootimg: check dtb image size

- per aosp-mirror/platform_system_core@96fd887
- check all dt* image sizes
- clean up dt* error messages

2019.09.16

Toggle 2019.09.16's commit message

Verified

This commit was signed with the committer’s verified signature.
osm0sis Chris Renshaw
unpackbootimg: fix unpacking Huawei "Cairo" signing

- Huawei boot.img has header_version=0 but "Cairo SIGN" at offset 1632 would confuse header.dtb_size so protect against this
- add similar protection for header.recovery_dtbo_size

2019.04.13

Toggle 2019.04.13's commit message

Verified

This commit was signed with the committer’s verified signature.
osm0sis Chris Renshaw
mkbootimg: update for boot_img_hdr_v2

- switch to v2 and support new --dtb and --dtb_offset when --header_version 2 (or greater)
- pre-version switch --dt for old dt_size dt section remains for when --header_version 0 (default)
- add --recovery_acpio which is really just --recovery_dtbo in everything but the switch name

2018.10.27

Toggle 2018.10.27's commit message

Verified

This commit was signed with the committer’s verified signature.
osm0sis Chris Renshaw
mkbootimg: update for boot_img_hdr_v1

- switch to v1 and write fields based on logic to still support v0 and pre-version images
- support --dt only when --header_version 0 (default), support --recovery_dtbo when --header_version 1 (or greater)
- elide some redundant code
- fix up some inconsistent bracing and spacing from previous PRs

2018.09.08

Toggle 2018.09.08's commit message

Verified

This commit was signed with the committer’s verified signature.
osm0sis Chris Renshaw
unpackbootimg: work around new bootimg.h header_version conflict with…

… old dtbsize

stop-gap measure until boot_img_hdr_v1 can be properly integrated
Ref: https://github.com/aosp-mirror/platform_system_core/blob/master/mkbootimg/include/bootimg/bootimg.h

2018.06.15

Toggle 2018.06.15's commit message
unpackbootimg: fix SIGSEGV in case of input / output file not available

2018.05.10

Toggle 2018.05.10's commit message
Do not hardcode make for compatibility with *BSD.