08-31-2017 12:19 PM
we are facing the problem described in this link: https://www.xilinx.com/support/answers/66295.html and therefore we went to edit the psu_init.c files. However, how can we put the modified files again together into an HDF file?
We tried simply compressing (using .zip and also .7z) the folder and renaming the file to .HDF but there seems to be some checksum somewhere because Petalinux complained that the HDF file was "tampered". So the question is: can I update this checksum manually or, is it possible to disable Petalinux check?
08-31-2017 01:52 PM
Ah, yes, I see, the HDF file contains a comment which is very likely a checksum or a signature ...
42FD3 Comment Length 002E 42FD5 Comment '0229/2GAiIZI/qIFX0Z68PGa6DF4R3Q4z/XNk23WhcYyQ='
You can still try to do the necessary modifications in a TCL script (during build) and use the write_hwdef command to write out the corrected version. Note that, according to UG835, the write_hwdef is run after place_design, so a hook right after that should do the trick.
Hope this helps,
08-31-2017 02:25 PM
Could you kindly point me to where is this checksum placed ...
It is placed at the end of the zip archive as comment record.
... and what is used to compute it?
It is automatically computed and written by the write_hwdef Vivado TCL command.
Hope this clarifies,