test: add test_bootimg_mtk_mkimage_recovery (MR 2105)
Verify that using a Mediatek recovery boot.img file works with bootimg_analyze. The mtk_mkimage-boot.img file is the twrp boot.img file posted in pmbootstrap issue 2066.
This commit is contained in:
parent
d559db062f
commit
bf02c72da7
|
@ -86,6 +86,21 @@ def test_bootimg_mtk_mkimage(args):
|
|||
assert pmb.parse.bootimg(args, path) == output
|
||||
|
||||
|
||||
def test_bootimg_mtk_mkimage_recovery(args):
|
||||
path = pmb_test.const.testdata + "/bootimg/mtk_mkimage-boot-recovery.img"
|
||||
output = {"base": "0x80000000",
|
||||
"kernel_offset": "0x00008000",
|
||||
"ramdisk_offset": "0x04000000",
|
||||
"second_offset": "0x00f00000",
|
||||
"tags_offset": "0x00000100",
|
||||
"pagesize": "2048",
|
||||
"cmdline": "",
|
||||
"qcdt": "false",
|
||||
"mtk_mkimage": "true",
|
||||
"dtb_second": "false"}
|
||||
assert pmb.parse.bootimg(args, path) == output
|
||||
|
||||
|
||||
def test_bootimg_dtb_second(args):
|
||||
path = pmb_test.const.testdata + "/bootimg/dtb-second-boot.img"
|
||||
output = {"base": "0x00000000",
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue