Ghidrascripts which will help disassembly of MED9.1 ECUs
Setup Ghidra for MED9.1 Binary
- Insert MED9.1 Binary(2MB) into Ghidra.
- Select PowerPC 32 Bit (Default)
- Run "med9-install.py" to install the memory-table and set the registers
Add Maps from a WINOLS Json File into Ghidra
- Go to Winols, select your damos, select "Export to CSV/Json"
- Tick all the boxes in the dialog(All Columns & Adresses as Hex)
- Put the resulting JSON-File into the same folder as this script (Usually: C:\Users<username>\Ghidrascripts
- Rename the JSON-File to "golf5.json"
- Run this Script.
- All Maps will be marked as "bytes" and will be commented.
If the AddJsonMaps.py fails with the message that it cannot convert code into data-bytes on certain adresses(you ran the analysis before using AddJsonMaps!), you can use this script to unset the whole file. It will also remove the comments from AddJsonMaps.