CRC Calculation for the firmware


I am planning to perform CRC calculation of the firmware in the bootloader.
Is there any way to find out the structure of the firmware binary, as i was trying to calculate the length of the binary thining FFFFFFFF as end of the firmware ( in flash ) but this got stopped in between as there is 0xFFFFFFFF in code also.

Take a look at the recent Pull-requests in github. I think one of them is calculating the bootloadrer CRC.