diff --git a/test/test_bootimg.py b/test/test_bootimg.py index 479a09bc..b6832468 100644 --- a/test/test_bootimg.py +++ b/test/test_bootimg.py @@ -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", diff --git a/test/testdata/bootimg/mtk_mkimage-boot-recovery.img b/test/testdata/bootimg/mtk_mkimage-boot-recovery.img new file mode 100644 index 00000000..d4c13143 Binary files /dev/null and b/test/testdata/bootimg/mtk_mkimage-boot-recovery.img differ