Skip to content

297. The bench Harmony 700 was taken from firmware 2.5 to 2.8 by staging Logitech's image and letting it install itself

Danny's decision of 29 September 2026, decision 18: the one route by which this project writes flash outside a configuration region, for this purpose on this unit. What was written is Logitech's own 2.8 application image, unmodified, into the region of external flash from which the remote's safe mode image installs an application; the processor's own flash was written by the remote.

The evidence that 2.8 suits this unit, gathered first

  • The flash part. Section 295 found the 2.8 package stating 0x14:0x1C in its upgrade header and 0x15:0x1C in its Data.xml, and this unit reports 15:1C. Section 108 had already read, on the 700 2.8 image, the table of flash parts that build accepts: capacity code 0x15 with EON's 0x1C is on it, sized 2 MiB. So the build accepts this part, and the header's 0x14 is the package's target, not a limit of the firmware. Section 108 also says what a part the build cannot size would cost: the size stays zero and only the journal is disabled, so this is about the journal and not about whether the remote runs.
  • The sequence. Logitech's firmwareupgrade.xml for skin 66: WriteRamStart, the status byte to 0, read back; EraseFlash over the image's length in 64 KiB blocks from region 2, 0x000000; WriteFlash; WriteRamComplete, the status byte to 2, read back; Reset.
  • The status byte in the running application. The template sends it to a remote in either mode, and section 295 read only the safe mode image's handler. On the 2.5 application the WRITE_MISC selector chain is at 0x0C314, the same address as on the 650's 0.2 build, and sends 6 to 0x0C364, which puts the packet's sixteen bit address, low byte in 0xD5E and high byte in 0xD5F, into 0x103 and 0x102 and calls 0x19868. That routine stores 0x103 into data memory 0x100 when 0x102 is 0. In the terms of section 295 and Logitech's template, byte 3 of A3 06 00 02 is the index, 0, and byte 4 the value, 2, so it sets the same byte to 2 that the safe mode image reads, and the read back before the restart is what would have caught it otherwise. The 2.8 application's arm, at 0x0C400, has the same shape and calls 0x1AB96; that routine was not read here, and section 298 reads it.

The run, twice

reinstall-firmware.ts --unit h700 --image <2.8 image> --backup <staging read> --commit, behind HARMONY_ENABLE_WRITES, HARMONY_FIRMWARE_REINSTALL and a new door, HARMONY_FIRMWARE_STAGE. The backup is section 296's staging read taken after the sync, which the script requires to equal the remote's region before it erases anything; the second run went through the erased region arm instead, described next. That check is the script's, not the rail's: stageFirmware takes no backup.

The first run stopped past its erase. It set the status byte to 0, erased both staging blocks, and then refused to build its first write packet, because a write's count is sixteen bits and it had passed the whole 76672 byte image. A read showed the region blank and the embedded configuration above it unchanged; the remote kept running 2.5, and with the status byte 0 nothing would install. The write now goes in 32 KiB transfers, and the script accepts an erased region in place of an equal one only when the backup itself holds an image that verifies. That arm was written for this one failed run and it accepts any verifying backup, the image being staged included, so it proves a way back exists on disk and not that it is this unit's. 32 KiB is not Logitech's transfer: their skin 66 template sends 63 packets of 400, 25200 bytes, and the configuration writer uses 3150. It worked once and is recorded as a deviation.

The second run completed: staged, read back identical over the whole 128 KiB, status byte 2 read back, restarted, and the remote came back reporting firmware 2.8, software type 0. Both runs sent the restart to the running 2.5 application, whose escape handler was not read then: the rail checks the escape list per architecture, which section 282 read on the 0.2 builds. It restarted the remote, and section 298 reads the handler, the same code as 2.8's at other addresses.

What the remote holds afterwards

area against the reads before the run
internal 0x9000 onward, the application byte for byte the 2.8 image, 76672 bytes, verifying
internal 0x0000 to 0x9000, bootloader and safe mode unchanged
internal flash above the new application, the settings store and the identity block included unchanged
external 0x000000 to 0x020000 the 2.8 image, then erased
external 0x020000, the embedded configuration unchanged, and still byte for byte the 2.8 package's region 3
the user configuration from 0x030000 unchanged, measured on the lab reads and not asserted by a test here

The install copied exactly the image and nothing else: everything from its end, 0x01BB80, upward reads identical before and after, the settings store, the identity block, a few short programmed runs between 0x01F580 and 0x01F737 and the configuration words at the top of the part included. The 2.5 build's last programmed byte was at 0x01A757 and the 2.8 image's is at 0x01BB5D, its final 34 bytes being 0xFF, so the bytes that changed run from 0x9000 to 0x01BB5D.

Off the cable the remote comes up normally on 2.8, on Danny's word after trying it; that is an observation of the screen and a few keys and not a test of every feature the build carries.

Scope, decision 16

One Harmony 700, from 2.5 to 2.8. The staging path is the safe mode image's install routine read on the 700's 2.3 safe mode image, section 295, and the application's status byte handler on its 2.5 build. The rail is wider than that reading, as section 295's is: it admits any arch 14 unit in safe mode, so the 600 and the 650, whose safe mode status byte handlers are unread, and an application build by its version string alone, STATUS_BYTE_READ_ON_APPLICATION being ['2.5'] per architecture. A remote running 2.8 could not be staged from application mode until that build's 0x1AB96 was read, so there was no permitted way back from 2.8 when this section was written. Section 298 reads it, and the rail admits 2.8 now. Whether 2.8 behaves correctly on this unit in use is Danny's observation to make, not this section's.

Sources checked before the work

Logitech's firmwareupgrade.xml for skin 66 and the 2.8 package's two statements of its target; section 108's flash part table on the 2.8 image; the 2.5 application image read off this unit, section 295, for the status byte handler.

Falsification

An application area after the install that differs from the image, a change anywhere else in either flash, or a remote that did not report 2.8 afterwards. None happened.

Where it lands

  • packages/usb/src/rails.ts: STAGING_REGION, FIRMWARE_STAGE, assertStagingAllowed, and STATUS_BYTE_READ_ON_APPLICATION, which the reinstall rail consults too.
  • packages/usb/src/remote.ts: stageFirmware, and the erase and write split into unchecked halves that only a method that has passed a rail calls. They are runtime private, #, where the class's older helpers are TypeScript private only, which a cast reaches, the shape of section 224.
  • packages/usb/bin/reinstall-firmware.ts: --image and --backup.
  • packages/usb/test/firmware.test.ts: the staging rail's refusals, the application builds, the blank region, the state after the install in internal flash and the staging region, and stageFirmware itself against a fake transport, which pins the transfer split the first run lacked.
  • tests/test_harmony_700_status_byte.py: the 2.5 application's selector 6 arm and 0x19868, decoded.
  • docs/decisions.md decision 18, CLAUDE.md, the recovering-a-remote skill and todo.md.

Section 296 | the archive | section 298. Section 297 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.