From f3d5b51359f0344fda37e944dac8c968703b52c5 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Tue, 29 Aug 2006 07:58:06 +0000 Subject: We can tell some mi4 firmwares to use a full filelength plaintext so no need to encrypt them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10792 a1c6a512-1295-4272-9138-f99709370657 --- tools/mkmi4.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tools/mkmi4.sh b/tools/mkmi4.sh index fbdc7ff..8e9a4bd 100755 --- a/tools/mkmi4.sh +++ b/tools/mkmi4.sh @@ -59,6 +59,7 @@ fi case $target in e200) sign="yes" + encrypt="yes" tea=sansa ;; h10) @@ -89,15 +90,21 @@ else tool=$MI4CODE fi +# Use full file plaintext length if not encrypting +if test -z "$encrypt"; then + buildopt="$buildopt -pall" +fi - - -# build a 010301 version +# build mi4 #echo "$tool build $input $output.raw" $tool build $buildopt $input $output.raw # encrypt -#echo "$tool encrypt $output.raw $output.encrypt $tea" -$tool encrypt $output.raw $output.encrypt $tea +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 +fi # sign if test -n "$sign"; then #echo "$tool sign $output.encrypt $output" -- cgit v1.1