Repository navigation
Open
3 / 43 of 4 issues completedOpen
3 / 43 of 4 issues completed
Copy link
Description
Summary
Meta issue for the RP2040 deploy transport strategy change proposed in #1161 (analysis: #1161 (comment)).
fbuild's current primary RP2040 transport is the Windows mass-storage path — 1200-baud touch, wait for the RPI-RP2 volume, write NEW.UF2 through the filesystem/storage stack (crates/fbuild-deploy/src/rp2040.rs:1377-1448 at 16bb9ffa). Picotool/PICOBOOT is reached only as a fallback. The mass-storage path is exactly the surface implicated in the #1161 reproduction (write stalls, Disk 51/153 events).
The ecosystem comparison shows the direct PICOBOOT route is the proven default elsewhere:
| Toolchain | Default transport | Notes |
|---|---|---|
PlatformIO (platform-raspberrypi) |
picotool via rp2040load (direct PICOBOOT) |
1200-baud touch gated on board config |
Arduino rp2040tools |
picotool info → load → reboot |
|
| Arduino-pico core | UF2 volume copy (default), picotool load -f -x as first-class option |
|
| fbuild today | NEW.UF2 volume copy |
picotool fallback lacks -f, no probe, 30s hard timeout |
Sub-issues
- feat(rp2040): make PICOBOOT/picotool a first-class transport and the primary automatic deploy path #1162 — feat(rp2040): make PICOBOOT/picotool a first-class transport and the primary automatic deploy path
- feat(rp2040,windows): preflight PICOBOOT WinUSB driver binding and classify code-28 failures #1163 — feat(rp2040,windows): preflight PICOBOOT WinUSB driver binding and classify code-28 failures
- fix(rp2040): watchdog-abandoned UF2 write worker leaks the NEW.UF2 handle inside the daemon #1164 — fix(rp2040): watchdog-abandoned UF2 write worker leaks the
NEW.UF2handle inside the daemon - test(rp2040): controlled PICOBOOT-only hardware validation with the #1161 pinned artifact #1165 — test(rp2040): controlled PICOBOOT-only hardware validation with the investigate(rp2040): readable BOOTSEL volume stalls on first write; make watchdog cleanup handle-safe #1161 pinned artifact
Suggested order
- fix(rp2040): watchdog-abandoned UF2 write worker leaks the NEW.UF2 handle inside the daemon #1164 (watchdog handle leak) — independent correctness fix; stands regardless of the transport flip because mass-storage remains the fallback.
- feat(rp2040,windows): preflight PICOBOOT WinUSB driver binding and classify code-28 failures #1163 (Windows driver preflight) — prerequisite for making PICOBOOT the default on Windows; the investigate(rp2040): readable BOOTSEL volume stalls on first write; make watchdog cleanup handle-safe #1161 host currently shows problem code 28 on
MI_01. - feat(rp2040): make PICOBOOT/picotool a first-class transport and the primary automatic deploy path #1162 (transport flip) — the main change; mostly transport ordering,
-f,picotool infoprobe, and error classification, sincefbuild_packages::toolchain::Rp2040Picotoolalready exists. - test(rp2040): controlled PICOBOOT-only hardware validation with the #1161 pinned artifact #1165 (hardware validation) — gated on the bricked board re-enumerating (physical BOOTSEL/replug); validates the flip against the pinned artifact and cleanly isolates the investigate(rp2040): readable BOOTSEL volume stalls on first write; make watchdog cleanup handle-safe #1161 failure to the mass-storage path.
Exit criteria
- Default
fbuild deployon RP2040 loads over PICOBOOT without opening theRPI-RP2volume;--transport uf2restores the mass-storage path. - Missing WinUSB binding fails fast with actionable guidance.
- A watchdog-timed-out write can no longer poison subsequent attempts.
- test(rp2040): controlled PICOBOOT-only hardware validation with the #1161 pinned artifact #1165's controlled run recorded on investigate(rp2040): readable BOOTSEL volume stalls on first write; make watchdog cleanup handle-safe #1161 with the pinned artifact.
Closes out the fbuild-side direction from #1161; that issue stays open for the host/device reproduction itself.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 4 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsTriage
Activity
zackees commentedon Jul 24, 2026
Additional host observation: UF2 volume bypass\n\nA separate investigator was able to get past the NEW.UF2 non-writability by dismounting the BOOTSEL volume and writing directly to its FAT filesystem rather than through the normal mounted-volume path.\n\nThis is useful evidence that the failing surface can be the Windows mounted mass-storage/filesystem stack, not necessarily UF2 parsing or RP2040 flash programming. It reinforces the PICOBOOT-primary direction: direct picotool avoids that storage stack entirely.\n\nThis is an investigation note only, not a deployment recommendation: fbuild should not add a raw-FAT workaround. The supported paths remain PICOBOOT/picotool as primary and the normal UF2 volume route as explicit fallback.
zackees commentedon Jul 27, 2026
Progress update:
--transport picotool|uf2, defaultpicotool;picotool infoprobe;load -f -x;FBUILD_RP2040_PICOTOOL_TIMEOUT_SECS, default 60s), with the Windows WinUSB preflight classifying CM_PROB_FAILED_INSTALL-family codes on theVID_2E8A&PID_0003MI_01devnode and skipping picotool with exact-devnode guidance. Mass-storageNEW.UF2remains the fallback and the--transport uf2path.Remaining before this meta can close:
Exit criteria status: transport flip ✅ (default deploy no longer opens
RPI-RP2on success;--transport uf2restores it), driver-missing fast-fail ✅, watchdog poisoning fix ✅ (#1167), #1165 controlled run ⏳ (hardware-gated).zackees commentedon Dec 4, 2026
Steward re-verification 2026-12-04T19:03Z — no code cell left; remaining cell is
2E8A:0003hardwareDelivered half re-verified as NOT stale on
origin/mainc34febb5, before recording a block:d63d43b5, merged 2026-07-27T17:37:58Z). Code read onc34febb5:crates/fbuild-deploy/src/rp2040.rs:4342transport_defaults_to_picotooland:4471deployer_defaults_to_picotool_transport_and_60s_load_timeout— the default isRp2040Transport::Picotool.parse_rp2040_transportmapspicotool/none->Picotool,uf2->Uf2,swd->Swd(parse_transport_maps_*tests).:72FBUILD_RP2040_PICOTOOL_TIMEOUT_SECS, 60 s default;picotool_targetprobe +load -f -xpath;swd_transport_never_attempts_picotool_first/uf2_transport_never_attempts_picotool_firstkeep the fallback honest.crates/fbuild-deploy/src/rp2040_preflight.rs(#[path] mod preflightatrp2040.rs:22):classify_picoboot_preflight->PicobootPreflight::{Ready, DriverMissing, OtherProblem},should_attempt_picotool_first(rp2040.rs:113-118) skips picotool on a missing driver,problem_messagerenders exact-devnode guidance.fix(rp2040): cancel timed-out UF2 writes, merged 2026-07-23T23:06:52Z):watchdog_timeout_reports_a_live_abandoned_workerplus the timed-out-write cancellation tests.Those tests are green in the REQUIRED
linux / Check (ubuntu-latest)job145204648455of push run47379696590atc34febb5(2026-12-04T16:54-16:58Z): 93rp2040::tests::* ... ok,test result: ok. 332 passed; 0 failed; 13 ignored, and zeroFAILED/panickedlines in the whole job log. Exit criteria 1 (picotool default,--transport uf2restores mass storage), 2 (driver-missing fast-fail) and 3 (watchdog poisoning) hold on main.What remains is hardware, not code:
/sys/bus/usb/devicesat 2026-12-04T19:0xZ enumerates 19 distinctvid:pidpairs and zero2e8a:*— no2E8A:0003(BOOTSEL) and no2E8A:000A(runtime). Attached are303a:1001(ESP32-C6 USB-JTAG) +1fc9:0132(NXP LPC11U3x CMSIS-DAP) only.lsusbdoes not exist on this NixOS host; the enumeration is read from sysfs.SHA-256 1C770999678BB7563A81D36C696DC44C074A712E25F0DE68A8A83F859E8AF0E0) against a board enumerating as2E8A:0003with a working WinUSB binding onMI_01(last observed problem code 28). Both halves — the board and the Windows repro host — are off this machine.Recording
--block-issue 1166 --reason hardwarewith this evidence. Re-verify (--unblock-issue 1166) when a2e8a:*device enumerates on this host or when the body is edited. #1165 and #1161 stay OPEN.