Skip to content

Files

Latest commit

ed05fb4 · Feb 26, 2022

History

History

script

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 11, 2021
Feb 26, 2022
Feb 26, 2022
Jul 19, 2021
Oct 11, 2021
Jul 19, 2021
Oct 11, 2021
Dec 18, 2021
Jul 26, 2021
Jul 26, 2021
Jul 24, 2021
Jul 26, 2021

BL602 RE tooling

funcdiff.py - Assembly-level function diffing

Compiles sources and generates a HTML report comparing the assembly of the original binaries to the RE'd object files. Requires a RISC-V toolchain on the PATH.

Usage: ./funcdiff.py [source file matching glob expression]

headerdiff.py - Source-level C header diffing

Compiles sources and generates a HTML report comparing the DWARF-reconstructed headers of the original binaries to the RE'd files. Requires a RISC-V toolchain on the PATH.

Usage: ./headerdiff.py [source file matching glob expression]

bfnp.ksy - Kaitai definition file for firmware header parsing

You can use this script with Kaitai IDE to parse files with BFNP header, this header is sent together within all firmwares (bootrom and eflash loader reads them), or they have it directly (for example eflash_loader.bin)

Usage: Upload and open the script within Kaitai IDE and upload file with BFNP header

TODO: document other tools