The Med9Toolchain is a command-line application that allows you to apply patches to a binary file. Its basically a Toolset for your MED9.X ECU, which is able to "patch" functionality in. It provides a set of functionalities to write patches in C language, and then apply them automatically to any binary provided.
Refer please to FAQ.md
-
Install Python 3.X for Windows
https://www.python.org/downloads/windows/
-
Install PowerPC GCC compiler for Windows
https://gnutoolchains.com/powerpc-eabi/
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd med9toolchain
- Install the required dependencies:
pip install -r requirements.txt
python med9toolchain.py [-h] [-o OUTPUTFILE] inputfile [patches [patches ...]]
Arguments
inputfile: Path to the input file. This is the file to which the patches will be applied.
patches: List of patches to apply. Choose from the available patches.
Options
-h, --help: Show the help message and exit.
-o OUTPUTFILE, --outputfile OUTPUTFILE: Path to the output file. If not provided, the output file will be named inputfile_MOD.bin.
Example
To apply the sample "mapswitch" to an input file, run the following command:
python med9toolchain.py testfile.bin mapswitch_ldrxn
This command applies mapswitch to the input.bin file. The output file input.bin_MOD.bin will be generated with the applied patches.
Note: Make sure the input file exists in the specified path, and the patches are valid.
This project is licensed under the MIT License.