Skip to content

Run on Windows - #1

Merged
hubpav merged 7 commits into
mainfrom
windows
Nov 15, 2026
Merged

hubpav merged 7 commits into
mainfrom
windows

Conversation

@hubpav

@hubpav hubpav commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Work in progress: FIBER Setup for Windows.

  • Finding the FIBER: USB boards from Windows' device list, disks from its storage management.
  • USB driver: a WinUSB driver package from HARDWARIO for the boot ROM, installed by the "Allow USB access" step. Its catalog is signed when a release is built.
  • rpiboot: built in Cygwin from the same pinned source as on Linux and macOS.
  • Rights: the app starts as administrator (UAC), which writing the eMMC and installing the driver need.
  • Packaging (to come): an installer and a portable zip, both signed.

Not yet tested on a Windows PC with a FIBER. CI compiles and tests it on windows-latest; a virtual disk stands in for the eMMC there.

🤖 Generated with Claude Code

hubpav and others added 7 commits November 15, 2026 14:47
Work in progress on the Windows version.

- The boards on USB come from Windows' device list (nusb), the disks and
  the USB device each hangs on from its storage management (PowerShell).
  A disk is opened by its device path, which names its vendor and serial
  number, after its old partition table is removed (diskpart), since
  Windows writes into no volume it has mounted.
- The boot ROM needs a driver on Windows: packaging/windows/driver binds it
  to Windows' own WinUSB. The "Allow USB access" step installs it there
  (pnputil); its catalog is made in CI and signed by a release.
- rpiboot is built in Cygwin, as Raspberry Pi builds it, with Cygwin's DLLs
  next to it. It is not told the port on Windows, so one board at a time.
- The app asks for administrator rights when it starts (writing a disk and
  installing a driver need them).
- CI builds and tests on windows-latest too. A virtual disk stands in for
  the eMMC in the raw-disk test.

Nothing of this has run on Windows yet: this Mac cannot compile for it,
only type-check the core and the CLI.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The driver's catalog is made with New-FileCatalog, which is part of Windows
(the runner has no Driver Kit, so no Inf2Cat). CI now also checks, on the
Windows runner: rpiboot.exe starts, Windows takes the driver package once
its signer is trusted (a certificate made for the run stands in for
HARDWARIO's), the installer installs and its uninstaller removes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…se jobs

The first full test run on Windows found two things. PowerShell's comma binds
tighter than its plus, so the diskpart script was one line ('select disk 3
clean'); and the sysfs test makes a folder with a colon in its name, which
Windows has none of.

The Release workflow builds the Windows exe, and sign-windows signs it with
rpiboot, the driver's catalog and the uninstaller, makes the installer and
the portable zip, and signs the installer. It also checks that Windows takes
the driver package as HARDWARIO signs it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ts disk

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… notes

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@hubpav
hubpav marked this pull request as ready for review November 15, 2026 16:03
@hubpav
hubpav merged commit c47bab6 into main Nov 15, 2026
12 checks passed
@hubpav
hubpav deleted the windows branch November 15, 2026 16:04
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