9 Commits
Author SHA1 Message Date
dark98 2324280493 Add cross-platform Windows and Linux CI builds
Introduce a reproducible CMake build and GitHub Actions matrix for Ubuntu Linux x64 and Windows x64. Each platform installs libusb, builds the usbboot executable, and publishes a platform-specific artifact containing the executable, required boot binaries, and documentation. The Windows artifact also includes libusb-1.0.dll.

Add a small Windows getopt_long compatibility layer because the Microsoft CRT does not provide the POSIX GNU option parser used by usbboot. Add Windows sleep support and make the source explicitly include the fixed-width integer and time headers needed by the cross-platform build.

Replace C99 variable-length arrays with checked heap allocations so the source compiles with MSVC, which does not support VLAs. Cast libusb request-type flags to avoid MSVC enum warnings, and use a conforming cleanup(void) callback signature for atexit(). Correct the existing cleanup NULL check so an open libusb handle is actually closed.

Document local CMake builds, CI artifacts, the Windows libusb DLL, and the requirement to bind the boot-mode device to WinUSB before use.

Credit: OpenAI Codex (GPT-5), collaborating with dark98 on the Windows port and CI implementation.
2026-08-17 01:00:33 +01:00
ballaswag c65eaa337c Fixed SPL to enable serial console input. 2024-02-07 23:55:56 -08:00
ballaswag 5d5a1234fe Add option to dump partitions from the creality k1/max 2023-09-26 23:15:12 -07:00
ballaswag 1bfdf69b1e Update readme with ota-swap instructions. 2023-09-25 23:38:44 -07:00
ballaswag 5261aa4d6a Make starting stage1/stage2 more reliable. Add OTA swap to aid switching between ota:kernel/kernel2. Expose mmc read/write vendor requests. 2023-09-25 23:38:44 -07:00
ballaswag 0b41c0381a Update README.md 2023-09-19 02:52:10 -07:00
ballaswag 06dbbe13d0 update readme with instructions. 2023-09-19 02:24:59 -07:00
ballaswag 4956b0d9b6 Add uboot support for x2000e USB mode. 2023-09-19 01:39:44 -07:00
ballaswag 55e5dc520d usbboot from rockbox 2023-09-19 01:16:34 -07:00