From 192ccc94d3c00fc1b0cea553af5751cc672c69f5 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Tue, 4 Jun 2019 23:45:47 -0300 Subject: [PATCH] AK3: support MTK /dev/bootimg and /dev/recovery partition matching (note these probably require nanddump and nandwrite to access correctly) --- tools/ak3-core.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index 352ccf8..d973368 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -627,7 +627,7 @@ setup_ak() { case $block in boot|recovery) case $block in - boot) parttype="ramdisk boot BOOT LNX android_boot KERN-A kernel KERNEL";; + boot) parttype="ramdisk boot BOOT LNX android_boot bootimg KERN-A kernel KERNEL";; recovery) parttype="ramdisk_recovey recovery RECOVERY SOS android_recovery";; esac; for name in $parttype; do @@ -649,6 +649,8 @@ setup_ak() { target=/dev/block/platform/*/by-name/$part; elif [ -e /dev/block/platform/*/*/by-name/$part ]; then target=/dev/block/platform/*/*/by-name/$part; + elif [ -e /dev/$part ]; then + target=/dev/$part; fi; test -e "$target" && break 2; done;