I followed your steps and was able to patch/flash my Sapphire R9 280X Dual X 3GB. Now I'm getting just a black screen. I'm attaching my patched ROM and Terminal message for you guys to help out. Please.
t- EFI bash — 80x37
Last login: Mon 3un 25 13:05:43 on ttys000
[TNMP51:- tnS cd /Volumes/EFI
[TNVP51:EFI tnS ./makerom.sh —ofifilc=7950mac.ofi —romfilc=cfiromhcadcr.rom —o]
riginalrom=r9280x.rom —dcvid=6798
running on 7950mac.cfi, cfiromhoador.rom with dovid 6798
Patching files 7950mac.efi, cfiromhoador.rom for dcvicc-id 0x6798
Successfully patched ofi file
Successfully patched ofi rom file
Orig Size = 125440
Comp Size = 47591
47591+0 records in
47591+0 records out
47591 bytes transferred in 0.128095 sees (371529 bytes/sec)
EFI part is ready at 6798.efipart.rom
orig size - 65536
65536+0 records in
65536+0 records out
65536 bytes transferred in 0.178013 secs (368153 bytes/sec)
Before:
OpRom (sizc=65536, indicator_offset=0x255, indicator=0x0, checksum=0x0)
OpRom (sizc=48128, indicator_offset=0x31, indicator=0x80, checksum=0x0)
RawData (sizc=17408)
Traccback (most recent call last):
File "fixrom.py", line 110, in <modulc>
op_rom.fix()
File "fixrom.py", line 90, in fix
self.data[-l] = chr(0xl00 - sum)
ValucError: chr() arg not in rangc(256)
the rom is ready at r9280x.rom.efi.rom
TNMP51:EFI tnS j