From f22a9933b8f8da6f4e3b429b08d5fe84144948b6 Mon Sep 17 00:00:00 2001 From: AI Dev Date: Tue, 17 Nov 2026 13:48:43 +0000 Subject: [PATCH 1/2] ak3918ev300_lite_heimvision-pe3020w: Majestic, with the IR-cut pins The PE3020-W image now carries Majestic. It captures from the kernel's ISP2 host and encodes H.264/H.265 and JPEG on the SoC's Allegro encoder; the kernel side is OpenIPC/linux#242, already on the anyka-ak3918ev300 branch the firmware builds. The Majestic binary for ak3918ev300 is published as majestic.ak3918ev300.lite.master.tar.bz2. The customizer gives Majestic the IR-cut pins the board was measured with (GPIO 41 day, GPIO 42 night, #234) and selects H.264. No fonts: Majestic's OSD is not ported to Anyka yet. Local build: uImage 1600/2048 KB, rootfs 5068/5120 KB (52 KB headroom). The kernel carries the Allegro encoder node and the PE3020-W model string. Streaming is not yet tested on hardware. --- README.md | 2 +- .../configs/ak3918ev300_lite_heimvision-pe3020w_defconfig | 4 ++++ .../general/overlay/usr/share/openipc/customizer.sh | 7 +++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 139c4a3c5..4dad9da4b 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ EC37-T11 T20L SC2232 RTL8188FU_USB MOR_16M in pr H3C TC2101 SSC337 JXQ03 RTL8188FU_USB NOR_16M done HB-WIFI-Z6 v1.2 T10 JXH62 RTL8188EU_USB NOR_8M in progress HeimVision HM202 SSC325 GC2063 RTL8188FU_USB NOR_8M video-ok, wifi-ok, ir-ok, pan/tilt-ok (74HC595) -HeimVision PE3020-W AK3918EV300 JXF37 RTL8188FU_USB NOR_8M testing, RAM-boot only (OpenIPC kernel): ISP capture-ok, ircut-ok (GPIO 42/41), no streamer +HeimVision PE3020-W AK3918EV300 JXF37 RTL8188FU_USB NOR_8M testing: flash boot ok, ISP capture-ok (OpenIPC kernel), ircut GPIO 41/42; majestic streaming not yet hardware-tested iFlytek XFP301-M T31ZX JXQ03 RTL8188FU_USB NOR_16 research Imilab EC3 CMSXJ25A SSC325 GC2053 MT7603UN_? NOR_16M in progress Dahua IPC-HFW1230SP-V2 SSC335DE GC2053 NOR_16M done diff --git a/devices/ak3918ev300_lite_heimvision-pe3020w/br-ext-chip-anyka/configs/ak3918ev300_lite_heimvision-pe3020w_defconfig b/devices/ak3918ev300_lite_heimvision-pe3020w/br-ext-chip-anyka/configs/ak3918ev300_lite_heimvision-pe3020w_defconfig index 5a503ba12..163e3bda4 100644 --- a/devices/ak3918ev300_lite_heimvision-pe3020w/br-ext-chip-anyka/configs/ak3918ev300_lite_heimvision-pe3020w_defconfig +++ b/devices/ak3918ev300_lite_heimvision-pe3020w/br-ext-chip-anyka/configs/ak3918ev300_lite_heimvision-pe3020w_defconfig @@ -62,6 +62,10 @@ BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y # BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set BR2_PACKAGE_LIBEVENT_OPENIPC=y BR2_PACKAGE_LIBOGG_OPENIPC=y +# The streamer: capture from the kernel's ISP2 host, H.264/H.265 and JPEG on +# the SoC's Allegro encoder (OpenIPC/linux#242). Its OSD is not ported, so +# no fonts. +BR2_PACKAGE_MAJESTIC=y BR2_PACKAGE_MAJESTIC_WEBUI=y BR2_PACKAGE_MBEDTLS_OPENIPC=y BR2_PACKAGE_MOTORS=y diff --git a/devices/ak3918ev300_lite_heimvision-pe3020w/general/overlay/usr/share/openipc/customizer.sh b/devices/ak3918ev300_lite_heimvision-pe3020w/general/overlay/usr/share/openipc/customizer.sh index 9269bdca6..4469bb966 100644 --- a/devices/ak3918ev300_lite_heimvision-pe3020w/general/overlay/usr/share/openipc/customizer.sh +++ b/devices/ak3918ev300_lite_heimvision-pe3020w/general/overlay/usr/share/openipc/customizer.sh @@ -14,7 +14,10 @@ fw_setenv wlandev rtl8188fu-generic #fw_setenv wlanssid Router #fw_setenv wlanpass 12345678 # -# IR-cut: GPIO 42 night, GPIO 41 day, each a short pulse that is driven -# back low. The image has no streamer to switch it yet. +# IR-cut: GPIO 41 day, GPIO 42 night, each a short pulse that is driven +# back low (measured on the board, OpenIPC/builder#234). +cli -s .nightMode.irCutPin1 41 +cli -s .nightMode.irCutPin2 42 +cli -s .video0.codec h264 exit 0 From 4d8293189e63bcb01ea4352ffd1fd3efe1b69365 Mon Sep 17 00:00:00 2001 From: AI Dev Date: Tue, 17 Nov 2026 14:00:19 +0000 Subject: [PATCH 2/2] ak3918ev300_lite_heimvision-pe3020w: the IR-cut comment says which part is measured and which is not --- .../general/overlay/usr/share/openipc/customizer.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/devices/ak3918ev300_lite_heimvision-pe3020w/general/overlay/usr/share/openipc/customizer.sh b/devices/ak3918ev300_lite_heimvision-pe3020w/general/overlay/usr/share/openipc/customizer.sh index 4469bb966..6d7d557ec 100644 --- a/devices/ak3918ev300_lite_heimvision-pe3020w/general/overlay/usr/share/openipc/customizer.sh +++ b/devices/ak3918ev300_lite_heimvision-pe3020w/general/overlay/usr/share/openipc/customizer.sh @@ -14,8 +14,10 @@ fw_setenv wlandev rtl8188fu-generic #fw_setenv wlanssid Router #fw_setenv wlanpass 12345678 # -# IR-cut: GPIO 41 day, GPIO 42 night, each a short pulse that is driven -# back low (measured on the board, OpenIPC/builder#234). +# IR-cut: GPIO 41 pulses the filter to day and GPIO 42 to night, each driven +# back low (measured on the board, OpenIPC/builder#234). Which of Majestic's +# two pins drives which way is not confirmed on this board yet; swap them if +# the filter moves the wrong way. cli -s .nightMode.irCutPin1 41 cli -s .nightMode.irCutPin2 42 cli -s .video0.codec h264