diff options
Diffstat (limited to 'rbutil/mkamsboot/mkamsboot.c')
-rw-r--r-- | rbutil/mkamsboot/mkamsboot.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/rbutil/mkamsboot/mkamsboot.c b/rbutil/mkamsboot/mkamsboot.c index 476bdf2158..e9438b317d 100644 --- a/rbutil/mkamsboot/mkamsboot.c +++ b/rbutil/mkamsboot/mkamsboot.c | |||
@@ -92,7 +92,7 @@ execution to the uncompressed firmware. | |||
92 | #include "bootimg_clip.h" | 92 | #include "bootimg_clip.h" |
93 | #include "bootimg_e200v2.h" | 93 | #include "bootimg_e200v2.h" |
94 | #include "bootimg_fuze.h" | 94 | #include "bootimg_fuze.h" |
95 | #include "bootimg_m200v2.h" | 95 | #include "bootimg_m200v4.h" |
96 | 96 | ||
97 | /* Win32 compatibility */ | 97 | /* Win32 compatibility */ |
98 | #ifndef O_BINARY | 98 | #ifndef O_BINARY |
@@ -130,7 +130,7 @@ static const unsigned char* bootloaders[] = | |||
130 | bootimg_clip, | 130 | bootimg_clip, |
131 | NULL, | 131 | NULL, |
132 | bootimg_e200v2, | 132 | bootimg_e200v2, |
133 | bootimg_m200v2, | 133 | bootimg_m200v4, |
134 | NULL | 134 | NULL |
135 | }; | 135 | }; |
136 | 136 | ||
@@ -140,7 +140,7 @@ static const int bootloader_sizes[] = | |||
140 | sizeof(bootimg_clip), | 140 | sizeof(bootimg_clip), |
141 | 0, | 141 | 0, |
142 | sizeof(bootimg_e200v2), | 142 | sizeof(bootimg_e200v2), |
143 | sizeof(bootimg_m200v2), | 143 | sizeof(bootimg_m200v4), |
144 | 0 | 144 | 0 |
145 | }; | 145 | }; |
146 | 146 | ||
@@ -485,7 +485,8 @@ int main(int argc, char* argv[]) | |||
485 | } | 485 | } |
486 | 486 | ||
487 | 487 | ||
488 | /* TODO: Do some more sanity checks on the OF image. Some images (like m200v2) dont have a checksum at the end, only padding (0xdeadbeef). */ | 488 | /* TODO: Do some more sanity checks on the OF image. Some images (like |
489 | m200v4) dont have a checksum at the end, only padding (0xdeadbeef). */ | ||
489 | checksum = get_uint32le(buf + len - 4); | 490 | checksum = get_uint32le(buf + len - 4); |
490 | if (checksum != 0xefbeadde && checksum != calc_checksum(buf, len - 4)) { | 491 | if (checksum != 0xefbeadde && checksum != calc_checksum(buf, len - 4)) { |
491 | 492 | ||