Add 'flasher flash_lk2nd' command (MR 2089)

Many Qualcomm devices need this second bootloader for booting a mainline
kernel. Add an option to flash one if it exists.
This commit is contained in:
Ultracoolguy 2021-08-03 15:37:59 -04:00 committed by Oliver Smith
parent f4990cfc7a
commit 54afa35d70
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 38 additions and 2 deletions

View file

@ -217,6 +217,14 @@ def arguments_flasher(subparser):
help="partition to flash the kernel to (defaults"
" to deviceinfo_flash_*_partition_kernel)")
# Flash lk2nd
flash_lk2nd = sub.add_parser("flash_lk2nd",
help="flash lk2nd, a secondary bootloader"
" needed for various Android devices")
flash_lk2nd.add_argument("--partition", default=None,
help="partition to flash lk2nd to (defaults to"
" default boot image partition ")
# Flash rootfs
flash_rootfs = sub.add_parser("flash_rootfs", aliases=["flash_system"],
help="flash the rootfs to a partition on the"