AI and Firmware Hacking: Inside the IC-9700, FTX-1 and DM-32UV

AI and Firmware Hacking: Inside the IC-9700, FTX-1 and DM-32UV

Table of Contents

Something unusual happened this month. Within about two weeks, amateurs published working custom firmware for three very different radios:

  • 2 November: Dawid, SQ6EMM, published tools that unpack Icom’s firmware update files for the IC-705, IC-9700 and IC-905. Eleven days later came a custom firmware for the IC-9700 and IC-705.
  • 6 November: Tyler, KD8ZMM, released Open25, which adds P25 and NXDN to the low-cost Baofeng DM-32UV DMR handheld.
  • 16 November: SQ9PD published a modified firmware for Yaesu’s new FTX-1, which Simon the Wizard picked up a few days later.

Hacking the firmware on cheap handhelds isn’t new. On this blog we’ve already put SSB and CW on the Quansheng UV-K5. But the IC-9700 and FTX-1 are £1,000-plus rigs from the big Japanese makers, with no published source code. So what’s changed?

Part of the answer is AI. The commit history of SQ6EMM’s Icom tools credits Claude (Anthropic) on 11 commits and Codex (OpenAI) on 7. The FTX-1 and DM-32UV projects don’t say whether they used AI, so we won’t guess. But the timing isn’t a coincidence: AI tools have made this kind of work possible for one determined amateur in their spare time.

This post looks at what each project does, how the work is done, where AI helps and where it doesn’t, and what to think about before you flash anything.

How firmware gets reverse engineered

A radio’s firmware is its program: the code running on the processor that draws the screen, reads the knobs and drives the DSP. The maker compiles it from source code into machine code, and that’s all you get in the update file. Often it’s scrambled or compressed as well.

Reverse engineering it usually goes like this:

  1. Unpack the update file. Work out how the maker has scrambled, compressed and checksummed it, and get back the raw program.
  2. Disassemble and decompile it. A tool like Ghidra (free, from the US National Security Agency) turns machine code back into something like C. It has no names, though: just FUN_0801a3c4 and thousands of lines like it.
  3. Work out what’s what. This is the slow part. Which function draws the S-meter? Which one handles a button press? Which one keys the transmitter?
  4. Patch it. Add your own code, usually in empty space at the end, and hook it in where the original code runs.
  5. Repack it so the radio accepts it, then test it very carefully.

Steps 3 and 4 used to take months. That’s where AI tools have made the biggest difference.

Our own try: the UV-K5

We had a go at this ourselves on the IJV firmware for the UV-K5, the one we used in the SSB post. IJV isn’t open source, but the UV-K5 has well-known open-source firmware (egzumer and DualTachyon) that it shares a lot of code with. That gives you something to compare it against.

Using an AI assistant to drive Ghidra:

  • The scrambling on Quansheng files is a simple XOR, already documented by the egzumer tools. Undoing it and checking the CRC gave a clean 61 KB program for the radio’s small Cortex-M0 processor.
  • Ghidra found 298 functions.
  • The AI wrote scripts that compared every one with the open-source builds, using the text strings they refer to, the pattern of instructions and the constants inside them, and what calls what. 87 functions were matched with enough confidence to name. That covered the drivers for the radio chip (BK4819), the display, the EEPROM and the serial port, along with the start-up code and the standard library.
  • The large parts that make IJV different, like the menus, scanner, main screen and key handling, stayed unnamed. IJV rewrote them, so there’s nothing to compare them with.

That’s a fair picture of where AI helps. It’s tireless at the repetitive matching, at writing the scripts and at reading datasheets. It can’t tell you what new code does just by looking at it. A person still has to work that out, and then test it on a real radio.

Icom IC-9700 and IC-705: SQ6EMM

The Icom IC-705 portable transceiver with its HM-243 speaker-mic, showing the spectrum scope on 40 m

The IC-705, one of the two radios SQ6EMM’s firmware runs on. Photo: Batchman99, CC BY-SA 4.0, resized.

This is the most impressive of the three projects. Dawid worked out the whole format of Icom’s .dat update files for the radios built on Renesas’s RZ/A1 processor (the IC-705, IC-9700 and IC-905):

  • The scramble is an “autokey” XOR: each byte is mixed with the byte before it and its position in the file. Only two numbers change from model to model, and the tool finds both automatically.
  • The compression is LZSS, a scheme from the late 1980s that’s still everywhere in embedded code.
  • The integrity check is a plain MD5 over the file, with no signature. That’s the important bit. Anyone who can rebuild the file can work out a new MD5, and the radio accepts it.

How the Icom IC-9700 and IC-705 patcher works, in eight steps. 1, the official 9700E150.dat file from Icom, MD5 checked. 2, unscramble an XOR autokey. 3, decompress LZSS. 4, the ARM program is studied in Ghidra with AI help. 5, apply the patch, which holds only the new code and references to the original. 6, recompress, rescramble and write a new MD5; there is no signature. 7, the output MD5 must match the tested build. 8, install with Icom’s normal SD-card update, with a backup slot kept by the A/B bootloader. The IC-905 is different: its firmware is RSA-2048 signed, so it cannot be modified without Icom’s private key.

What the custom firmware adds

The current release (20261119v14) builds on IC-9700 firmware 1.50 and IC-705 firmware 1.40:

  • Transverter support: eight transverter slots, with the real frequency shown on the display up to 122 GHz. Each slot has its own maximum power, TX delay, attenuator and preamp settings. CAT (CI-V) reports the real frequency too, so logging software and WSJT-X see the right band. On the IC-9700, MAIN and SUB can each use a different transverter, which suits satellite and microwave operators.
  • Digital modes on the radio itself: apps loaded from the SD card decode FT8, Q65, JT4, PI4 and WSPR on a new DECODE screen, with no computer needed. You can call CQ, answer a station by tapping its decode, log to an ADIF file and spot to PSKReporter automatically.
  • APRS: a fourth GPS TX mode sends a 1200 baud APRS position beacon on FM, and received stations show up in the radio’s RX History.
  • A finer scope: 10, 6, 3 or 1 dB per division on the spectrum and waterfall.
  • An A/B bootloader: the radio keeps the previous firmware in a second slot. On the IC-9700, hold POWER while you connect the DC supply to boot the other one. If a new version misbehaves, you can go back without a programmer.

How you install it

No Icom code is shared, which is the right way to do this. You download the official file from Icom yourself and open the web patcher. Everything runs in your browser, and your file never leaves your computer. The patch holds only Dawid’s new code, plus instructions like “copy this many bytes from this address in the original”. The patcher checks the MD5 of your file going in. It only gives you the result if the output MD5 exactly matches the build that was tested. Then you install it with Icom’s normal SD-card update.

Where it stops: the IC-905

The same tools decode the IC-905’s firmware, but the IC-905 checks an RSA-2048 digital signature instead of a bare MD5. Without Icom’s private key, no modified file will ever pass, and no AI is going to change that. It shows that firmware hacking depends on how the maker chose to protect the update. It’s also a hint about where future radios are likely to go.

Hidden things inside

Dawid’s notes also list CI-V commands that aren’t in Icom’s manuals. Some just read information, like the radio’s region code. Others are the factory service commands, which put the radio into alignment mode or write raw calibration data. Leave those alone. Get them wrong and you can misalign the radio in a way you can’t fix without proper test gear. We’re deliberately not repeating the details here.

One fun finding for UK operators: the IC-705’s firmware includes UK band plans with 4 m (70 MHz) in them. Whether your radio transmits there depends on the region it was built for. If 4 m interests you, see our post on 70 years of the band.

Yaesu FTX-1: SQ9PD

The FTX-1 project is less ambitious than SQ6EMM’s work, but very practical. It fixes the things owners complain about most. It patches Yaesu’s MAIN 01-13 and DISPLAY 01-10 firmware (only those exact versions):

  • Four pages of five buttons along the bottom of the screen, each one assignable from a list of 70 functions: RF power, mic gain, DNR, the tuner, the APRS lists, filter width, notch and more. Many of these are buried in menus on the stock radio.
  • A clock in the status bar.
  • SWR SCAN: sweeps up to 1 MHz around your frequency in 101 steps and draws the antenna’s SWR curve on the screen. It’s a handy antenna check in the field.
  • Two Yaesu bug fixes, including a menu typo (“AGC SLOW DELY”).

The FTX-1 main screen with the modified firmware: a clock at top left, and a bottom row reading PAGE 1/4, RF POWER 10W, MIC GAIN 80, D-LEVEL 0.0dB, PROC LEVEL 80 and NB OFF

The FTX-1 with SQ9PD’s firmware: the clock is at top left, and the bottom row is page 1 of 4 of the configurable buttons. Screenshot: SQ9PD.

As with the Icom patcher, you supply Yaesu’s files yourself. The patch runs in your browser and checks the SHA-256 hash before and after.

A word on SWR SCAN: it transmits. It sends a low-power AM carrier (1 W on the Field head, 5 W with the SPA-1 amplifier) and steps it across the range. The range isn’t clipped at the band edges, so keep the whole sweep inside the band, check the frequencies are clear, and remember that it’s a transmission under your licence like any other. The author’s notes list a sensible set of safety cut-outs, and also admit that “software safeguards cannot guarantee protection against every failure”.

The FTX-1 SWR SCAN screen: an SWR graph from 1 to infinity across 50 kHz either side of 145.225 MHz, with BW, START, STOP and EXIT buttons along the bottom

SWR SCAN ready to sweep 50 kHz around 145.225 MHz. Screenshot: SQ9PD.

To go back, install Yaesu’s original MAIN and DISPLAY files and do a factory reset. That wipes your settings, so back them up first.

Baofeng DM-32UV: Open25

Open25 is a different kind of project. It isn’t a patch to Baofeng’s firmware: it’s a whole replacement, built on the open-source RadioFoundry firmware for the DM-32UV. The released “Classic” edition gives you analogue FM, DMR, P25 Phase 1 and NXDN 4800/9600 in one cheap handheld, with programming from the front panel and browser-based tools for flashing, backup and recovery.

Two Open25 Classic screens on the DM-32UV. Left: the home screen on a DMR repeater channel, talkgroup 3100. Right: the editor for a P25 simplex channel, showing the mode, NAC 293 and the receive and transmit frequencies

Open25 Classic on the DM-32UV: the home screen on a DMR channel (left) and a P25 channel being edited from the front panel (right). These are the project’s US example settings. Images: Open25-DM32, MIT licence.

If you’ve read our posts on how DMR and how NXDN actually work, you’ll know these modes are close relatives under the skin: 4-level FSK carrying a digital voice codec. That’s why one radio can do all of them, given the right software.

The project is also a good lesson in doing it legally. Its licensing notes (now in the repository’s LICENSES and notices folders) show real care:

  • The project’s own code, the P25 protocol and the IMBE voice codec (the one P25 uses) are MIT-licensed. An earlier GPL codec was replaced to keep it that way.
  • The proprietary AMBE codec data that DMR needs is supplied by you, from your own radio. It isn’t in the project.
  • No stock firmware, radio dumps, calibration data or keys are distributed.

Two cautions for UK users:

  • Open25’s transmit limits were written with the US in mind. They allow P25 on US business, MURS and GMRS frequencies, none of which you can use here. On amateur bands in the UK, stick to 144–146 MHz and 430–440 MHz, and follow the band plan for digital voice.
  • The private “Next” edition adds P25 encryption. On amateur bands, the UK licence doesn’t allow you to encrypt messages to hide what they mean. That feature isn’t for us.

What the good projects have in common

Look across the three projects and the same habits keep coming up. They’re worth expecting from any custom firmware you’re thinking of using:

  • No manufacturer code is shared. You download the official file yourself, and the project publishes only its own changes.
  • Hashes are checked in and out. You get the exact build the author tested, or nothing. There are no “close enough” files.
  • It runs locally. The patchers work in your browser, and your firmware never goes to a server.
  • There’s a way back. That might be Icom’s A/B bootloader, Yaesu’s original files plus a reset, or Open25’s verified backup and recovery files.
  • The limits are honest. Each project lists what hasn’t been tested, what can go wrong, and what you’re responsible for.

What AI is good at, and what it isn’t

From the projects above, and from our own UV-K5 attempt:

It’s good at:

  • Grinding through hundreds of functions, matching them against known code and suggesting names.
  • Writing the tools: unpackers, compressors, Ghidra scripts, test suites. SQ6EMM’s repositories include tests that check the unpack and repack give back exactly the same bytes.
  • Spotting patterns, like a run of 0xFF padding giving away a scrambling key.
  • Reading datasheets and protocols and explaining them in plain English.

It’s not good at:

  • Knowing it’s wrong. An AI will happily give a function a confident, plausible and wrong name. That’s why our UV-K5 matches had a confidence score, and why anything below 0.75 was thrown away.
  • Understanding the radio. It can tell you a function writes to a register. It can’t tell you whether that register turns on the PA.
  • Testing. Only a real radio, a dummy load and a power meter tell you what a patch actually does. Every one of these projects says the same thing: test on a dummy load first.

Before you try any of this

  • It can void your warranty, and it can brick the radio. The Icom release rewrites the bootloader once. A power cut at that moment means recovery with a flash programmer. Use a stable supply.
  • Back up first: settings, memories, and the original firmware files.
  • Make your first transmissions into a dummy load, and check the power and, if you can, the harmonics. Our TinySA post shows how.
  • Your licence still applies. Some of these releases widen the frequencies the radio will transmit on, and the IC-705 release goes beyond the amateur bands. The firmware won’t stop you transmitting where you shouldn’t, so that’s up to you.
  • Don’t touch the factory service commands unless you have the test gear and know what you’re doing.
  • Respect copyright. Don’t post the decompiled code, and don’t share modified manufacturer firmware files. Share patches, the way these projects do.
Share :

Related Posts

Quansheng UV-K5: SSB on a Budget with Double Sideband

Quansheng UV-K5: SSB on a Budget with Double Sideband

The Quansheng UV-K5 is a dual-band 2m/70cm handheld that sells for about £25. On its own that makes it a decent cheap FM handie. What makes it special is the community firmware. Because the radio can be reflashed over the programming cable, people have rewritten its software to add a spectrum display, AM and SSB receive, wide frequency coverage, and transmit on “SSB”.

Read More
2 m CW on a £25 Handheld: The NR7Y Firmware for the UV-K5 and UV-K1

2 m CW on a £25 Handheld: The NR7Y Firmware for the UV-K5 and UV-K1

Last month we flashed the CEC firmware and sent Morse from a £25 Quansheng UV-K5. There’s a catch, though. CEC only runs on the original UV-K5, and most radios sold today are the newer UV-K5 v3 or UV-K1.

Read More
Quansheng UV-K5: Flashing the CEC Firmware for CW

Quansheng UV-K5: Flashing the CEC Firmware for CW

In the last UV-K5 post we used the IJV firmware to get the radio on SSB. This time it’s CW. The CEC firmware by phdlee adds proper Morse modes to the £25 Quansheng UV-K5: you can key it from the radio’s own buttons or plug in a straight key or paddle.

Read More