Skip to content

m-bootloader v3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:10
· 16 commits to main since this release
cd3eecf

The bootloader is rewritten in Rust. It does what 2.4 does: the menu, MIDI mode, the SD card item, the installers and every format are as they were, so nothing you see has changed. What has changed is every byte of it, so treat it as new.

  • Rewritten in Rust. Every C source is Rust now; the four assembly entries are as they were. It is built with the pi32v2 LLVM toolchain pi32v2-23.1.6-2 and the pi32v2 Rust compiler pi32v2-1.100.0-1. rust/PORT.md has what changed, the sizes, and each hardware test.
  • The flash loader is 1.4. It is rewritten too, with the same commands. M-Flasher still carries its own 1.3 and uses that, so the mflr-loader-*.bin here run only if you start them yourself.
  • Inside every size limit. The SMK-37's bootloader, the larger of the two, is 14,608 bytes of the 16,112 it may be.

Before you install

  • Use M-Flasher 0.9.1 or newer, as for 2.2 to 2.4. The tests below used 0.12.1. M-UPGRADE has no such limit.
  • MIDI mode answers as it did: as ota-FM-1_900 or ota-SMK-37 Pro_900. A browser installer that did not accept that with 2.4 will not accept it now.
  • Official M-VAVE updates and Baud Girl's installer put the stock bootloader back, with its full configuration. Reinstall m-bootloader afterwards.
File For
fm1-uboot.fwsc FM-1, with M-UPGRADE
smk37-pro-uboot.fwsc SMK-37 Pro, with M-UPGRADE
smk37-elite-uboot.fwsc SMK-37 Elite, with M-UPGRADE
fm1-uboot.boot FM-1, with M-Flasher
smk37-uboot.boot SMK-37 Pro / Elite, with M-Flasher
fm1-stage.fwsc, smk37-pro-stage.fwsc, smk37-elite-stage.fwsc The helper, through M-VAVE's firmware or Baud Girl
fm1-stage-listed.fwsc, smk37-pro-stage-listed.fwsc, smk37-elite-stage-listed.fwsc The helper, through Felucca-family firmware
fm1-stage-ram.bin, smk37-stage-ram.bin The helper, with M-Flasher's run-ram at 0x01C28000
mflr-loader-a.bin, mflr-loader-b.bin The flash loader, 1.4. M-Flasher does not use these
SHA256SUMS checksums

Back up your unit with M-Flasher first. The menu and M-Flasher show the version as 3.0-cd3eecf.

Tested on this exact build, on an FM-1 (0x856014, Baud Girl), by programs only. CI's build of it is byte-identical to the one tested.

  • Installing with M-Flasher over the stock bootloader, the firmware starting under it, and nothing outside the boot area changed.
  • With one bit of the firmware flipped: MIDI mode opening by itself and answering as 3.0-cd3eecf, the whole flash read over MIDI and matching, a RAM app run from it, and the restart request.
  • The unit's flash restored afterwards, and read back identical to its backup.

Tested on the same code under its earlier version strings, 2.4-7b67881 and 2.4-46af0f5, on that FM-1 and an SMK-37 Pro (0xEB6014). Stage 1 of this release is byte for byte theirs; stage 0, the helper and the flash loader differ from theirs only in the version they give.

By hand:

  • On both units: the menu, REC for download mode, and the SD card item with m-apps, with an app going back to the launcher and the launcher back to the menu.
  • Boot anyway starting firmware that had one bit flipped.
  • Felucca installed through MIDI mode, and Baud Girl from its web installer with the bootloader present.
  • The bootloader installed from its M-UPGRADE package, on both units.
  • On the FM-1, M-VAVE's own update from V15 to V16 through M-UPGRADE, which put the stock bootloader back, and from V16 to V15.

By programs, with the screen read by a camera:

  • On both units, with the firmware damaged only in its app area: a flipped bit showing APP BAD CRC, an erased sector APP INCOMPLETE, and its first sector erased APP NOT FOUND, each time with MIDI mode opening by itself and the firmware not started. From that MIDI mode: the whole flash read and matching, a RAM app run, the restart request, download mode asked for.
  • The helper from download mode, on both units: on USB, the whole flash read over MIDI and matching, a RAM app run.
  • The SMK-37's calibration guard: with the calibration erased, the next start put it back from the copy; with the copy erased, the next start made it again.
  • The flash loader: its reads, its refusals (a wrong CRC, a write too long, one past the end, an erase off a sector's start), whole backups restored through it and read back identical with M-Flasher's own loader, and, as 1.4, replacing itself in both slots without a power cycle and being replaced by M-Flasher's 1.3.
  • On a test build, on the FM-1: MIDI mode by request, and the SD card item by request, which ran m-apps' launcher from its card.

Not tested:

  • This exact build on an SMK-37, or by hand on either unit.
  • An official M-VAVE update on an SMK-37: there was no other version of its firmware to update to, and M-UPGRADE refuses the one a unit has.
  • The helper's M-UPGRADE packages (*-stage*.fwsc).
  • M-Flasher uploading this release's flash loader itself, and the loader's 64 KiB erase.
  • 1.2 and 1.3 installed over it.
  • A real SMK-37 Elite, the MiniFM, and the UC25HQ80.

If you build on this repository's sources: the C files are gone. m-apps, which compiled its drivers from them, needs the 2.4 sources or the Rust.

Full Changelog: v2.4...v3.0