Skip to content

mdttool

This a utility for manipulating MDT and MDN files used to load firmware. These files use an ELF header, followed by the certificates used for signing the files. MDT files support a single executable, whereas MBN files support multiple executables.

The executable is split using the program headers in the ELF header, usually producing 9 separate files. The --split command will split the MBN file into the seperate files, while the --elf command combines the seperate files into an executable which can be used for disassembly. The --dump command is similar to what the readelf program does.

Usage

usage: mdttool [-h] [-v] [-d DUMP]7 [-s SPLIT] [-e ELF] [-g GOT]

options:
    -h, --help        show this help message and exit
    -v, --verbose      verbose output
    -d, --dump DUMP    Dump All Headers
    -s, --split SPLIT  Extract the files from the mdn/mdt file
    -e, --elf ELF      Merge all the program headers into an ELF file
    -g, --got GOT      Dump the .got section