heads icon indicating copy to clipboard operation
heads copied to clipboard

Automate CBFS size calculations in an helper

Open tlaurion opened this issue 8 months ago • 1 comments

So maybe 0xBDEFFF is the maximum CBFS size? I will recompile, flash, and see. It would be cool if we could automate this math.

Basically, the right calculation is taking output of ifdtool -f layout.txt path/to/ifd_output_from_me_cleaner_on_fullrom_backup.rom and parsing the BIOS region, substracting end address to begin address.

@rbreslow Seems like xx30 and xx20 might have been off all along. Redoing.

Originally posted by @tlaurion in https://github.com/linuxboot/heads/pull/1282#discussion_r1089815298

tlaurion avatar Mar 14 '25 16:03 tlaurion