From 00a968cbc02cb8a4f36db98537d04488cfbec9a2 Mon Sep 17 00:00:00 2001 From: Douglas Teles Date: Wed, 1 Jul 2026 02:44:15 -0300 Subject: [PATCH] flasher: switch extlinux.conf for soysauce on Windows and macOS The Linux flash script swaps extlinux.conf.soysauce into extlinux.conf for the soysauce variant (it boots with an explicit FDT), but the Windows PowerShell writer and the macOS script only copied the DTBO and wrote the variant file. On those platforms a soysauce card kept the default extlinux.conf, ignored extlinux.conf.soysauce, and the console never booted. Add the same swap (back up extlinux.conf, copy extlinux.conf.soysauce over it) to both the Windows and macOS post-write config steps. --- src-tauri/src/flash.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src-tauri/src/flash.rs b/src-tauri/src/flash.rs index d9d5e38..00dd083 100644 --- a/src-tauri/src/flash.rs +++ b/src-tauri/src/flash.rs @@ -869,6 +869,14 @@ cp "$CUSTOM_DTBO" "$BOOT_VOL/overlays/mipi-panel.dtbo" # Write variant file echo -n "$VARIANT" > "$BOOT_VOL/variant" +# Switch extlinux config for soysauce variant (uses explicit FDT), +# matching the Linux flash path. Without it the board keeps the default +# extlinux.conf and the console never boots. +if [ "$VARIANT" = "soysauce" ] && [ -f "$BOOT_VOL/extlinux/extlinux.conf.soysauce" ]; then + cp "$BOOT_VOL/extlinux/extlinux.conf" "$BOOT_VOL/extlinux/extlinux.conf.bak" + cp "$BOOT_VOL/extlinux/extlinux.conf.soysauce" "$BOOT_VOL/extlinux/extlinux.conf" +fi + sync # Eject disk safely @@ -1113,6 +1121,22 @@ try {{ # Write variant file Set-Content -Path (Join-Path $bootDrive "variant") -Value $Variant -NoNewline + # Switch extlinux config for the soysauce variant (it boots with an + # explicit FDT). This mirrors the Linux flash path; without it the + # board keeps the default extlinux.conf, ignores extlinux.conf.soysauce, + # and the console never boots. + if ($Variant -eq 'soysauce') {{ + $extlinuxDir = Join-Path $bootDrive "extlinux" + $extlinuxConf = Join-Path $extlinuxDir "extlinux.conf" + $soysauceConf = Join-Path $extlinuxDir "extlinux.conf.soysauce" + if (Test-Path $soysauceConf) {{ + if (Test-Path $extlinuxConf) {{ + Copy-Item $extlinuxConf (Join-Path $extlinuxDir "extlinux.conf.bak") -Force + }} + Copy-Item $soysauceConf $extlinuxConf -Force + }} + }} + exit 0 }} catch {{ Write-Error $_.Exception.Message