Skip to content

Give a WisMesh Tag on its stock RAK4631 bootloader the Tag's own build over USB - #183

Open
garthvh wants to merge 1 commit into
masterfrom
fix/wismesh-tag-bootloader-override
Open

garthvh wants to merge 1 commit into
masterfrom
fix/wismesh-tag-bootloader-override

Conversation

@garthvh

@garthvh garthvh commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Summary

A WisMesh Tag ships with the RAK4631 bootloader, so its drive reports Board-ID WisBlock-RAK4631-Board. The USB bootloader upgrade then picks the RAK4631 build for it, while the Bluetooth upgrade (otafixBleDfuByTarget.rak_wismeshtag) installs the Tag's own build. This adds a targetOverrides entry under WisBlock-RAK4631-Board for rak_wismeshtag, the same way the L1 Pro 1W is handled under TRACKER L1, so both paths put the Tag's build on a Tag.

What changed

  • data/maintenanceUf2.json: WisBlock-RAK4631-Board.targetOverrides.rak_wismeshtag → wismesh_tag, sha256 b6312ac6…268d, the same digest as the existing WisMesh-Tag row. Checked against update-wismesh_tag_bootloader-2.6.2_nosd.uf2 from the 2.6.2 release.
  • Both bootloader builds use USB ID 0x239A:0x0029 (src/boards/wiscore_rak4631_board/board.h and src/boards/wismesh_tag/board.h at 2.6.2), so a stock RAK4631 bootloader accepts the Tag's update file. The two builds differ only in LED order, the DFU button pin and the RAK4631's OLED/3V3_S code.

Testing

  • scripts/validate-maintenance-uf2.ts: OK (23 boards, 18 supported targets). tools/validate.ts: OK.
  • vitest run fails locally before and after this change on a missing generated file (worker/src/generated/documents.js), not on the manifest.

Related: meshtastic/Meshtastic-Apple#3163 (the same case for the Bluetooth upgrade).

Summary by CodeRabbit

  • Bug Fixes
    • Added firmware update targeting for the RAK WisMesh Tag board.

@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The maintenance UF2 manifest adds a targetOverrides mapping for rak_wismeshtag to the WisBlock-RAK4631-Board entry. The existing RAK4631 slug and hash remain unchanged.

Changes: UF2 target override

Layer / File(s) Summary
Add the Tag target override
data/maintenanceUf2.json
The WisBlock-RAK4631-Board entry adds a mapping from rak_wismeshtag to the wismesh_tag slug and its SHA-256 value. Its existing slug and hash are unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related PRs

  • meshtastic/api#170: Introduces the targetOverrides shape and validation rules used by this entry.
  • meshtastic/api#172: Adds the BLE target mapping for rak_wismeshtag, which uses the same target and package slug.

Suggested reviewers: jamesarich

Merge Risk: Minimal · up to 5b12c

This adds a manifest override so USB bootloader upgrades can select the WisMesh Tag build. The default RAK4631 image is unchanged. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names a real part of the change: a WisMesh Tag board receives its own build when it reports the stock RAK4631 bootloader Board-ID over USB. The diff adds a targetOverrides entry under WisBlo…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names a real part of the change: a WisMesh Tag board receives its own build when it reports the stock RAK4631 bootloader Board-ID over USB. The diff adds a targetOverrides entry under WisBlock-RAK4631-Board for rak_wismeshtag in data/maintenanceUf2.json, which matches that aim. The title is long (79 characters, 15 words) and uses some noise, but it still identifies the primary change.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the UF2 map,
A Tag now finds its slug and hash.
The old RAK path stays as before,
One override joins the manifest store.
I nibble greens and hop once more.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3129199e-c976-4581-b716-f50b3755a41f
Commits

Reviewing files that changed from the base of the PR and between 2bbc42d and 5b12c04.

Files selected for processing: 1

  • data/maintenanceUf2.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

This branch has not been deployed

No deployments
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