Index: main-pp.c =================================================================== --- main-pp.c (revision 17229) +++ main-pp.c (working copy) @@ -366,11 +366,11 @@ if( memcmp(ppmi_header.magic, "PPMI", 4) ) return EFILE_NOT_FOUND; - printf("BL mi4 size: %x", ppmi_header.length); + /* printf("BL mi4 size: %x", ppmi_header.length); */ /* Read mi4 header of the OF */ - ata_read_sectors(IF_MV2(0,) pinfo->start + PPMI_SECTOR_OFFSET + PPMI_SECTORS - + (ppmi_header.length/512), MI4_HEADER_SECTORS, &mi4header); + ata_read_sectors(IF_MV2(0,) pinfo->start + PPMI_SECTOR_OFFSET /* + PPMI_SECTORS */ + /* + (ppmi_header.length/512) */, MI4_HEADER_SECTORS, &mi4header); /* We don't support encrypted mi4 files yet */ if( (mi4header.plaintext) != (mi4header.mi4size-MI4_HEADER_SIZE)) @@ -392,8 +392,8 @@ printf("Binary type: %.4s", mi4header.type); /* Load firmware */ - ata_read_sectors(IF_MV2(0,) pinfo->start + PPMI_SECTOR_OFFSET + PPMI_SECTORS - + (ppmi_header.length/512) + MI4_HEADER_SECTORS, + ata_read_sectors(IF_MV2(0,) pinfo->start + PPMI_SECTOR_OFFSET /* + PPMI_SECTORS */ + /* + (ppmi_header.length/512) */ + MI4_HEADER_SECTORS, (mi4header.mi4size-MI4_HEADER_SIZE)/512, buf); /* Check CRC32 to see if we have a valid file */