Add ASM3242 support#22
Conversation
The firmware version is at offset 0xC9 instead of 0xB9.
|
Here is the firmware I extracted from a "PH66" card from Aliexpress : 200311_83_02_02.zip @cyrozap Since you list two cards on https://github.com/cyrozap/asmedia-xhc-re/blob/master/doc/Notes.md, did you dump the firmwares ? |
Yes, I have. The ORICO PE20-1C and the IOCrest IO-PCE3242-1C both use the same firmware image. Or at least they did at the time I bought them 4-5 years ago--their manufacturers might have updated the shipped firmware images since then. Here's the output from my Also, FWIW, the way
This parsing procedure will work for all ASMedia USB host controller firmware images, without having to hardcode a fixed absolute offset to the firmware version. This is important for any firmware images that take advantage of the feature to write to internal MMIO registers (in the 8051's XDATA address space) of the chip, since firmware images that use that functionality will have different offsets for the firmware version than the ones currently hardcoded in If you want to visualize what I'm talking about, load this file and a firmware image into the Kaitai Web IDE. That will parse all the fields in the firmware image and display an interactive hex view and structure tree view of the image. |
So even older, and maybe with hardware differences (the 00 vs 02).
I will look at it. |
The firmware version is at offset 0xC9 instead of 0xB9.
I added the FindByProduct first, but it would be better to have an argument, or to dump all devices.