From e11482bdeca4782b3ee70a8f1ca3a561f1a7757b Mon Sep 17 00:00:00 2001 From: osm0sis Date: Thu, 18 Apr 2019 09:43:01 -0300 Subject: [PATCH] AK2: fix unpack for latest U-Boot tools (v2019.04) update - v2019.04 changed the order and arguments for the U-Boot dumpimage tool See AIK-mobile v3.5 for updated dumpimage/mkimage binaries: https://forum.xda-developers.com/showthread.php?t=2073775 --- tools/ak2-core.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh index 352295c..9ad66cd 100755 --- a/tools/ak2-core.sh +++ b/tools/ak2-core.sh @@ -83,10 +83,10 @@ split_boot() { grep "Type:" $split_img/boot.img-header | cut -d\( -f2 | cut -d\) -f1 | cut -d\ -f1 | cut -d- -f1 > $split_img/boot.img-comp; grep "Address:" $split_img/boot.img-header | cut -c15- > $split_img/boot.img-addr; grep "Point:" $split_img/boot.img-header | cut -c15- > $split_img/boot.img-ep; - $bin/dumpimage -i /tmp/anykernel/boot.img -p 0 $split_img/boot.img-zImage; + $bin/dumpimage -p 0 -o $split_img/boot.img-zImage /tmp/anykernel/boot.img; test $? != 0 && dumpfail=1; if [ "$(cat $split_img/boot.img-type)" == "Multi" ]; then - $bin/dumpimage -i /tmp/anykernel/boot.img -p 1 $split_img/boot.img-ramdisk.gz; + $bin/dumpimage -p 1 -o $split_img/boot.img-ramdisk.gz /tmp/anykernel/boot.img; fi; test $? != 0 && dumpfail=1; elif [ -f "$bin/rkcrc" ]; then