diff options
-rwxr-xr-x | tools/mkmi4.sh | 8 |
1 files 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(){ | |||
48 | } | 48 | } |
49 | 49 | ||
50 | help () { | 50 | help () { |
51 | echo "Usage: mi4fix.sh <e200/h10/h10_5gb> <input> <output>" | 51 | echo "Usage: mi4fix.sh <e200/h10/h10_5gb/elio> <input> <output>" |
52 | exit | 52 | exit |
53 | } | 53 | } |
54 | 54 | ||
@@ -75,6 +75,9 @@ case $target in | |||
75 | h10_5gb) | 75 | h10_5gb) |
76 | buildopt="-2" | 76 | buildopt="-2" |
77 | ;; | 77 | ;; |
78 | elio) | ||
79 | buildopt="-2" | ||
80 | ;; | ||
78 | *) | 81 | *) |
79 | echo "unsupported target" | 82 | echo "unsupported target" |
80 | help | 83 | help |
@@ -108,7 +111,8 @@ if test -n "$encrypt"; then | |||
108 | #echo "$tool encrypt $output.raw $output.encrypt $tea" | 111 | #echo "$tool encrypt $output.raw $output.encrypt $tea" |
109 | $tool encrypt $output.raw $output.encrypt $tea | 112 | $tool encrypt $output.raw $output.encrypt $tea |
110 | else | 113 | else |
111 | mv $output.raw $output.encrypt | 114 | # Even if we don't encrypt we need to do this to ensure the crc gets fixed |
115 | $tool encrypt -pall $output.raw $output.encrypt default | ||
112 | fi | 116 | fi |
113 | # sign | 117 | # sign |
114 | if test -n "$sign"; then | 118 | if test -n "$sign"; then |