env-patch.py edits a U-Boot env image (CRC32 + NUL-separated vars), used
to bake mtdparts, the SD-update bootcmd and the build id into full.bin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Validates values, stores only overrides in /data/camcfg.conf (survives
firmware updates), merges them over the image defaults, keeps ONVIF in
sync and restarts the stream.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wifi-set changes the network without reflashing (hex-encoded SSID),
wifi-connect tries new -> previous -> build default, and a switch that
fails reverts automatically.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
build-deps.sh builds mtdflash and dropbear (static musl) and the patched
RTSP server (uClibc-ng 1.0.30, ABI-compatible with the camera's 1.0.31).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Patch for the SDK RTSP sample: [auth]/[server] in rtsp.ini (Digest auth
is built into librtsp_server), configurable enc_level, larger ring buffer
for 8 Mbps. ak_record.c adds continuous + motion recording to MPEG-TS with
configurable split, pre-roll and quotas, using the hardware motion grid.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mtdflash: static, verified MTD writer (per-block skip/erase/write/read-back,
validates all images before writing, refuses U-Boot/env without -f).
fwupdate + ota.sh flash a running camera over SSH; make-sd-update.sh builds
a camupdate.env that the new bootcmd applies from the SD card.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fetch-deps.sh downloads the Anyka SDK runtime and RTSP sample
(Link-WQS/ANYKA_130L_SDK), the matching venc kernel modules (OpenIPC) and
Bootlin toolchains, all pinned to commits and checked against
deps.sha256. Nothing vendor-owned is stored in the repository.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Strips the Tuya stack from APP and repartitions via mtdparts (the DTB has
no partition table), adding a jffs2 DATA partition for settings and the
overlay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stock layout, Tuya daemons disabled, telnetd + serial root shell,
Wi-Fi auto-join and a bind-mount overlay so any file can be made
writable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
split.sh carves a dump into partitions using a layout file, build-image.sh
reassembles them (reproduces the stock dump byte-for-byte), repack-fs.sh
rebuilds squashfs/jffs2 partitions, extract-src.sh unpacks the stock
APP/rootfs from the user's own dump.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Notes on the AK3918AV130/SC3332 Tuya camera derived from a flash dump:
SoC, U-Boot, 8 MiB NOR layout, the three anti-root locks and how to get a
root shell. Boot logs are redacted (MAC addresses, device-derived AP name).
The dump itself is never committed (.gitignore): CONFIG holds per-device
Tuya keys.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>