mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-31 05:13:39 +00:00
Complete flashable implementation with: - INT8 quantized transformer (~20KB RAM) - HNSW vector index for RAG - UART command interface (gen/add/ask/stats) - Cross-platform installers (Linux, macOS, Windows) - Multi-chip cluster configuration (pipeline parallelism) - Docker build environment - Comprehensive documentation Installation options: - One-line: ./install.sh && ./install.sh flash - Makefile: make install && make flash PORT=/dev/ttyUSB0 - Docker: docker run -v $(pwd):/app ruvllm-esp32 build Cluster support: - cluster.example.toml: 5-chip pipeline config - cluster-flash.sh/ps1: Flash all chips with roles - cluster-monitor.sh: tmux multi-pane monitoring 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
67 lines
1.5 KiB
Batchfile
67 lines
1.5 KiB
Batchfile
@echo off
|
|
REM RuvLLM ESP32 Flash Script for Windows
|
|
REM Usage: flash-windows.bat COM6
|
|
|
|
setlocal enabledelayedexpansion
|
|
|
|
set PORT=%1
|
|
if "%PORT%"=="" set PORT=COM6
|
|
|
|
echo ========================================
|
|
echo RuvLLM ESP32 Flash Tool
|
|
echo ========================================
|
|
echo.
|
|
|
|
REM Check if espflash is installed
|
|
where espflash >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo [ERROR] espflash not found. Installing...
|
|
cargo install espflash
|
|
if errorlevel 1 (
|
|
echo [ERROR] Failed to install espflash
|
|
echo Please run: cargo install espflash
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
REM Check if espup is installed (for ESP32 Rust toolchain)
|
|
where espup >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo [WARNING] ESP32 Rust toolchain may not be installed.
|
|
echo Installing espup...
|
|
cargo install espup
|
|
espup install
|
|
)
|
|
|
|
echo.
|
|
echo Building for ESP32...
|
|
echo.
|
|
|
|
cargo build --release
|
|
if errorlevel 1 (
|
|
echo [ERROR] Build failed!
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo Flashing to %PORT%...
|
|
echo.
|
|
|
|
espflash flash --port %PORT% --monitor target\xtensa-esp32-espidf\release\ruvllm-esp32-flash
|
|
if errorlevel 1 (
|
|
echo [ERROR] Flash failed!
|
|
echo Make sure:
|
|
echo 1. ESP32 is connected to %PORT%
|
|
echo 2. You have write permission to the port
|
|
echo 3. No other program is using the port
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo ========================================
|
|
echo Flash complete! Monitor starting...
|
|
echo ========================================
|
|
pause
|