Skip to content

mr-sm1th/radio_tool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

radio_tool

TYT/BaoFeng/(Others?) Firmware tool

Download

Windows: AppVeyor

Linux: Github Actions

AppVeyor

Release

Otherwise you can use the instructions below to build

Building

Dependencies Linux (Ubuntu/Debian):

sudo apt install libusb-1.0-0-dev cmake gcc g++ pkg-config

Dependencies Mac:

brew install libusb cmake pkg-config

Build:

git clone https://github.com/v0l/radio_tool
cd radio_tool
mkdir build && cd build
cmake ..
make -j4
./radio_tool --help

Usage

Usage:
  ./radio_tool [OPTION...]

 General options:
  -h, --help <command>  Show this message
  -l, --list            List devices
  -d, --device <index>  Device to use
  -i, --in <file>       Input file
  -o, --out <file>      Output file
  -L, --list-radios     List supported radios

 Programming options:
  -f, --flash    Flash firmware
  -p, --program  Upload codeplug

 Firmware options:
      --fw-info  Print info about a firmware file
      --wrap     Wrap a firmware bin (use --help wrap, for more info)
      --unwrap   Unwrap a fimrware file

 All radio options:
      --info                 Print some info about the radio
      --write-custom <data>  Send custom command to radio
      --get-status           Print the current DFU Status

 TYT Radio options:
      --get-time             Gets the radio time
      --set-time             Sets the radio time
      --dump-reg <register>  Dump a register from the radio
      --reboot               Reboot the radio
      --dump-bootloader      Dump bootloader (Mac only)

 Codeplug options:
      --codeplug-info  Print info about a codeplug file

Flash Firmware

./radio_tool -d 0 -f -i new_firmware.bin

Wrap Firmware

./radio_tool --wrap -o wrapped.bin -r DM1701 -s 0x0800C000:main.bin

Unwrap Firmware

Output file in this case is a file prefix, the filename will be unwrapped_0x0800C000 and others if you have firmware will more than one segment

./radio_tool --unwrap -i wrapped.bin -o unwrapped 

About

TYT/BaoFeng Firmware tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 88.1%
  • C 6.3%
  • CMake 5.4%
  • Python 0.2%