diff options
author | osm0sis <osm0sis@outlook.com> | 2019-06-04 23:45:47 -0300 |
---|---|---|
committer | osm0sis <osm0sis@outlook.com> | 2019-06-04 23:45:47 -0300 |
commit | 192ccc94d3c00fc1b0cea553af5751cc672c69f5 (patch) | |
tree | b75fb5a2eeab4a850fc6ac61506ae2c2c4c4dcfd /tools | |
parent | 97de781a55f09cca631982511789e1ff95badc8f (diff) |
AK3: support MTK /dev/bootimg and /dev/recovery partition matching
(note these probably require nanddump and nandwrite to access correctly)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ak3-core.sh | 4 |
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; |