From effd1ee765b5a086a3c29eeb4e27db1f9c69095a Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Tue, 24 Mar 2026 20:39:56 -0300 Subject: [PATCH] feat: update entrypoint.sh to ensure ESP32 core version is 2.0.17; mark subproject commits as dirty --- deploy/entrypoint.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/deploy/entrypoint.sh b/deploy/entrypoint.sh index c3309693..a3274327 100644 --- a/deploy/entrypoint.sh +++ b/deploy/entrypoint.sh @@ -11,12 +11,21 @@ if [ ! -f /root/.arduino15/arduino-cli.yaml ]; then https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json 2>/dev/null || true fi -# Install missing cores. arduino-cli core install is a no-op if already present. +# Install missing cores. # ESP32 core MUST be 2.0.17 (IDF 4.4.x) — newer 3.x is incompatible with QEMU ROM bins. arduino-cli core update-index 2>/dev/null || true arduino-cli core install arduino:avr 2>/dev/null || true arduino-cli core install rp2040:rp2040 2>/dev/null || true -arduino-cli core install esp32:esp32@2.0.17 2>/dev/null || true + +# Check ESP32 core version — downgrade from 3.x if needed +ESP32_VER=$(arduino-cli core list 2>/dev/null | grep esp32:esp32 | awk '{print $2}') +if [ -z "$ESP32_VER" ]; then + echo "📦 Installing ESP32 core 2.0.17..." + arduino-cli core install esp32:esp32@2.0.17 +elif [[ "$ESP32_VER" != 2.0.17 ]]; then + echo "⚠️ ESP32 core is $ESP32_VER, need 2.0.17 — reinstalling..." + arduino-cli core install esp32:esp32@2.0.17 +fi # Start FastAPI backend in the background on port 8001 echo "🚀 Starting Velxio Backend..."