BjornRuytenberg / tcfp

Thunderbolt Controller Firmware Patcher.
https://thunderspy.io
Other
64 stars 11 forks source link

PCI ID '0x15ea' has no known signatures. #9

Open superchief opened 3 years ago

superchief commented 3 years ago

Hi BjornRuytenberg,

I ran a parse command on the dumped Gigabyte Titan Ridge TB3 firmware and it couldn't find the signature.

$ python3 tcfp.py parse OriginalFirmware23-BlueChip.bin -v 
2020-12-17 00:58:40,429 - DEBUG - Found PCI ID: 0x15ea ('JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018]')
2020-12-17 00:58:40,429 - DEBUG - Parsing DROM.
2020-12-17 00:58:40,430 - DEBUG - DROM declares bogus NVM version. Determining value using alternative method.
2020-12-17 00:58:40,430 - DEBUG - Got NVM version using alternative method: 23 (0x17)
2020-12-17 00:58:40,430 - DEBUG - Done parsing DROM.
2020-12-17 00:58:40,430 - WARNING - No matching SL patterns for PCI ID '0x15ea'. Ignoring PCI ID and trying all patterns instead.
2020-12-17 00:58:40,431 - DEBUG - [0] Heuristics match:
2020-12-17 00:58:40,431 - DEBUG - pci-id : JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (0x15d3)
2020-12-17 00:58:40,431 - DEBUG - sl : 1
2020-12-17 00:58:40,431 - DEBUG - sig : [{'offset': 0x800, 'value': b'\xff'}, {'offset': 0x1800, 'value': b'\x19'}]
2020-12-17 00:58:40,431 - DEBUG - patch : [{'offset': 0x0, 'value': b'\x00 \x08\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, {'offset': 0x800, 'value': b'\x18'}, {'offset': 0x1800, 'value': b'\xff'}]
Vendor ID : 0xed
PCI ID : 0x15ea
PCI Device Name : JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018]
Model ID : 0xa207
NVM version : 23 (0x17)
Vendor : GIGABYTE
Device : GC-TITAN RIDGE
Image type : Full
Security Level : SL1

I also ran the patch command on the dumped firmware and it was successful but it doesn't detect my card anymore.

python3 tcfp.py patch OriginalFirmware23-BlueChip.bin -v                                                                                                                                                                                  01:17:16
2020-12-17 01:40:37,953 - DEBUG - Found PCI ID: 0x15ea ('JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018]')
2020-12-17 01:40:37,953 - DEBUG - Parsing DROM.
2020-12-17 01:40:37,953 - DEBUG - DROM declares bogus NVM version. Determining value using alternative method.
2020-12-17 01:40:37,953 - DEBUG - Got NVM version using alternative method: 23 (0x17)
2020-12-17 01:40:37,953 - DEBUG - Done parsing DROM.
2020-12-17 01:40:37,953 - WARNING - No matching SL patterns for PCI ID '0x15ea'. Ignoring PCI ID and trying all patterns instead.
2020-12-17 01:40:37,953 - DEBUG - [0] Heuristics match:
2020-12-17 01:40:37,953 - DEBUG - pci-id : JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (0x15d3)
2020-12-17 01:40:37,953 - DEBUG - sl : 1
2020-12-17 01:40:37,954 - DEBUG - sig : [{'offset': 0x800, 'value': b'\xff'}, {'offset': 0x1800, 'value': b'\x19'}]
2020-12-17 01:40:37,954 - DEBUG - patch : [{'offset': 0x0, 'value': b'\x00 \x08\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, {'offset': 0x800, 'value': b'\x18'}, {'offset': 0x1800, 'value': b'\xff'}]
Vendor ID : 0xed
PCI ID : 0x15ea
PCI Device Name : JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018]
Model ID : 0xa207
NVM version : 23 (0x17)
Vendor : GIGABYTE
Device : GC-TITAN RIDGE
Image type : Full
Security Level : SL1

2020-12-17 01:40:37,954 - WARNING - PCI ID unsupported, but current SL detected through heuristics. Patching may fail.
Image patched succesfully.

OriginalFirmware23-BlueChip.bin.zip

superchief commented 3 years ago

I know it's the holidays, and I'm trying to be patient, but I haven't heard back from you and it's almost been two weeks. I also sent you two emails and haven't heard back from you on those either. I would be willing to pay you for your help. I ended up buying the Asus Thunderbolt 3 cards and those don't work either. I'll be submitting reports for those as well. I can't do anything until I get SL1 changed to SL0. I hope you had a great holiday and look forward to hearing back from you.

superchief commented 3 years ago

Hi Bjorn, I really need your help. I'm wondering at this point if perhaps you're sick with covid. Please get back to me as soon as you can and Happy New Year!!!

Best, Andrew

superchief commented 3 years ago

I hope you're not sick, man. I'm willing to pay you. I need to get this done.

Best, Andrew

superchief commented 3 years ago

Bjorn, are you available to help?

Best, Andrew