Skip to content

Display chip's alt name by raw GET_DESCRIPTOR; power cycle ends update mode; drawn wd image known (#692) - #760

Merged
Skeyelab merged 8 commits into
mainfrom
wd-alt-name
Nov 22, 2026
Merged

Skeyelab merged 8 commits into
mainfrom
wd-alt-name

Conversation

@Skeyelab

@Skeyelab Skeyelab commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Part of #692.

The display chip's backup was refused with "Its memory layout is neither LC6000 chip's". The cause is that IOUSBHost's __string(with:languageID:) fails on the display chip's ST ROM bootloader with -536870206 ("Failed to get descriptor"), so the alt name came back empty. cos found on the owner's unit, with reads only, that a raw GET_DESCRIPTOR of the full 255 bytes does answer, with 112 bytes: @Internal Flash /0x08000000/04*016Kg,01*064Kg,07*128Kg.

  • The fix (IOKitDFU.devices): the updater now reads the alt name with a raw GET_DESCRIPTOR first, sent to the interface's parent IOUSBHostDevice (bmRequestType 0x80, bRequest 6, wValue 0x03xx, wIndex 0x0409, wLength 255). If that fails it falls back to __string, as before; the top panel chip answers both.
    • It's a standard USB descriptor read, not a DFU request, and nothing is written to the chip.
    • It doesn't go through ReadOnlyTransport, which only carries DFU requests.
  • Kit, StringDescriptor: parses the raw bytes (bLength, type 3, UTF-16LE). It's tested with the display chip's 112-byte name, trailing bytes, and malformed input.
  • Wording: after the update-mode step, the updater now says a power cycle ends update mode. The owner saw this on 2026-11-22. The old line said that wasn't known, and named Denon's updater as the way back. The text moved to UpdateModeStep.sentText so it can be tested.
  • docs/LC6000-RECOVERY.md: step 1 now records the owner's 2026-11-22 sighting.

Tests

Built red first, one commit per slice:

  • StringDescriptorTests: 3 new
  • UpdateModeStepTests: 1 new

No test was green on arrival.

Mutation check: dropping the type-3 check fails the test; restored from a cp backup.

The adapter is IOKit, so it's checked by build only, and the FirmwareUpdater builds. The live check is the owner's backup run. The doc checks pass locally.

This sends the LC6000's bootloader a USB request this app hadn't sent it before. The owner ran it on 2026-11-22 and it worked, and cos OK'd it (see comment).

🤖 Generated with Claude Code

https://claude.ai/code/session_01VCgWWtMsRLyAoGPQD9M6xN

Skeyelab and others added 4 commits November 22, 2026 17:52
…bootloader needs it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCgWWtMsRLyAoGPQD9M6xN
… mode (2026-11-22)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCgWWtMsRLyAoGPQD9M6xN
@Skeyelab Skeyelab added this to the Firmware updater app milestone Nov 22, 2026
Skeyelab and others added 3 commits November 22, 2026 17:54
…gs why a read fails

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCgWWtMsRLyAoGPQD9M6xN
…ine for the log

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCgWWtMsRLyAoGPQD9M6xN
…, not unknown (#692)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCgWWtMsRLyAoGPQD9M6xN
@Skeyelab Skeyelab changed the title [held] Display chip's alt name by raw GET_DESCRIPTOR; power cycle ends update mode (#692) Display chip's alt name by raw GET_DESCRIPTOR; power cycle ends update mode; drawn wd image known (#692) Nov 22, 2026
@Skeyelab

Copy link
Copy Markdown
Member Author

Owner run 2026-11-22 (cos): 0aa5970 works on the display chip. The log says "raw read bLength 166, type 3, 112 bytes, read": the bootloader reports a bigger bLength than it sends, so the lenient read is the fix. The backup was read twice and equal. cos OK'd it, so it's no longer held.

Added in the last commit: the catalog's known.wd_ours lists our drawn-display wd image by its trailer CRC 0x33A7BEBB, labelled "00.50 with slot 16 and DeckBridge's drawn display (block A 07da7ec9)". The unit check and the update flow now show it as ours and up to date, not unknown. Tests were red first: KnownNumbersTests 2, PatchStateTests 1. Mutation check: dropping the ours check in PatchedImage.state fails the test.

@Skeyelab
Skeyelab added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit b2b6327 Nov 22, 2026
7 checks passed
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