Currently patch-rkimg.pl reads the data from the .img file up yo 4 times. Once each to validate the MD5 and CRC signatures and then another 2 times to create the new CRC and MD5 signatures if anything is changed.
We shoudl be able to get this down to 2 read (one for checking and one for writing) and if we removed the check we'd get it to one.
Currently patch-rkimg.pl reads the data from the
.img
file up yo 4 times. Once each to validate the MD5 and CRC signatures and then another 2 times to create the new CRC and MD5 signatures if anything is changed.We shoudl be able to get this down to 2 read (one for checking and one for writing) and if we removed the check we'd get it to one.