Commit Graph
18 Commits
Author SHA1 Message Date
BRNSystemsandClaude Opus 5.5 494f0975af Docs: serial + SD backup, restore and flashing reference
U-Boot has no fatwrite, so full-flash backups go to a raw slot on the
card (mmc write at block 0x400000, past a 1 GiB FAT32 partition) with
double reads, cmp.b and crc32 checks. Restore with sf update or the
classic mmc read + sf erase + sf write, plus single-partition flashing
from FAT files. Cross-referenced from the backup and restore sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:10:45 +01:00
BRNSystemsandClaude Opus 5.5 57328fb77d Docs: add the camera's advertised specs
2K, Wi-Fi 2.4 + 5 GHz, mains power, price at time of writing. Notes that
only 2.4 GHz has been confirmed with this firmware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:04:10 +01:00
BRNSystemsandClaude Opus 5.5 51ce781385 Docs: name the camera this was developed on
LSC Smart Connect outdoor camera (Action article 3225728), with a warning
to check the board since retailers change hardware under the same name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:03:31 +01:00
BRNSystemsandClaude Opus 5.5 42b3f7ad30 Docs: install guide and image audit
GUIDE.md: step-by-step for others (compatibility check, backup, build,
four install methods, settings, recording, Wi-Fi, updates, restore,
troubleshooting). IMAGE_CONTENTS.md: partition-by-partition audit of what
the build changes and where every input comes from.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 64e8a30e5b RTSP image: full-resolution streaming, SSH, recording, installers
variants/rtsp.sh assembles the complete firmware: DTB with a 24 MB ION
heap for 2304x1296, Tuya-free APP with the SDK runtime, rebuilt RTSP
server, dropbear, OTA, Wi-Fi and camcfg tools, DATA partition, patched
env, and stages full.bin, partitions and both SD install sets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 62b2dcc31b SD-card-only install through the stock U-Boot recovery
Stock U-Boot reads ht_recover_fw.conf from the SD card at every boot
(format reverse-engineered from the binary). The installer runs from a
temporary rootfs while the original APP is intact, dumps the full 8 MiB
to the card, then installs and restores the stock rootfs; ENV is written
last so every earlier step is restartable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 7054eb974f Patch U-Boot env for a standalone full image
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>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 b4db39e6db ONVIF scaffolding and SSH notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 00cbea147b camcfg: one CLI for every setting
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>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 28d4a36b6b Runtime Wi-Fi configuration with fallback
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>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 89bd21d1f2 Build shipped tools from source
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>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 165c1b3a4a RTSP server: Digest auth, encoder level and SD recording
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>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 1005aad61f mtdflash, OTA updates and the U-Boot SD updater
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>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 5f4c960e1a Fetch pinned third-party inputs
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>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 c778b728c0 Tuya-free image with a writable DATA partition
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>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 573f3724c3 Telnet image: persistent root shell, Wi-Fi and overlay
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>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 e8cc206d23 Toolkit: split and reassemble flash images from a dump
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>
2026-11-23 22:01:43 +01:00
BRNSystemsandClaude Opus 5.5 497c0758cc Research notes: hardware, flash layout, rooting
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>
2026-11-23 22:01:43 +01:00