Skip to content

About

Batch deployment console for Seeed reCamera (SG2002/eMMC): discovery, batch flashing, firmware + configuration clone. English / 中文 / 한국어.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

reCameraLab

Configure once. Deploy everywhere. A desktop deployment console for Seeed reCamera (SG2002 / eMMC): discover devices, flash in batches, and clone firmware and configuration so every unit ships ready to use.

English · 简体中文

Release Platforms Languages License

reCameraLab Device Library

UI preview with sample data; the app shows each device's real IP, model and SN.

Why reCameraLab

The hard part of batch deployment is not writing firmware — it is what comes after: logging into every unit to change the network, install apps and tune parameters. reCameraLab removes that step:

  • Firmware is configuration. When exporting, optionally bundle the device's network, login, applications and Supervisor state. Flashing restores it, so every unit matches the golden sample.
  • True batch flashing. Select multiple devices, flash 1–8 in parallel, and watch upload / write / verify / reboot progress per unit. One failure does not stop the rest.
  • Proof in every byte. Package SHA256, image MD5 read-back and A/B boot-slot verification. Any mismatch aborts immediately; the old firmware still boots.
  • Desktop-grade UX. A clean, dense light UI, English / Chinese / Korean, one-click password reveal — no command line required.
  • Your data stays local. Credentials, firmware library and logs remain on your machine; nothing is uploaded to a cloud.

Typical scenarios

Scenario Before With reCameraLab
Production line Flash, then configure each unit by hand Configure one sample → export with config → parallel flash
Channel / reseller Factory defaults; customer configures Preload network, apps and accounts per project
Lab clusters Repeat model and parameter setup on every unit Clone once to the whole batch; zero drift
RMA replacement Reconfigure the replacement manually Flash the same firmware; configuration returns

Core features

Module Capabilities
Device Library Auto-scan the /24 of selected NICs; refresh online status every 20 s; USB-NCM direct link (192.168.42.1); manual add; per-device details / single-device flash
Firmware Library Import local OTA / full ZIP packages; fetch official stable builds from GitHub Seeed-Studio/reCamera-OS (pre-releases and drafts excluded); version, source, size and SHA256 at a glance; multi-select delete
Batch Flash Multi-select devices + choose a package; parallel flashing; optional user-data wipe, built-in configuration, original fip/boot backup, app quiesce for faster transfers
Export Firmware Read-only dump of fip / boot / rootfs; optionally bundle /userdata configuration and installed apps into a re-flashable OTA package
Log Full workflow log on disk: scan, connect, write, verify and reboot
Trilingual UI English / Simplified Chinese / Korean; English by default, applied on restart

Configuration cloning

flowchart LR
    A[Golden sample<br>fully configured] --> B[Export firmware<br>+ device configuration]
    B --> C[Batch flash<br>multiple devices]
    C --> D[Reboot & verify<br>A/B boot slot]
    D --> E[Whole batch<br>identical configuration]
Loading

The exported userdata_config.tar.gz contains:

  • /userdata/.overlay_fs: the overlayfs upper layer for /etc, /home, /usr and more — network, hostname, login settings, installed apps and Node-RED flows;
  • /userdata/local: Supervisor app state, models, camera.conf, add-ons and NAS configuration;
  • Logs, caches, swap file and browser sessions are excluded automatically.

Flashing applies this configuration by default — no per-unit manual work. If you need a factory-fresh unit instead, enable “Erase user data before flashing (factory reset)”; it is off by default.

Security note: a configuration-carrying package contains /etc/shadow and SSH host keys. Treat it like a device password and never upload it publicly. This repository and its release assets contain no firmware or user configuration.

Download & install

Platform Package Notes
Ubuntu 22.04+ / Debian recameralab_1.0.2_amd64.deb Bundled runtime; sudo apt install ./…deb
Windows x86_64 reCameraLab-1.0.2-windows-x86_64.zip Unzip and run reCameraLab.exe
macOS Apple Silicon reCameraLab-1.0.2-macos-arm64.zip Unzip and drag to Applications

Download from Releases. SHA256 checksums are attached as SHA256SUMS.txt / SHA256SUMS-v1.0.2.txt.

# Ubuntu / Debian
sudo apt install ./recameralab_1.0.2_amd64.deb
recameralab

Windows: if SmartScreen appears, choose More info → Run anyway. macOS: the build is not notarized; right-click → Open, or run xattr -dr com.apple.quarantine /Applications/reCameraLab.app.

Interface languages

The first launch defaults to English. Go to Settings → Interface language to switch between English / 简体中文 / 한국어; choose “restart now” and the entire UI, dialogs, logs and CLI output switch language.

English 简体中文 한국어

Every password and token field has an eye button to reveal the current value.

Flash flow (matching the official OTA)

  1. SSH as recamera (default password recamera), escalate with sudo.
  2. Preflight: reCamera model, eMMC partitions, target slot capacity, /userdata free space and required tools.
  3. Optionally quiesce the camera app and supervisor for much faster uploads.
  4. If requested, clear user files before the upload.
  5. Optionally back up the original fip / boot to device-backups/.
  6. Stream the package over an SSH exec channel (not SFTP); verify SHA256 on device.
  7. Write the inactive rootfs → fip → boot.emmc; read back and verify MD5 after every image.
  8. Apply the packaged configuration (staged and validated first; a corrupt archive keeps the original configuration).
  9. Flip the A/B boot slot with fw_setenv, then reboot.
  10. Wait for a settled device, verify the boot slot and /etc/issue; a version string mismatch is only a warning.

A/B redundancy: a failed write leaves the original slot bootable; five failed boots automatically roll back.

Firmware package format

  • OTA: fip.bin + boot.emmc + rootfs_ext4.emmc + md5sum.txt
  • Full image: the same three images (may include META/); MD5 computed locally
  • Device export: the three system images + optional userdata_config.tar.gz

Exported packages can be flashed to any same-model unit. Packages exported by v1.0.1 do not contain the /userdata configuration archive; re-export once with v1.0.2 to enable full runtime-configuration cloning.

CLI

The CLI follows the configured UI language (English by default) and is handy for automation and regression testing:

python3 -m recameralab.cli discover --list-ifaces
python3 -m recameralab.cli info 192.168.42.1 -p recamera
python3 -m recameralab.cli flash 192.168.42.1 -p recamera \
        --firmware sg2002_reCamera_0.4.13_emmc_ota.zip
python3 -m recameralab.cli export 192.168.42.1 -p recamera   # includes config
python3 -m recameralab.cli github --limit 5
  • flash: does not wipe user data by default and applies the firmware configuration; use --wipe for factory reset or --no-config for system images only.
  • export: includes device configuration by default; --no-config exports only the three system images.

Run from source

git clone https://github.com/RobotXTeam/reCameraLab.git
cd reCameraLab
./install.sh        # dependencies + desktop entry
./run.sh            # or python3 app.py

Requirements: Python 3.10+, PyQt5, paramiko, requests, psutil.

Build release packages

./packaging/build_deb.sh        # Linux deb

Pushing a v* tag makes GitHub Actions build deb, Windows x86_64 and macOS arm64 packages and attach them to the release:

git tag v1.0.2 && git push origin v1.0.2

Quality & safety

  • Every write is verified by MD5 read-back; a mismatch aborts and keeps the original boot slot.
  • Exported packages carry a whole-package SHA256, re-checked on the device before flashing.
  • Per-device credentials live in config/devices.json (0600); export-time credentials in config/export-credentials.json (0600).
  • A confirmation dialog lists devices, firmware, wipe and configuration choices before flashing.
  • Export uses read-only dd / tar and never modifies the device.
  • Data directory: source runs use ~/work/reCameraLab; installed builds use ~/.local/share/reCameraLab (macOS: ~/Library/Application Support, Windows: %APPDATA%).

Known limitations

  • Targets SG2002 / eMMC reCamera (8M BOOT / 2×512M ROOTFS / USERDATA).
  • USB-NCM downlink is about 1 MB/s; a 512 MB rootfs export takes 8–10 minutes. Bundling configuration adds time; turn it off when not needed.
  • Configuration archiving needs enough free /userdata space; the exporter rejects early when space is insufficient.
  • Windows builds are not code-signed; macOS builds are not notarized.

Tests

python3 -m unittest discover -s tests        # 47 tests
python3 scripts/i18n_inventory.py --check    # 457/457 en+ko coverage
python3 scripts/screenshots.py --lang en --demo

Real-device regression record: docs/TEST-LOG.md (Chinese).

License

MIT. reCamera and Seeed are trademarks of Seeed Studio; this is an independent tool.

About

Batch deployment console for Seeed reCamera (SG2002/eMMC): discovery, batch flashing, firmware + configuration clone. English / 中文 / 한국어.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages