Skip to content

FM1Kit 0.4.1

Choose a tag to compare

@ocean ocean released this 25 Oct 11:39
· 72 commits to main since this release

FM1Kit now explains why some custom firmwares refuse to install M-VAVE's V15 while m-bootloader is installed, and installs over DUB-1 again.

Added

  • FM1UpdateError.bootloaderMismatch(requests:): firmwares built on Felucca's platform (AMB-1, HYP-1, DUB-1, Estampie) compare the boot area of a package with M-VAVE's update loader (V15, open firmware) with the FM-1's before installing it, so they refuse V15 while m-bootloader is installed. An install that stops on that comparison now says so, and that installing in download mode from a Mac keeps the FM-1's bootloader, instead of the general staging advice. SimulatedFM1.Options.comparesBootArea simulates it.

Fixed

  • Firmwares numbering their builds FM-1_8 and six digits, as DUB-1 does (FM-1_8010300 for 1.3.0), were taken for M-VAVE's open firmware, so installing over them stopped with capabilityUnavailable. FM1Identity.isOpenFirmware now takes FM-1_8000000 to FM-1_8000999 (and FM1_COMMUNITY_).
  • FlashBackup.firmware.name names a custom firmware only when its code also holds the name and version it shows, as forks share identities: HYP-1 numbers its builds as AMB-1 does, so a HYP-1 build could be named "AMB-1 1.3".
  • FlashPlan.installing(_:onto:includingBootloader:erasingSettings:) no longer warns that the installed firmware keeps its settings elsewhere when it erases the new firmware's settings.
  • fm1probe's timestamps were on a 12-hour clock without AM or PM when run under sudo; they're always 24-hour now.

Tested on hardware

With m-bootloader installed, over USB-MIDI: V15 → DUB-1 1.3.0 → AMB-1 1.3 → Estampie 0.1 all installed and kept m-bootloader. AMB-1 refused Open V12 and Estampie refused V15 at the boot-area check (as HYP-1 did), and FM1Kit reported the bootloader mismatch. Open V12 ran on m-bootloader after a download-mode install, and Open V12 took V15 over MIDI, which put M-VAVE's bootloader back. With M-VAVE's bootloader, DUB-1 took V15. See HARDWARE_TESTING.md.

In short: with m-bootloader, firmwares built on Felucca's platform switch between each other over USB-MIDI, but going back to V15 from them needs download mode on a Mac.

Using it

.package(url: "https://github.com/ocean/FM1Kit.git", .upToNextMinor(from: "0.4.1")),

Full changelog: 0.4.0...0.4.1