secubox-deb/board/espressobin-v7/flash-emmc.cmd
CyberMind-FR 3240e441c7 fix(ebin): EspressoBin eMMC boot fixes
- secubox-haproxy: Remove ReadWritePaths sandboxing causing NAMESPACE errors
- secubox-net-fallback: Skip lan* interfaces (DSA downstream ports)
- netplan: Add dummy0 with 10.55.255.1/24 to all board configs
- flash-emmc: Fix eMMC detection using boot0 partition
- flash-emmc.cmd: Support multiple image filenames

Fixes issues encountered when booting SecuBox from EspressoBin V7 eMMC.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-04-20 07:59:42 +02:00

45 lines
1.2 KiB
Batchfile

# SecuBox — Flash to eMMC from USB
# Run at U-Boot prompt: source $loadaddr
# Or: load usb 0:1 $loadaddr flash-emmc.scr && source $loadaddr
echo "============================================"
echo "SecuBox ESPRESSObin v7 — Flash to eMMC"
echo "============================================"
# Init USB
usb start
if usb dev 0; then
echo "USB ready"
else
echo "ERROR: Insert USB and retry"
exit 1
fi
# Load compressed image
echo "Loading image..."
if load usb 0:1 ${loadaddr} secubox-ebin-v7.img.gz; then
echo "Image loaded: ${filesize} bytes"
elif load usb 0:1 ${loadaddr} secubox-espressobin-v7-bookworm.img.gz; then
echo "Image loaded (alt name): ${filesize} bytes"
else
echo "ERROR: Image not found on USB"
echo "Expected: secubox-ebin-v7.img.gz"
exit 1
fi
echo ""
echo "============================================"
echo "WARNING: This will ERASE eMMC!"
echo "Press Ctrl+C within 5 seconds to abort"
echo "============================================"
sleep 5
echo "Flashing to eMMC (mmc 1)..."
gzwrite mmc 1 ${loadaddr} ${filesize}
echo ""
echo "============================================"
echo "Flash complete!"
echo "Remove USB and type: reset"
echo "============================================"