--- orig/raw2flash.c Wed May 2 00:35:49 2007 +++ new/raw2flash.c Sun Jul 29 01:56:50 2007 @@ -203,12 +203,14 @@ } *partition = 1; case 1: +#ifndef FULLIMAGE if (count - PARTITION_START < PARTITION_START) { memcpy(buffer, jffs_buffer + count - PARTITION_START, ecc->style->eccbytes); *len = ecc->style->eccbytes; break; } +#endif while (*len < ecc->style->eccbytes) { ret = TFR(read(0, buffer + *len, 0x800 - *len)); @@ -254,8 +256,10 @@ fprintf(stderr, "["); # endif +#ifndef FULLIMAGE /* Skip first 10 bytes */ TFR(read(0, buffer, 0x10)); +#endif len = 0; jffs = (uint8_t *) malloc(PARTITION_START);