Skip to content

7. The GSPM config container

Now validated against four independent samples at four different base addresses: the One's safe-mode config (0x002000), the One's user config (0x040000), the 700's Region_3 safe-mode config (0x020000), and the 600's user config (0x030000).

0x00  char[4]  "GSPM"        magic (equals concordance's arch-12/14 cookie 0x4D505347)
0x04  u32      end_addr      absolute flash address of the trailing "PTYY" marker
0x08  u32      format        0x00001600 on arch 12, 0x00001400 on arch 14
0x0B  item[N]  section_table { u8 spare; u24 address }[N]; 0 means section absent
      char[4]  "LWJL"        first section magic
      u8       count
               {u8 event_code; u16 index; u8 flags}[count]
...
end-6 u16      checksum
end-4 char[4]  "PTYY"        end marker (matches arch 12/14 `end_vector = 4`)

Pointers are absolute flash addresses, not relative, so these blobs are position dependent. end_addr resolved exactly onto PTYY in all four samples.

The pointer table length is architecture dependent

  • arch 12: N = 22, LWJL at 0x63
  • arch 14: N = 20, LWJL at 0x5B

Nothing in the header states N. A parser should locate the LWJL magic and derive N = (offset_of_LWJL - 0x0B) / 4. That formula checks out on both architectures.

Corrected. This section originally read N = 21 and N = 19, with the table at 0x0C and three bytes of padding before the marker, and the formula carried a - 3 for that padding. Section 20 has the correction: the table starts at 0x0B, the three bytes are the last section's address, and N is one higher everywhere. Nothing else in this section changed, because the addresses the old reading produced were all correct.

The format field at 0x08 is a version: 0x1600 on arch 12 matches <REGION ID="5">1.6</REGION> in the One's firmware Data.xml, and 0x1400 on arch 14 matches its own config generation. Read as major/minor in the upper and lower byte.

Observed pointer values:

slot One safe cfg @0x2000 One user cfg @0x40000 600 user cfg @0x30000
0 0x0029AD 0x076197 0x063702
1-6 0x0029B4..0x002A50 0x0762AE..0x076740 0x063D26..0x064007
7 0x004107 0x085E44 0x072CDB
8 NULL NULL 0x072D0A
9-18 0x00410C..0x0042BA 0x085E7C..0x08C076 0x0734B5..0x07A33B
19 0x0042BC 0x08C078 NULL
20-21 NULL, NULL NULL, NULL n/a (only 20 slots)

In the One's 1.6 MB user config all 22 pointers land inside the first 310 KiB; the remaining 1.36 MB is reached indirectly, presumably the IR code database and the touchscreen bitmaps.

The 525 container is inside this one

Corrected twice, in opposite directions. Read section 15 for the current statement before using anything here. The first version of this document claimed that arch 12 and 14 have no 0xFEED/0xBEEF framing and therefore need a parser unrelated to the 525's. That was wrong, and wrong in the direction that mattered: it told people not to reuse work that is in fact directly reusable.

The correction below then overshot, claiming a frame per section. There is exactly one frame per container, at section slot 0, on all thirteen samples. The rest of this subsection is the overshoot as written, kept because how it happened is the instructive part.

The two are nested, not alternatives. GSPM is an outer layer carrying the pointer table. Each section that table points at begins with 0xFEED and ends with 0xBEEF, which is the container discussion #1 documents for the 525 class.

Section slot 0 of the Harmony One user config, at blob offset 0x036197:

036197  ed fe 15 01 00  a7 08 00 00 00 00 00  52 6f 6f 74     ....... .......Root
        ^^^^^ ^^^^^                                           FEED, u16 length 0x0115
...
0362ac  ef be                                                 BEEF

So the layering is:

GSPM header                    arch 12/14 only, absolute pointer table
  section 0   FEED ... BEEF    the 525's container, one frame per section
  section 1   FEED ... BEEF
  ...
u16 checksum + "PTYY"

How the error happened, since it is instructive: the check performed was a count of 0xFEED occurrences across the whole 1.6 MB config, which came to 47. That was compared against the roughly 25 hits two random bytes would produce in that much data, judged to be the same order of magnitude, and dismissed as coincidence. The count was never correlated with the section pointer addresses, which is where every one of those hits actually sits. Counting an artefact is not the same as locating it.

Architecture codenames

From the NOTINTENDED comments inside Region_2.EZUpgrade:

arch codename arch codename
2 745 9 Mocha
3 768 10 Cappuccino
6 112 11 Cognac
7 659 12 Gin
8 Espresso

Only the One package was read when this table was written, so architecture 14, Molson is missing from it: the 700 package refuses that one too, in the same words. reference/models.md carries the full list.

SOFTWARETYPE: 0 = application, 1 = test, 2 = minimal, 3 = bootloader, 4 = safe mode.

This used to read "0 = normal, 2 = Test mode, 3 = Boot mode", and the 2 was a misreading: the entry commented "Test mode" carries a 1. The two values a firmware package accepts are 0 and 4, under one comment reading "must be in application mode or Safe mode", and section 87 separates them by reading the same accessor out of each remote's two images.


Section 6 | the archive | section 8. Section 7 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.