diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-08-29 07:58:06 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-08-29 07:58:06 +0000 |
commit | f3d5b51359f0344fda37e944dac8c968703b52c5 (patch) | |
tree | ea9e7be9ff11ed5ddc104306af56e686e320d3de | |
parent | b4a93b2d50961f6e9bcbd8763f92013adbbe57c8 (diff) | |
download | rockbox-f3d5b51359f0344fda37e944dac8c968703b52c5.tar.gz rockbox-f3d5b51359f0344fda37e944dac8c968703b52c5.zip |
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
-rwxr-xr-x | tools/mkmi4.sh | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tools/mkmi4.sh b/tools/mkmi4.sh index fbdc7ffaff..8e9a4bdc84 100755 --- a/tools/mkmi4.sh +++ b/tools/mkmi4.sh | |||
@@ -59,6 +59,7 @@ fi | |||
59 | case $target in | 59 | case $target in |
60 | e200) | 60 | e200) |
61 | sign="yes" | 61 | sign="yes" |
62 | encrypt="yes" | ||
62 | tea=sansa | 63 | tea=sansa |
63 | ;; | 64 | ;; |
64 | h10) | 65 | h10) |
@@ -89,15 +90,21 @@ else | |||
89 | tool=$MI4CODE | 90 | tool=$MI4CODE |
90 | fi | 91 | fi |
91 | 92 | ||
93 | # Use full file plaintext length if not encrypting | ||
94 | if test -z "$encrypt"; then | ||
95 | buildopt="$buildopt -pall" | ||
96 | fi | ||
92 | 97 | ||
93 | 98 | # build mi4 | |
94 | |||
95 | # build a 010301 version | ||
96 | #echo "$tool build $input $output.raw" | 99 | #echo "$tool build $input $output.raw" |
97 | $tool build $buildopt $input $output.raw | 100 | $tool build $buildopt $input $output.raw |
98 | # encrypt | 101 | # encrypt |
99 | #echo "$tool encrypt $output.raw $output.encrypt $tea" | 102 | if test -n "$encrypt"; then |
100 | $tool encrypt $output.raw $output.encrypt $tea | 103 | #echo "$tool encrypt $output.raw $output.encrypt $tea" |
104 | $tool encrypt $output.raw $output.encrypt $tea | ||
105 | else | ||
106 | mv $output.raw $output.encrypt | ||
107 | fi | ||
101 | # sign | 108 | # sign |
102 | if test -n "$sign"; then | 109 | if test -n "$sign"; then |
103 | #echo "$tool sign $output.encrypt $output" | 110 | #echo "$tool sign $output.encrypt $output" |