summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2019-04-18 09:43:01 -0300
committerosm0sis <osm0sis@outlook.com>2019-04-18 09:43:01 -0300
commite11482bdeca4782b3ee70a8f1ca3a561f1a7757b (patch)
treef9b7c566b7958e73de594aef75a2f3adccb001a2 /tools
parent62392072b285b320eaa06ba3e045cef747ba230b (diff)
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ak2-core.sh4
1 files 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