Skip to content

Widen SERIAL_PATTERN/UOID_PATTERN to accept revision digit 5 (not just 3/4) - #23

Open
Sixth49 wants to merge 1 commit into
OpenCentauri:mainfrom
Sixth49:fix/uoid-serial-revision-5
Open

Sixth49 wants to merge 1 commit into
OpenCentauri:mainfrom
Sixth49:fix/uoid-serial-revision-5

Conversation

@Sixth49

@Sixth49 Sixth49 commented Sep 23, 2026 •

Copy link
Copy Markdown

Fixes the "HWCONFIG UOID field does not have the expected 94-byte ASCII
structure" / "Could not recover exactly one unambiguous CRC-valid
serial.cfg payload (found 0)" errors reported in #21

Both SERIAL_PATTERN and UOID_PATTERN hard-code the digit right after
"12PSSSS" to [34]. At least two EF-S7-V1.0.30B units (one dead, one
still working — see issue comments) produce a live, well-formed
serial.cfg and UOID whose digit is "5" instead.

I confirmed on my own three-way-verified flash dump that:

  • the JFFS2 scanner finds this serial.cfg as live-current (not a
    fallback/ambiguous match) once the pattern accepts "5",
  • every other invariant segment (boot/kernel/root/system/hwconfig)
    already matched the reference firmware exactly, before this change,
  • the rebuilt recovery image itself passes cc2camera's own strict
    post-build validation end to end.

This patch widens the allowed digit from [34] to [3-9] rather than
adding "5" specifically, on the assumption this is a hardware/product
revision marker that may take other values on other batches — happy
to narrow it to [345] if maintainers prefer being conservative.

No other code path branches on this digit's value (checked with
grep across image.py), so this is a pure allowlist widening with no
behavioural side effects for units that already validated.

Both patterns hard-code the digit right after "12PSSSS" to [34].
At least two EF-S7-V1.0.30B units produce a live, well-formed
serial.cfg/UOID with digit "5" instead. Confirmed on a three-way
verified flash dump that widening this to [3-9] lets build-image
find the serial.cfg as live-current and the rebuilt image passes
cc2camera's own strict validation end to end. See issue #<номер>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant