ONVIF scaffolding and SSH notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
No files matched your search
@@ -0,0 +1,43 @@
|
|||||||
|
model=AK3918AV130
|
||||||
|
manufacturer=Anyka
|
||||||
|
firmware_ver=1.0.0
|
||||||
|
hardware_id=AK3918AV130
|
||||||
|
serial_num=0000000000
|
||||||
|
port=8080
|
||||||
|
scope=onvif://www.onvif.org/Profile/Streaming
|
||||||
|
scope=onvif://www.onvif.org/hardware/AK3918AV130
|
||||||
|
scope=onvif://www.onvif.org/name/AnykaCam
|
||||||
|
#user=admin
|
||||||
|
#password=admin
|
||||||
|
adv_enable_media2=1
|
||||||
|
adv_enable_imaging=0
|
||||||
|
adv_fault_if_unknown=0
|
||||||
|
adv_fault_if_set=0
|
||||||
|
adv_synology_nvr=0
|
||||||
|
|
||||||
|
#Profile 0 (main)
|
||||||
|
name=Profile_0
|
||||||
|
width=1920
|
||||||
|
height=1080
|
||||||
|
url=rtsp://%s/vs0
|
||||||
|
snapurl=http://%s/cgi-bin/snapshot.sh
|
||||||
|
type=H264
|
||||||
|
bitrate=2048
|
||||||
|
framerate=20
|
||||||
|
audio_encoder=AAC
|
||||||
|
audio_decoder=NONE
|
||||||
|
|
||||||
|
#Profile 1 (sub)
|
||||||
|
name=Profile_1
|
||||||
|
width=640
|
||||||
|
height=360
|
||||||
|
url=rtsp://%s/vs1
|
||||||
|
snapurl=http://%s/cgi-bin/snapshot.sh
|
||||||
|
type=H264
|
||||||
|
bitrate=400
|
||||||
|
framerate=20
|
||||||
|
audio_encoder=AAC
|
||||||
|
audio_decoder=NONE
|
||||||
|
|
||||||
|
ptz=0
|
||||||
|
events=0
|
||||||
Executable
+31
@@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# ONVIF Profile S: busybox httpd(CGI) + wsd_simple_server.
|
||||||
|
# Expects the built binaries + templates deployed in /data/onvif/ :
|
||||||
|
# /data/onvif/onvif_simple_server /data/onvif/wsd_simple_server
|
||||||
|
# /data/onvif/wsd_files/ (+ any *_service_files the build needs)
|
||||||
|
PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin
|
||||||
|
OD=/data/onvif
|
||||||
|
WWW=$OD/www
|
||||||
|
PORT=8080
|
||||||
|
[ -x "$OD/onvif_simple_server" ] || { echo "onvif: build+copy binaries into $OD (see RTSP.md)"; exit 1; }
|
||||||
|
|
||||||
|
# /data/onvif.conf = written by camcfg (synced resolution + login); else the image default
|
||||||
|
if [ -f /data/onvif.conf ]; then cp -f /data/onvif.conf /etc/onvif_simple_server.conf
|
||||||
|
else cp -f /usr/local/onvif/onvif.conf /etc/onvif_simple_server.conf; fi
|
||||||
|
mkdir -p "$WWW/cgi-bin" /var/log
|
||||||
|
# the CGI chooses its service from argv0 -> one symlink per service
|
||||||
|
for s in device_service media_service media2_service imaging_service \
|
||||||
|
deviceio_service ptz_service events_service; do
|
||||||
|
ln -sf "$OD/onvif_simple_server" "$WWW/cgi-bin/$s"
|
||||||
|
done
|
||||||
|
|
||||||
|
# serve cgi-bin; busybox runs anything under /cgi-bin/ as CGI
|
||||||
|
# busybox on this rootfs has NO httpd applet -> ship one (e.g. static busybox with httpd)
|
||||||
|
HTTPD=$OD/httpd; [ -x "$HTTPD" ] || HTTPD=$(command -v httpd)
|
||||||
|
[ -n "$HTTPD" ] || { echo "onvif: no httpd - copy a static busybox httpd to $OD/httpd"; exit 1; }
|
||||||
|
"$HTTPD" -p "$PORT" -h "$WWW"
|
||||||
|
# WS-Discovery so NVRs/apps auto-find the camera (advertise the device service)
|
||||||
|
"$OD/wsd_simple_server" -x "http://%s:$PORT/cgi-bin/device_service" \
|
||||||
|
-p /var/run/wsd.pid -t "$OD/wsd_files" \
|
||||||
|
-m AK3918AV130 -n Anyka -s "onvif://www.onvif.org/Profile/Streaming" &
|
||||||
|
echo "onvif: http://<ip>:$PORT/cgi-bin/device_service (+WS-Discovery)"
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
dropbearmulti: dropbear 2026.94, static, ARMv5 soft-float (EABI5), musl.
|
||||||
|
Built with Bootlin armv5-eabi--musl--stable-2026.08-1 toolchain:
|
||||||
|
./configure --host=arm-buildroot-linux-musleabi --enable-static --disable-harden \
|
||||||
|
--disable-zlib --disable-lastlog --disable-wtmp --disable-utmp --disable-pututline
|
||||||
|
make PROGRAMS="dropbear dropbearkey scp" MULTI=1 dropbearmulti ; strip
|
||||||
|
Static (no interpreter) so it runs on the stock uClibc rootfs.
|
||||||
|
Applets selected via argv0 symlinks: dropbear, dropbearkey, scp.
|
||||||
Reference in New Issue
Block a user