AnsweredAssumed Answered

iMX6 / HAB - getting .csf values from U-Boot image

Question asked by colinhelliwell on Aug 14, 2017
Latest reply on Aug 14, 2017 by Yuri Muhin

I'm working to get iMX6 HAB to boot a signed U-Boot binary. The complication I have is that my SOM vendor has their own branch of U-Boot source, and they have their own assembler source and linker script which creates the IVT and CSF data in the binary image - they don't use the 'imximage' generation of U-Boot's mkimage tool. Therefore, when I follow the HAB docs for creating the .csf file, I don't have the "HAB Blocks =" info [outputted by mkimage] to use in the .csf file (for the 'Blocks = ' line).

Therefore I'm aiming to extract the values from the .bin file, e.g. using readelf/objdump etc. But I'm struggling to figure out what I need to extract from the .bin

Could anyone give me some pointers on how to calculate the 'Blocks =' values?

Or, even, be willing to send me their U-Boot .bin file and the corresponding .csf file - so that I can sanity-check my own reasoning?

Thanks!

Outcomes