summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add recovery_available: true to init dependenciesTom Cherry2018-07-241-0/+1
| | | | | | | Init needs this in order to be built in Android.bp Test: build Change-Id: I695438d69cc71b739b7648c4008ff3760da58ef0
* mkbootimg: add hridya@ to OWNERS.Elliott Hughes2018-06-141-0/+1
| | | | | | Bug: N/A Test: N/A Change-Id: Ib6a7c74c95855f41b0fe9ad5a4fe5df8c4097450
* Populate recovery DTBO offset correctlyHridya Valsaraju2018-06-042-11/+25
| | | | | | | | | | | | | | | | Also, remove recovery_dtbo_offset argument for mkbootimg as this is calculated based on sizes of kernel, ramdisk and second binaries. Also, modify unpack_bootimg to use the recovery_dtbo_offset field to extract recovery_dtbo. Test: make recoveryimage showcommands -j32 unpack_bootimg --boot_img $OUT/recovery.img diff recovery_dtbo dtbo.img Change-Id: I588ccc8b739c169b6f78c17ffe554c5562397d98
* Correct comment in boot image headerHridya Valsaraju2018-05-301-5/+8
| | | | | | Test: make Bug: 80207223 Change-Id: I88cf7683e036ff43bbe3ff5418519c7e35e08b79
* Add fastboot --os-version and --os-patch-level.Elliott Hughes2018-04-091-58/+42
| | | | | | | | | | | Also move -c to --cmdline to match the python mkbootimg tool. Remove the short options for these rarely-used options. Remove #if 0 cruft from <bootimg/bootimg.h>. Bug: http://b/77340848 Test: manual testing (need to fix http://b/77809061 for unit tests) Change-Id: Ieaa795566611bd89ba3fee39a1d9f6ad0713a587
* Add dummy vndk library libmkbootimg to enable abi checks on boot_img_hdr.Jayant Chowdhary2018-03-314-14/+98
| | | | | | | | | | | Bug: 74763691 Test: m -j libmkbootimg creates libmkbootimg.so.lsdump. Test: make -j64 Change-Id: I8d716c560467aaf090f4f7ee9cfbc53a9405f05d (cherry picked from commit 4cc755dce527434dc4b79c1734185faeab084bac)
* Merge "OWNERS for system/core/mkbootimg."Treehugger Robot2018-03-281-0/+1
|\
| * OWNERS for system/core/mkbootimg.Elliott Hughes2018-03-281-0/+1
| | | | | | | | | | | | Bug: N/A Test: N/A Change-Id: I9007898e29727892a166f4445c9b112987a97d7d
* | Add a script to unpack boot imageHridya Valsaraju2018-03-282-0/+146
| | | | | | | | | | | | | | | | | | | | | | The script prints out the boot image header contents and extracts the kernel, ramdisk, second bootloader and recovery DTBO images. Bug: 74763691 Test: unpack_bootimg --boot_img $OUT/recovery.img Change-Id: Iadbca81c157d9e4607f808a14468ab5542347507
* | Add a recovery DTBO section to boot imageHridya Valsaraju2018-03-282-31/+100
|/ | | | | | | | | | | | | | | | | | | | | | For non-A/B devices, the recovery partition should be self-sufficient and not depend on any other partition. Since recovery may need access to devices added to the DT by overlays(for eg.display), we need to make sure that the the recovery image also contains the information from the DTBO image. The following fields are added to the boot image header for this purpose: -boot header version -header size -recovery dtbo size -recovery dtbo address Bug: 74763691 Test: unpack_bootimage --boot_img $OUT/recovery.img diff out/extracted_dtbo $TOP/device/google/wahoo-kernel/dtbo.img Change-Id: I1969859038b84fac1e4a71f79f2f546b9cacffc8
* mkbootimg: use int for os_version and os_patch_levelSami Tolvanen2016-03-291-5/+5
| | | | | | | | | | The parse_int function attempts to interpret the string to detect base, which leads to it assuming strings starting with 0 are base 8. This obviously fails for certain dates, so use int instead. Bug: 27498078 Bug: 22914603 Change-Id: I50b1fb3d7876f2ec17d00649cc9a2d23af2aec2b
* mkbootimg: add os_versionSami Tolvanen2016-03-152-4/+43
| | | | | | | | | | | | | | Adds operating system version and security patch level to the boot image header. This change take into use one of the existing unused fields to preserve compatibility. Note: All information is packed into a single field, because there are a lot of existing devices that break if the first unused field is set to a non-zero value. Bug: 27498078 Bug: 22914603 Change-Id: I24953129e06019b95014a050e916fe4f5c199286
* Revert "mkbootimg: add version and patch level"Sami Tolvanen2016-03-102-26/+4
| | | | | | | This reverts commit 3edc43234a0c0d592bc67b61f39c45eed238cef2. Bug: 27580174 Change-Id: I42dac32eb7a70498accf2b8b4fde1ed0d221ca0b
* mkbootimg: add version and patch levelSami Tolvanen2016-03-072-4/+26
| | | | | | | | | | Adds operating system version and security patch level to the boot image header. This change takes over two existing unused fields to preserve compatibility with existing devices. Bug: 27498078 Bug: 22914603 Change-Id: I57682611e0c27fec5ed284da7d9a788383ff98b1
* Allow building with Python 3.xBernhard Rosenkränzer2016-02-231-2/+5
| | | | | | | Allow the scripts to run with both python 2.x and 3.x Change-Id: I911118bcf370d09bdb2fb46afa21af64257f1ffb Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* mkbootimg: misc typo fixesRom Lemarchand2015-06-041-2/+2
| | | | | | | - Fix whitespace in parse_int - Use two dashes for kernel_offset instead of four Change-Id: I59667da457d0f0d78a946e543d1aa0aec5e682d5
* mkbootimg: parse hexadecimal intsRom Lemarchand2015-06-021-6/+10
| | | | | | Allow passing int arguments as hexadecimal values Change-Id: If5a199007e9868f994dd740ccd15c455eb536327
* mkbootimg: delete obsolete C sourceRom Lemarchand2015-06-021-297/+0
| | | | Change-Id: Ic36cbf370b7d54c3dd425a25d938c661e8d3405a
* mkbootimg: turn into a python scriptRom Lemarchand2015-06-022-6/+140
| | | | | | Turn mkbootimg into a python script instead of a C utility Change-Id: I36d35dfacfbbef2cc16bd6695ab15ee716bb0cdb
* pass in correct buffer to print_idAndres Morales2015-05-081-1/+1
| | | | | | hdr.id is actually larger than sha Change-Id: Iac33dbaaf4bea9acde5ba49d8601f7ac767677d5
* mkbootimg: make mkbootimg print image cksum to stdoutAndres Morales2015-05-081-34/+54
| | | | | | used by the build system as a fingerprint for the image Change-Id: Ifaf230b881e68d921a8158ed2e8a3ee41f27a4b3
* mkbootimg: use fixed-size types for image formatRom Lemarchand2015-05-072-28/+30
| | | | Change-Id: I471ef420c3944b3ffefdba9ca7122c6a7f09e5ac
* mkbootimg: turn on -WerrorMark Salyzyn2014-05-052-6/+7
| | | | | | - Deal with signedness issues Change-Id: I61211165eb4ce0fa9a2edeebb3f97fb0ffc62d34
* mkbootimg: fix padding calculation for 2ndstage loaderAndrew Boie2014-04-241-1/+1
| | | | | Change-Id: I8db844cbc52896e51886b725fb86fd1b0fa57899 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
* mkbootimg: support longer kernel command linesAndrew Boie2013-09-092-3/+17
| | | | | | | | | | | | | | | | | | We can't simply increase the value of BOOT_ARGS_SIZE since that would break past binary compatibility; the offset of 'id' would change. This can cause serious problems with incremental OTA updates. Instead, define a supplemental field which stores command line information beyond the first 512 bytes. A value of 1024 was chosen to keep the total size of struct boot_img_hdr under the smallest page size of 2048 bytes. Even if the extra_cmdline field is used, the original cmdline field is still always NULL-terminated to avoid issues with older bootloaders that haven't been updated. Change-Id: I887e6f1db351a5b71a61e3a03363cf8856123d74 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
* mkbootimg: support 8192/16384 pagesizesIthamar R. Adema2013-03-101-2/+3
| | | | | | | By now these sizes are very common, so make sure we support them. Change-Id: Ib1963fbabc4ec0b4623f2045a3cbeedffbad7ee8 Signed-off-by: Ithamar R. Adema <ithamar@upgrade-android.com>
* add command-line arguments to mkbootimg to move kernel, ramdisk, etc.Doug Zongker2012-08-021-11/+18
| | | | | Bug: 6918260 Change-Id: I5d4af6314fded027952941110a520dc9aa234a14
* HACK: push ramdisk up by 2MIliyan Malchev2012-06-111-1/+1
| | | | | Change-Id: Idb71ebd25c0b8c765ce8767961f362f6deb45547 Signed-off-by: Iliyan Malchev <malchev@google.com>
* dist for dist_filesYing Wang2010-12-091-1/+1
| | | | Change-Id: I665572a2212f1239b02b7816e37ada210afbdb48
* Fix the pagesize argument parsingMaarten Hooft2010-08-241-2/+2
| | | | Change-Id: I8a3d1a2a70c5ad972d3e150b320ee2184c9d5b4a
* Fix usage string.Ying Wang2010-08-231-0/+1
| | | | Change-Id: Iaa99a1bb8bb6998082f3553689b5b812a6471514
* handle 4096 byte pages if requested via --pagesizeBrian Swetland2010-08-111-1/+7
| | | | | Change-Id: I9299ebeced85dcf5e6e4686b99b28b9786be4f25 Signed-off-by: Brian Swetland <swetland@google.com>
* fastboot, mkbootimg: support alternate base addressesBrian Swetland2009-04-281-13/+15
| | | | | | | Add the --base flag to mkbootimg and -b flag to fastboot, to allow the default kernel base address (0x10000000) to be changed. Signed-off-by: Brian Swetland <swetland@google.com>
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-033-0/+360
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-033-360/+0
|
* auto import from //branches/cupcake/...@127101The Android Open Source Project2009-01-202-40/+35
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-1/+1
|
* Initial ContributionThe Android Open Source Project2008-10-213-0/+365