From e4e4219302bf5ea6f068c85ae5a8ff51b975d9f1 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Wed, 30 Aug 2006 20:20:52 +0000 Subject: [PATCH] Even when we don't encrypt a mi4 we still need to run the encrypt step so that the crc gets updated. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10812 a1c6a512-1295-4272-9138-f99709370657 --- tools/mkmi4.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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