Skip to content

4. Firmware image header

Identical across all three images:

0x00  u16   checksum
0x02  ff ff
0x04  u24   image_size - 8              i.e. byte count from offset 8 to end, section 295
0x06        its top byte: 0x00 on these arch 12 images and 0x01 on the arch 14 ones, by size alone
0x07  u8    firmware version, BCD
0x08  48 47  the magic that concordance's _fix_magic_bytes() writes
0x0A  GOTO <entry point>
0x0E  RETURN

Observed:

Image bytes 0x00-0x09 version byte size field actual size
One 3.4 cd d8 ff ff 8a ea 00 34 48 47 0x34 = 3.4 0xEA8A 0xEA92
600 0.2 2b 6a ff ff b8 12 01 02 48 47 0x02 = 0.2 0x12B8 0x112C0
700 2.8 a1 d6 ff ff 78 2b 01 28 48 47 0x28 = 2.8 0x2B78 0x12B80

The size field matches (size - 8) & 0xFFFF exactly on both untruncated images. Applied to the 600, it yields 0x112C0 = 70336 bytes, and 0x112C0 is the only candidate consistent with the observed maximum branch target of 0x01A292. So concordance's 64 KiB read on the 600 is missing the last 4800 bytes, including the entry point at 0x01A26E.

Checksum

Seeds suma = 0x21, sumb = 0x43; XOR the even bytes into suma and the odd bytes into sumb over the range [4 .. end_of_image]. This reproduces bytes 0 and 1 exactly on the One image.

Note that this differs from _fix_magic_bytes(), which starts the sum at firmware_4847_offset and always runs to FIRMWARE_MAX_SIZE. The correct model is two independent constants: the 0x48 0x47 magic sits at offset 8, the checksum range starts at offset 4, and the range ends at the actual image size, not at 64 KiB.


Section 3 | the archive | section 5. Section 4 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.