[PATCH v2 4/5] ARM: zynq: add zynq fsbl checksum script

2013-03-25 Thread Steffen Trumtrar
The bootrom only reads an image if the correct checksum is present in the header. The calculation is pretty simple: sum over all words from 0x20 to 0x44 Two of this words are the image length. That is why the checksum can not be calculated until barebox_image_size is known. The easiest solution is

[PATCH v2 4/5] ARM: zynq: add zynq fsbl checksum script

2013-03-19 Thread Steffen Trumtrar
The bootrom only reads an image if the correct checksum is present in the header. The calculation is pretty simple: sum over all words from 0x20 to 0x44 Two of this words are the image length. That is why the checksum can not be calculated until barebox_image_size is known. The easiest solution is