diff --git a/docs/index.html b/docs/index.html
index e4a5f35..e81cdc3 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -745,7 +745,7 @@ class Updater {
const outs = [...this.access.outputs.values()];
for (const input of this.access.inputs.values()) {
if (input.state === "disconnected") continue;
- if (!/fm-1|felucca|ota|composite|sinco|usb-midi/i.test(input.name || "")) continue; // never probe other gear
+ if (!/fm-1|fmini|felucca|ota|composite|sinco|usb-midi/i.test(input.name || "")) continue; // never probe other gear
const output = outs.find((o) => o.name === input.name && o.state !== "disconnected");
if (!output) continue;
try { await input.open(); await output.open(); } catch (_) { continue; }
diff --git a/tools/fm1_install.py b/tools/fm1_install.py
index 39fa608..08e54c6 100755
--- a/tools/fm1_install.py
+++ b/tools/fm1_install.py
@@ -36,7 +36,7 @@ LOADER_MARK = b"FELUCCA-LOADER-1"
# the unmodified official FM-1 V15 (FM-1.fwsc from M-VAVE): returning to it is allowed without --force,
# as the web installer's "Return to official V15" (web/fm1pkg.js validateStockPackage)
STOCK_V15_SHA256 = "db1642b2b6fa5c2cccb11ffd13878068bb28601678d3644049f99dc40e7edb8a"
-PORT_RE = re.compile(r"fm-1|felucca|ota|composite|sinco|usb-midi", re.I) # never probe other gear
+PORT_RE = re.compile(r"fm-1|fmini|felucca|ota|composite|sinco|usb-midi", re.I) # never probe other gear
# seconds; the tests shorten them
DELAY = {"open": 0.3, "start": 2.0, "reply": 0.01, "loader": 3.0, "reboot": 3.0, "retry": 1.0,
diff --git a/web/fm1ota.js b/web/fm1ota.js
index d31980a..c0cf7ac 100644
--- a/web/fm1ota.js
+++ b/web/fm1ota.js
@@ -119,7 +119,7 @@ export class Updater {
const outs = [...this.access.outputs.values()];
for (const input of this.access.inputs.values()) {
if (input.state === "disconnected") continue;
- if (!/fm-1|felucca|ota|composite|sinco|usb-midi/i.test(input.name || "")) continue; // never probe other gear
+ if (!/fm-1|fmini|felucca|ota|composite|sinco|usb-midi/i.test(input.name || "")) continue; // never probe other gear
const output = outs.find((o) => o.name === input.name && o.state !== "disconnected");
if (!output) continue;
try { await input.open(); await output.open(); } catch (_) { continue; }
diff --git a/web/test_web.mjs b/web/test_web.mjs
index 0fd2d05..75e9500 100644
--- a/web/test_web.mjs
+++ b/web/test_web.mjs
@@ -1640,8 +1640,9 @@ const UPGRADE = [0xF0, 0x22, 0x24, 0x35, 0x7F, 0xF7];
/* an FM-1 on WebMIDI: identity, then "device asks, host answers" reads of the image */
class FakeFM1 {
- constructor(image, { unplugAfter = Infinity } = {}) {
+ constructor(image, { unplugAfter = Infinity, run = "Felucca", ota = "Felucca Update" } = {}) {
this.image = image; this.unplugAfter = unplugAfter; this.served = 0; this.bad = 0;
+ this.runName = run; this.otaName = ota; // the USB names: "Felucca" / "Felucca Update" (until v1.4.27), "FMini-1" / "FMini-1 Update" (v1.4.28+)
this.access = { inputs: new Map(), outputs: new Map() };
this.boot("FM-1_015", "FM-1");
}
@@ -1677,8 +1678,8 @@ class FakeFM1 {
this.waiting = null;
this.served++;
if (this.served >= this.unplugAfter) { this.input.state = this.output.state = "disconnected"; return; }
- if (addr === 0xE0000000) setTimeout(() => this.boot("ota-FM-1_900", "Felucca Update"), 300);
- else if (addr === 0xF0000000) setTimeout(() => this.boot("FM-1_900", "Felucca"), 300);
+ if (addr === 0xE0000000) setTimeout(() => this.boot("ota-FM-1_900", this.otaName), 300);
+ else if (addr === 0xF0000000) setTimeout(() => this.boot("FM-1_900", this.runName), 300);
else this.next();
}
}
@@ -1703,6 +1704,17 @@ async function updater() {
ok(got === "FM-1_900" && dev.bad === 0 && steps.includes("write") && steps.at(-1) === "done",
`fm1ota.js: install: running firmware -> loader -> Felucca (${dev.served} reads)`);
+ /* the USB names the firmware has had: the update loader ("FMini-1 Update" since v1.4.29) must be found by its name too */
+ for (const [run, ota] of [["FMini-1", "FMini-1 Update"], ["Felucca", "FMini-1 Update"], ["FM-1", "Felucca Update"]]) {
+ const dn = new FakeFM1(image, { run, ota });
+ dn.boot("FM-1_015", run);
+ const gn = await new Updater(dn.access).install(image, "FM-1_900").then((v) => v, (x) => x.code || String(x));
+ ok(gn === "FM-1_900" && dn.bad === 0, `fm1ota.js: install through the ports "${run}" -> "${ota}" -> "${run}" (${gn})`);
+ const dr = new FakeFM1(image, { run, ota });
+ dr.boot("ota-FM-1_900", ota);
+ ok(await new Updater(dr.access).resume(image) === true, `fm1ota.js: resume finds the loader named "${ota}"`);
+ }
+
const dev2 = new FakeFM1(image, { unplugAfter: 3 });
dev2.boot("ota-FM-1_900", "Felucca Update");
const t0 = Date.now();