static FlashType flashType = FLASH_INVALID;
static uint32_t manId = 0;
-static const char trbflash_version[] = "$Revision: 2.27 $";
+static const char trbflash_version[] = "$Revision: 2.28 $";
static uint32_t mdcFlashSelect = 1;
char c;
if ((flashType == FLASH_MDC_OEP_V2) || (flashType == FLASH_MDC_OEP_V3)) {
if (mdcFlashSelect == 0) {
- fprintf(stdout,
+ fprintf(stderr,
"You decided to reprogram the FlashRom(s) #0 of "
"MDC_OEP, the so called 'GoldenImage'. "
"Do you really know what you're about to do [N,y]: ");
}
} else {
- fprintf(stdout,
+ fprintf(stderr,
"You decided to reprogram the FlashRom(s) of "
"%s, are you sure [N,y]: ", FlashTypeStr[flashType]);
}
/* Overwrite Header with 0xff */
end = 0;
for (i = 0; i < 2 * PAGE_SIZE; i++) {
- if (strncmp((char *)(imageBuffer + i), "Bitstream CRC: 0x", 17) == 0) {
+ if (memcmp(imageBuffer + i, "Bitstream CRC: 0x", 17) == 0) {
end = i + 22;
break;
}