summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2019-06-04 23:45:47 -0300
committerosm0sis <osm0sis@outlook.com>2019-06-04 23:45:47 -0300
commit192ccc94d3c00fc1b0cea553af5751cc672c69f5 (patch)
treeb75fb5a2eeab4a850fc6ac61506ae2c2c4c4dcfd
parent97de781a55f09cca631982511789e1ff95badc8f (diff)
AK3: support MTK /dev/bootimg and /dev/recovery partition matching
(note these probably require nanddump and nandwrite to access correctly)
-rwxr-xr-xtools/ak3-core.sh4
1 files changed, 3 insertions, 1 deletions
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;