summaryrefslogtreecommitdiffstats
path: root/mkbootimg
Commit message (Collapse)AuthorAgeFilesLines
* mkbootimg: Add --second_offset to usage displayBrandon McAnsh2015-11-261-0/+1
| | | | | | | * This is handled in the logic, but not displayed for usage Change-Id: I86c62833a00d023eb8a74ba0451ff89906ce5a46 Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* mkbootimg: Fix bootimg structure after adding --dt parameterrbox2015-10-111-1/+1
| | | | | | | | 396224f2caf2fadf7b35239e7daf87139824e3e7 added dt_size to bootimg.h, but didn't fix the unused field, so cmdline was shifted by 4 bytes from where it was supposed to be. Change-Id: I112b735971dc75ed7feacfb849ef1b76858caa96
* mkbootimg: use right local module class to avoid relocation packaging.chrmhoffmann2015-10-111-2/+2
| | | | | | | This change here now checks EXECUTABLES and UTILITY_EXECUTABLES seems unused anyway. https://android.googlesource.com/platform/build/+/f55c5a5%5E%21/#F0 Change-Id: I2ad898817b6b7cdd39f2f563caa2f54e9c097617
* mkbootimg: Fix for loop initial declaration errorBrandon McAnsh2015-10-091-1/+2
| | | | | | | error: 'for' loop initial declarations are only allowed in C99 or C11 mode Change-Id: I6e46b61ca21793080d2e3f649c0ef1bd7eacdc76 Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* Forward-port mkbootimg / unpackbootimg supportSteve Kondik2015-10-093-0/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Mostly from Koush and Seth Shelnutt unpackbootimg (squashed) unpackbootimg ported forward from eclair Change-Id: I74d2df0b47d40e7105cc58c2b05f8f383dc7f8a0 port forward pagesize arg from eclair Change-Id: Ia789a4f392a3890aa0efa7efb42032482b48beb0 unpackbootimg should output BOARD_PAGE_SIZE Change-Id: Ieb5cda01943a33da97eee4d025f56c2c6e7560e8 output page size in mkbootimg add an option to override the pagesize for boot images created by nubs. ie, acer liquid mkliquidbootimg. Change-Id: Ie0c7e67edf5ae59019517e72b9be8c0b81388e41 Update unpackbootimg to verify the Android boot image magic value. It will also search the first 512 bytes for padding. Change-Id: I490cba05f2bb616a3f64e3271ecaa61eb9e64be8 unpackbootimg: Fix up the padding search in case the magic does not fall on a 8 byte boundary. Change-Id: I57471f9c2117cd7965b6958ea0aa88e356436da6 unpackbootimg: Fix magic search. Change-Id: I68470b637556a08e48ff72b7ef8811cba13b04ad unpackbootimg: apparently mkbootimg no longer accepts hex values Change-Id: I95a33f7b40470e4500d418d863a65a75e7aa8499 unpackbootimg: Need to also update the written file. Change-Id: I45faddbae85273c79b2837f97933634b6e70546f ramdiskaddr is now ramdisk_offset Change-Id: I3bf83af5f7001f581506dc7fd9b1eb653334ad35 unpackbootimg: remove host LOCAL_MODULE_TAG Change-Id: I199d680dc5ab8bf50f5be65c29095bf3adade695 unpackbootimg: Add support for device trees Change-Id: I340eed99d2274a2f4cbaf5a9f27726ff3a9302e5 unpackbootimg: Add support for detecting lz4 compressed ramdisks This will check for lz4 magic, and if found change the extension of the file. Else it'll fall back to the default behavior of assuming gzip. This has been tested with stock LS980 boot images and LS970 boot images for lz4 and gzip respectively. Change-Id: If2139ff172397b6db079ffb7ab9cb61897c38fb3 unpackbootimg: Add support for dumping ramdisk offset Change-Id: Ic62b9fe61db4435ecbc52b66db5ffc9b9d79cbb4 unpackbootimg: Add support for second, second_offset and tags_offset. Change-Id: Ia7ef7f00191dbf2c44736c4e4d980f72afa8c253
* mkbootimg: Support 32K 64K and 128K pagesizesChampionSwimmer2015-10-081-2/+4
| | | | | | | Signed-off-by: ChampionSwimmer <android@championswimmer.tk> Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: I0ee608b74a1daefe536b9247f99368f3e043f93d
* mkbootimg: fixing the typecast issueShruthi Krishna2015-10-081-1/+1
| | | | Change-Id: Ic375089ecce7aed3f9968e5e0b48e8ae0df66d83
* mkbootimg: Add --dt parameter to specify DT imageDavid Ng2015-10-082-0/+25
| | | | | | New optional --dt parameter to specify a kernel device tree image. Change-Id: Ie29a11cbf4138426bfd19ae486d69a5fcbd8f442
* Merge changes Iac33dbaa,I18fcd37d into mnc-devAndres Morales2015-05-081-1/+1
|\ | | | | | | | | | | * changes: pass in correct buffer to print_id stop including rootdir build.prop
| * pass in correct buffer to print_idAndres Morales2015-05-081-1/+1
| | | | | | | | | | | | hdr.id is actually larger than sha Change-Id: Iac33dbaaf4bea9acde5ba49d8601f7ac767677d5
* | Merge "mkbootimg: make mkbootimg print image cksum to stdout" into mnc-devAndres Morales2015-05-081-34/+54
|\ \ | |/
| * mkbootimg: make mkbootimg print image cksum to stdoutAndres Morales2015-05-071-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: make ramdisk optionalRom Lemarchand2015-04-081-7/+2
| | | | Change-Id: Iaa0d220a1fdc5e8652ab8eaf3314bbdcb0746732
* 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