diff --git a/tools/mkmi4.sh b/tools/mkmi4.sh index 75046654e3..068d7e0628 100755 --- a/tools/mkmi4.sh +++ b/tools/mkmi4.sh @@ -48,7 +48,7 @@ findtool(){ } help () { - echo "Usage: mi4fix.sh " + echo "Usage: mi4fix.sh " exit } @@ -75,6 +75,9 @@ case $target in h10_5gb) buildopt="-2" ;; + elio) + buildopt="-2" + ;; *) echo "unsupported target" help @@ -108,7 +111,8 @@ if test -n "$encrypt"; then #echo "$tool encrypt $output.raw $output.encrypt $tea" $tool encrypt $output.raw $output.encrypt $tea else - mv $output.raw $output.encrypt + # Even if we don't encrypt we need to do this to ensure the crc gets fixed + $tool encrypt -pall $output.raw $output.encrypt default fi # sign if test -n "$sign"; then