forked from Mirror/pmbootstrap
bootimg_analyze: Add support for boot header version 3 (MR 2073)
This commit is contained in:
parent
9d22989a88
commit
d764b0de58
4 changed files with 53 additions and 20 deletions
|
@ -99,3 +99,14 @@ def test_bootimg_dtb_second(args):
|
|||
"mtk_mkimage": "false",
|
||||
"dtb_second": "true"}
|
||||
assert pmb.parse.bootimg(args, path) == output
|
||||
|
||||
|
||||
def test_bootimg_v3(args):
|
||||
path = pmb_test.const.testdata + "/bootimg/boot-header-v3.img"
|
||||
output = {"header_version": "3",
|
||||
"pagesize": "4096",
|
||||
"cmdline": "twrpfastboot=1",
|
||||
"qcdt": "false",
|
||||
"mtk_mkimage": "false",
|
||||
"dtb_second": "false"}
|
||||
assert pmb.parse.bootimg(args, path) == output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue