summaryrefslogtreecommitdiff
path: root/rbutil/mkamsboot/mkamsboot.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-11-10 09:27:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-11-10 09:27:40 +0000
commit044ba22b93e5b8fdd74c5f8d59d3b63b9d148c41 (patch)
tree25f2f4d264f06a5f081a58433b2f2b8ea8967596 /rbutil/mkamsboot/mkamsboot.c
parentab7ac8b8bd5b2fe2b209820ab83cb7cca958abf8 (diff)
downloadrockbox-044ba22b93e5b8fdd74c5f8d59d3b63b9d148c41.tar.gz
rockbox-044ba22b93e5b8fdd74c5f8d59d3b63b9d148c41.zip
"mv m200v2 m200v4"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19060 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/mkamsboot/mkamsboot.c')
-rw-r--r--rbutil/mkamsboot/mkamsboot.c9
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