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
This commit is contained in:
osm0sis committed 2019-04-18 09:43:01 -03:00
1 parent 62392072b2
commit e11482bdec
1 file changed
+2 -2
+2 -2
View File
@@ -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