On 2017-Feb-18 11:52 , Jd Lyons wrote:
I noticed Fcode-Utils has a detoke tool, I’d like to use it to detoke FCode roms, but I’m not sure of it’s usage, do I need to remove the PCI Header from the FCode rom?
If so, how long is the header, is it a standard length, or does it vary from Rom to Rom?
See section 9 of the 1275 PCI binding - one copy at http://www.o3one.org/hwdocs/openfirmware/pci_supplement_2_1.pdf . The header is 0x1A bytes long.
Note, however, that the FCode doesn't necessarily start right after the header, but will lie at the offset defined by bytes 2-3.