Skip to content

114. The first arch 8 firmware, and an arch 8 safe mode config inside it

Contributed on 10 August 2026 through harmony-decompiler discussion 17, two images dumped with concordance -b -f. That command works on arch 8 precisely where it fails on arch 12 and arch 14, and the reason is in reference/concordance-notes.md: arch 8 gives firmware_base its own region at 0x010000 with config_base - firmware_base exactly FIRMWARE_MAX_SIZE, so the flat 64 KiB read lands on the firmware region and nothing else. Asking a contributor for it is therefore the route to an arch 8 image, which is what happened.

Two images of one build, differing in the skin and nothing else

65536 bytes each, and they differ at exactly two offsets, 0x1C4A and 0xA63C, 0x0F against 0x11: skins 15 and 17, an 880 and an 885. So one firmware build serves both models and states which one it is twice, in a constant table and in its USB descriptor.

The stored checksum is identical in both, and that is arithmetic rather than luck. The image checksum is a u16 XOR of even offset bytes into one seed and odd offset bytes into another, and the two skin bytes sit at the same parity, so 0x0F ^ 0x11 cancels between them. A model number that changes without changing the checksum is a rail a writer would want to know about, and it is the same weakness the container's trailer has, section 41.

The load address, with the runner up reported

loadaddr.find_base gives 0x010000: 985 of 995 branch targets in range and 979 landing on an instruction boundary, against 602 for the runner up at 0x00D000 and 552 for the one after it. It agrees with concordance's firmware_base for arch 8, which is the calibration this derivation asks for: a value already believed on other grounds.

The checksum verifies, and the shorter lengths that also verify are an artefact

Same algorithm and the same two seeds as arch 12 and arch 14, over the whole 65536 bytes.

length verifies
0x08000 no
0x0C000 no
0x0F000 no
0x0FB90 yes
0x0FF00 yes
0x0FFF0 yes
0x0FFFE no
0x10000 yes

The last non 0xFF byte is at 0x0FB88, so everything above 0x0FB90 is padding, and a whole number of 0xFFFF words XORs to nothing. Each length in the table that verifies drops an even number of padding words; 0x0FFFE drops one, which is odd, and it fails. So the three short passes say nothing about where the image ends, and the one failure is what demonstrates that. Worth stating because a checksum that verifies over four different lengths looks like a weak checksum and is actually a strong one meeting a run of identical bytes.

The header layout is not arch 12's, and the parser does not know that

offset arch 12 and arch 14 arch 8
0 u16 checksum u16 checksum
2 0xFFFF 0xFF00
4 u16 size field the HG magic
6 family, version BCD 0x0000
8 the HG magic 0xC000
10 a GOTO to the entry point 0x1020

Which is concordance's firmware_4847_offset, 4 for arch 8 against 8 for the others, confirmed from the bytes rather than taken from the table. firmware.parse_header reads it as arch 12's anyway and answers without complaining: it reports a size field of 18248, which is the two magic bytes read as a u16, and recover_size then returns 83792 for a 64 KiB image. verify_checksum is unaffected, since that field is at offset 0 on both. The arch 9 image is worse and in a way that is at least visible: it has no image header at all at offset 0, because that dump starts at the bootloader's reset vector, so the version reads 0xFF and the magic is absent. This is recorded as a defect and not fixed here, because only two of the arch 8 header's fields are read, and a parser that guesses the rest would be the same mistake in a new place. See "Open".

The version block's five constants, and a new value for the one field with no reading

The five consecutive RETLW instructions section 57 identified are at 0x11C46, in the same order: field 0, field 4's low nibble, field 5, field 6, field 4's high nibble.

880 885 what it is
field 0 0x44 0x44 firmware version 4.4, BCD
field 4 low 0x00 0x00 software type 0
field 5 0x0F 0x11 skin, 15 and 17
field 6 0x08 0x08 no reading, see below
field 4 high 0x08 0x08 architecture 8

The order is not assumed, it is checked by where the skin lands: field 5 is the only one of the five that differs between the images, and it differs by exactly the two skins the configs state. Three of the other four agree with the XML header too, which gives protocol 8 and software type 0.

Field 6 is the one GET_VERSION field with no reading at all, sections 59 and 87, and this is a fourth value for it:

architecture 8 9 12 14
field 6 0x08 0x09 0x0C 0x0C

So field 6 is the architecture on three architectures out of four and is not on the fourth, which rules out "the architecture" as the reading, since arch 14 would then be 0x0E, and rules out the constant being arbitrary per build. The bcdDevice high byte from section 113 goes 0x08, 0x09, 0x10, 0x10 over the same four, which is the same shape and a different value in the pair, so the two are not copies of one variable.

"A generation number that stopped advancing at 12" was the guess offered here, and section 116 has the better reading a few hours later: field 6 names a platform, and arch 12 and arch 14 are one platform under it. Two more images settle the shape, taking the population from four to eleven, and the point is that four images could not distinguish "equals the architecture, except once" from "equals the platform, always". Nothing here settles what the number is for and no code depends on it.

The USB descriptor block is at 0x1A630, decoded in section 113.

An arch 8 safe mode container, inside the firmware region

gspm.parse finds a complete container in the image, at blob offset 0xE000, which is flash 0x01E000: the last 8 KiB of the firmware region, immediately below config_base at 0x020000.

value
cookie and marker TPTP / WLWL / DKDK, the arch 8 family
format 0x1500
pointer slots 21
length 7049 bytes
built 3 April 2005, 00:55:31
checks all eleven pass, trailer checksum included

This is the first arch 8 safe mode container anywhere in this project, and the third architecture to have one after arch 12 and arch 9. It is byte identical in both images, which follows from the two differing bytes both sitting below 0xE000. Its timestamp makes it the oldest artefact in the corpus by two years.

One thing in it disagrees with every user config: its base slot 1 is two bytes of zero, where an arch 8 user config carries the seven byte record 08 08 <skin> 0d 00 00 00. So the container that ships with the firmware does not state its own architecture at all. Section 79 met the short form on arch 9, whose safe mode container is three bytes, 09 09 12, and section 78 settled that the extent is simply the gap to the next pointer like every other section's; here the gap is two.

Those three bytes are worth a line of their own, because the arch 9 safe mode container names a skin its remote is not: 0x12 is 18, and 18 is a Harmony 520 where the remote it was read off is a 525, which is 22. Both are the skin Logitech's table calls Mocha Decaf. The arch 12 safe mode container names 54, which is its own model exactly. So one safe mode container is per model, one is per skin family, and arch 8's names nothing, from three architectures. Nothing here depends on it and a writer must not read a model out of this field.

What is missing from the image, and how to get it

The reset vector is not in it. The dump starts at 0x010000 and a PIC18 begins at 0x000000, so the whole region below the firmware, which holds the bootloader and the safe mode code that would recover a bricked remote, is absent. concordance -s reads exactly that: read_safemode_from_remote takes FIRMWARE_MAX_SIZE from ri.arch->flash_base, and arch 8's flash_base is 0x000000. It is gated on is_fw_dump_supported(), which refuses only Z remotes, so it will run.

That is the one thing worth asking the contributor for, and it is worth asking before anything else about arch 8: everything above rests on an image whose entry point nobody has seen.


Section 113 | the archive | section 115. Section 114 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.