Skip to content

395. A Harmony One container's frame is laid out from its content by the same linker as arch 14's

Asked for by todo-compile-one.md 6.1. Section 318's frame refused everything but arch 14. It lays out the Harmony One now, what differs held as data in FRAME_ARCHITECTURES rather than in a second linker: the slot count from INSERTED_SLOTS, the format word from that count, 0x1400 and 0x1600, the flash base 0x040000, and which inserted raw slot holds a section. ContainerLayout.inserted carries such a section by raw slot, so sections keeps meaning base slots on both architectures.

The measurement is section 318's: takeApart zeroes every address field the census knows and drops the header, the table, base slots 1 and 3 and the trailer, and layOutContainer has to put every byte back. It does on all nineteen distinct configurations Logitech compiled for the One that the lab holds, twenty fixtures, and on all fifteen distinct configurations this project wrote to the spare and read back. The growth control holds: 54 bytes added to base slot 4 of calibration_one give relocate's bytes exactly, every reader agreeing and the emitter's round trip closing. The arch 14 compiles still rebuild.

What the One's frame holds that arch 14's does not. Twenty two slots: raw slot 8 NULL on 36 of 36 containers, and raw slot 18 two zero bytes on 36 of 36 with nothing parked in front of it. Base slot 17 is the touch hit map's table, one piece on 36 of 36, and names the bank nowhere, section 62; the picture bank still starts on the byte after that table on 35 of 35 containers that have pictures. So the four regions are arch 14's, with a table of its own length where arch 14 has two bytes. Logitech parks the same five rows in front of the same tables on all nineteen One compiles as on the thirteen arch 14 ones; our writes park infrared blocks in front of base slot 5 on 12 of 15 and base slot 9 lists in front of base slot 9 on 9 of 15, as the Harmony 650's do.

Two containers are not rebuilt, and both are accounted for. The safe mode configuration, stamped 2007, carries 0x0C at its architecture record's byte 3 where every configuration from 2009 on carries 0x0D, section 182; laid out again it differs in that byte and in the trailer checksum byte of the same parity and nowhere else. one_spare_mixed_region was read part way through a write and fails its own trailer checksum, which the frame does not check: what refuses it is that the erased block leaves the key table in more than one piece, and the test asserts that refusal.

Corrected per review. This section said seventeen compiles, 34 and 33 containers, and that the mixed read was refused for its checksum. phase7_before and phase7_after, Logitech compiles of section 174, were left out of the population; both rebuild byte for byte, and the counts above include them.

Scope, decision 16

Arch 12 (Harmony One) and arch 14 (Harmony 600, 650 and 700); arch 8, 9 and 10 are refused, not checked. Neither firmware nor client was opened: whether the One demands the bank behind the touch table is unread, as it is on arch 14, section 328. placer.ts, the wiring and the screen builders still take arch 14 alone. Since superseded in part: the wiring is the One's too since section 410 and the placer since section 426, which carries raw slot 18 through loosen and placePieces and places all nineteen compiles by section 328's rule.

Falsification

A Harmony One configuration whose raw slot 18 is not two zero bytes, or whose picture bank does not start on the byte after base slot 17's table.

Where it lands

  • packages/codec/src/frame.ts: FRAME_ARCHITECTURES, formatWord, ContainerLayout.inserted.
  • packages/codec/test/frame.test.ts: the One's compiles, our writes, the two exceptions and the growth control.

Section 394 | the archive | section 396. Section 395 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.