Skip to content

Add Nokia G-010S-A Web Serial console helper - #518

Merged
simonebortolin merged 2 commits into
hack-gpon:mainfrom
shteudguy:fix/nokia-uart-web-console
Nov 7, 2026
Merged

simonebortolin merged 2 commits into
hack-gpon:mainfrom
shteudguy:fix/nokia-uart-web-console

Conversation

@shteudguy

Copy link
Copy Markdown
Contributor

Why

The G-010S-A can reach its FALCON console without the U-Boot version banner expected by the Huawei web-root flow. With the UART console disabled (for example, asc0=3), only the early ROM messages may appear. Those messages do not establish that bootloader commands can be executed.

The documented Nokia boot transcript shows the bannerless case. A dedicated Nokia action gives users the correct console setup procedure and an actionable result for ROM-only output.

Changes

  • Add a Configure Nokia UART helper to the G-010S-A page.
  • Recognize the actual FALCON => prompt, including split chunks, and verify bidirectional communication with a fresh echo challenge.
  • Bound startup interruption and I/O; support cancellation and recovery from nonfatal FTDI stream errors.
  • Read the original asc0, bootdelay and preboot, offer a local JSON backup, and show the proposed changes before confirmation.
  • Recheck the console and settings after confirmation, preserve a positive boot delay, set asc0=0, and clear only recognized Nokia preboot values.
  • Verify changes before saveenv, require its success acknowledgement, and report interrupted saves as an uncertain persisted state.
  • Document SSH enablement for ROM-only cases and link to the Nokia instructions from the Huawei page.
  • Add dependency-free Web Serial transcript tests and run them in the shared build workflow.

The helper leaves the module at U-Boot after completion. It configures UART access; it does not install firmware or change Linux login credentials. The existing Huawei, FS and YMODEM implementation files are unchanged.

Validation

  • npm test: 28 passed, no failed or skipped tests (Node 24.22.1).
  • The same tests under the CI's Node 22 line (22.23.4): 28 passed.
  • npm run build: passed, including VitePress client/server bundles, page rendering and image optimization.
  • git diff --check: passed.
  • No dependency or lockfile changes.

Tests cover bannerless/split prompts, ROM-only and continuous-noise timeouts, nonce verification, confirmation/abort handling, settings changes during confirmation, invalid environment reads, failed readback, failed/interrupted saves, restarts during commands, disconnects, FTDI BREAK recovery and stalled writes.

Draft for review: physical G-010S-A validation is still outstanding. The tests use simulated Web Serial streams; no device was flashed or configured while preparing this change.

Comment thread .vitepress/theme/lib/nokiaSerial.js Resolved
Comment thread ont/ont-huawei-ma5671a-root-web.md Resolved
Comment thread tests/nokiaSerial.test.js Resolved
@shteudguy
shteudguy marked this pull request as ready for review November 7, 2026 17:18
@simonebortolin
simonebortolin merged commit 6a890a2 into hack-gpon:main Nov 7, 2026
2 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.

2 participants