Scroll to navigation

MKBOOTIMG(1) User Commands MKBOOTIMG(1)

NAME

mkbootimg - Android boot.img manipulation tools

DESCRIPTION

usage: mkbootimg [-h] [--kernel KERNEL] [--ramdisk RAMDISK]

[--second SECOND] [--dtb DTB]
[--recovery_dtbo RECOVERY_DTBO | --recovery_acpio RECOVERY_ACPIO] [--cmdline CMDLINE] [--vendor_cmdline VENDOR_CMDLINE] [--base BASE] [--kernel_offset KERNEL_OFFSET] [--ramdisk_offset RAMDISK_OFFSET] [--second_offset SECOND_OFFSET] [--dtb_offset DTB_OFFSET] [--os_version OS_VERSION] [--os_patch_level OS_PATCH_LEVEL] [--tags_offset TAGS_OFFSET] [--board BOARD] [--pagesize {2048,4096,8192,16384}] [--id] [--header_version HEADER_VERSION] [-o OUTPUT] [--vendor_boot VENDOR_BOOT] [--vendor_ramdisk VENDOR_RAMDISK] [--vendor_bootconfig VENDOR_BOOTCONFIG] [--gki_signing_algorithm GKI_SIGNING_ALGORITHM] [--gki_signing_key GKI_SIGNING_KEY] [--gki_signing_signature_args GKI_SIGNING_SIGNATURE_ARGS] [--gki_signing_avbtool_path GKI_SIGNING_AVBTOOL_PATH]

options:

show this help message and exit
path to the kernel
path to the ramdisk
path to the second bootloader
path to the dtb
path to the recovery DTBO
path to the recovery ACPIO
kernel command line arguments
vendor boot kernel command line arguments
base address
kernel offset
ramdisk offset
second bootloader offset
dtb offset
operating system version
operating system patch level
tags offset
board name
page size
print the image ID on standard output
boot image header version
output file name
vendor boot output file name
path to the vendor ramdisk
path to the vendor bootconfig file

[DEPRECATED] GKI 2.0 signing arguments:

GKI signing algorithm to use
path to RSA private key file
other hash arguments passed to avbtool
path to avbtool for boot signature generation

vendor boot version 4 arguments:

specify the type of the ramdisk
specify the name of the ramdisk
specify the value of the board_id vector, defaults to 0
path to the vendor ramdisk file
These options can be specified multiple times, where each vendor ramdisk option group ends with a --vendor_ramdisk_fragment option. Each option group appends an additional ramdisk to the vendor boot image.
September 2023 mkbootimg 34.0.4