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:0x1Cin its upgrade header and0x15:0x1Cin itsData.xml, and this unit reports15:1C. Section 108 had already read, on the 700 2.8 image, the table of flash parts that build accepts: capacity code0x15with EON's0x1Cis on it, sized 2 MiB. So the build accepts this part, and the header's0x14is 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.xmlfor skin 66:WriteRamStart, the status byte to 0, read back;EraseFlashover 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_MISCselector chain is at0x0C314, the same address as on the 650's 0.2 build, and sends 6 to0x0C364, which puts the packet's sixteen bit address, low byte in0xD5Eand high byte in0xD5F, into0x103and0x102and calls0x19868. That routine stores0x103into data memory0x100when0x102is 0. In the terms of section 295 and Logitech's template, byte 3 ofA3 06 00 02is 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, at0x0C400, has the same shape and calls0x1AB96; 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, andSTATUS_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 TypeScriptprivateonly, which a cast reaches, the shape of section 224.packages/usb/bin/reinstall-firmware.ts:--imageand--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, andstageFirmwareitself 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 and0x19868, decoded.docs/decisions.mddecision 18,CLAUDE.md, therecovering-a-remoteskill andtodo.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.