github themactep/thingino-firmware master-2026-12-04

pre-releaseone hour ago

Changes in this release:

  • 3f26ebf ingenic-sdk: motor: interpolate both axes evenly on diagonal moves The 4.4.94 motor driver reduces axis deltas by their gcd and, within each gcd cycle, steps both motors until the minor axis reaches its per-cycle target. The major axis runs continuously while the minor axis advances in a burst then stalls, so combined pan/tilt moves show a staircase on the minor axis. Homing (dx 2650, dy 550) is the obvious case. Add a follow-up patch that keeps the gcd cycle but distributes the minor axis across the major one with a Bresenham accumulator, so both motors advance continuously and finish together. Only the T41 4.4.94 tree is touched; 3.10.14 is unchanged. Signed-off-by: Paul Philippov paul@themactep.com
  • 55f246c package/scriba: switch to 1.0.0 release tarball Track the upstream v1.0.0 release instead of the archived legacy-master commit. The release uses the new HAL source layout, so point the build at src/core, src/hal/, src/protocol/ and src/ui/cli and define SCRIBA_VERSION from the semantic version. Record the SHA-256 of the GitHub-generated scriba-1.0.0.tar.gz. Signed-off-by: Paul Philippov paul@themactep.com
  • af8c212 uboot: regenerate 2026.10 patches (ingenic-t-series @ 790349c22ccc)
  • e3a5142 wifi: hold C210 USB WLAN power off through the U-Boot boot window 413b061 gave gpio.wlan a boot_state for the hog and set it to 0 on the C200 and TC70 (RTL8188FTV on GPIO 51), but both Tapo C210 profiles (same T23N + RTL8188FTV, same GPIO 51) still carry a bare "wlan": 51. The injector hogs GPIO 51 at the runtime-high level, so the module is powered before the kernel scans USB; the first enumeration fails with -88, the dwc2 port stays wedged, and wlan0 never appears (#2020). Set boot_state to 0 on both C210 profiles, as on the C200/TC70, so GPIO 51 stays low through the boot window and S36wireless drives it high later: configs/cameras/tplink_tapo_c210_t23n_sc3336_rtl8188ftv configs/cameras-exp/tplink_tapo_c210_t23n_sc3336_rtl8188ftv The injector output is byte-identical for every other profile. Verified on hardware: a C210 flashed with the resulting U-Boot shows 0bda:f179 enumerating on dwc2 and wlan0 coming up. Second board confirmation of the GPIO-51 mechanism tracked in #2020. Signed-off-by: Andy andylee77@users.noreply.github.com
  • c17cf05 timps: bump to v1.13.2 Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
  • 2c3f32d Change Noorio B310 model number and specs Updated the model number and specifications for Noorio B310.
  • f7db084 core-sigmastar.fragment: fix the fw_env and toolchain notes The file rootfs_script.sh rewrites is the vendor overlay's fw_env.config, not the shared one, and the profile also has to re-assert the 4.9 kernel headers after Makefile.targets appends 3.10. Signed-off-by: Paul Philippov paul@themactep.com
  • 81d20f0 wyze cam4: promote profiles from cameras-exp to cameras os04d10 variant hardware-validated on bench cameras (build, flash, streaming, 30fps, day/night soak); published SD installer exists. gc4653 variant follows its twin profile; not yet confirmed on hardware.
  • b8ac206 ingenic-sdk: bump to d8fa0ef1 rmem is mapped cached on kernel 7, with a whole-cache sync for large ranges; the T40 ISP module unloads without an oops; the A1 decoder no longer hands a restarted process a dead file's command buffer.
  • 59513bc thingino-raptor: dedupe stream choice lists without regard to case A profile list such as "high High" appended two options. Match the case-insensitive lookup the value setter already uses, keeping the first spelling. Signed-off-by: Paul Philippov paul@themactep.com
  • 9d4dd2c uboot: regenerate 2026.10 patches (ingenic-t-series @ 856eef3b51c9)
  • b0e746f sigmastar: say that a camera overlay cannot replace fw_env.config board/sigmastar/post-build.sh copies the vendor overlay's fw_env.config over the target's after the overlays are applied, and does so unconditionally. The comment in the overlay's fw_env.config says a board with a partition of its own for the environment (the N803) could point at it from its camera overlay; that file would be replaced by the copy. Say what a board would have to change, and say in the script that the copy wins over a camera overlay. Comments only; no behaviour changes. Signed-off-by: Andy andylee77@users.noreply.github.com
  • cf679f8 core-sigmastar.fragment: restore the reason for the post-build step The previous commit said the rootfs_script.sh fw_env rewrite does not run on these boards. It does: NOR flash and U-Boot 2026.10 are both Kconfig defaults, so a SigmaStar profile resolves to them without the fragment naming either (checked in the resolved .config of the N803 profile). Say that, and keep the part of the review that is right: post-build.sh copies the vendor file unconditionally after the overlays, so a camera overlay's own fw_env.config does not survive it. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 4dbe213 uboot: regenerate 2026.10 patches (ingenic-t-series @ fe75d0cb0ec4)
  • d0c72a3 thingino-raptor: leave the vendor dependency split to the HAL change The sigmastar-lib dependency in thingino-raptor.mk is right only once the streamer and the HAL both carry the SigmaStar backend: at the pinned raptor the Makefile still links -limp -lalog on every platform but NA51055, and the pinned HAL rejects INFINITY6C. Take it back out of this change, which is then the core fragment alone; it lands with the backend. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 55f607c core-sigmastar.fragment: answer the second review of #2339 - Do not select WireGuard. The family kernel is 5.10 with no WireGuard, and thingino-vpn then selects the out-of-tree wireguard-linux-compat, which does not build for kernels from 5.6; the VPN choice defaults to None. List it with the omissions. - Select sigmastar-uboot: pack needs the u-boot-<SOC_MODEL>-nor.bin it installs, and nothing else selected it. - Say what is true: core.fragment keeps the Ingenic vendor libraries out of stripping (BR2_STRIP_EXCLUDE_FILES) rather than stripping them; only BR2_PACKAGE_THINGINO_GPIO is an omission of the three listed (core.fragment selects neither _LEDD nor _DAYNIGHT); post-build.sh copies the vendor fw_env.config after the overlays, which is why a camera overlay cannot replace it (the rootfs_script.sh rewrite does not run on these boards). Signed-off-by: Andy andylee77@users.noreply.github.com
  • bb87091 qemu-ingenic: bump to ingenic-0.7.37
  • f5eeb3b thingino-raptor: answer the review of the stream-choices change - Move the "WebUI stream choices" menu inside if BR2_PACKAGE_THINGINO_RAPTOR: the file is sourced for any streamer, so on a prudynt build the five options had no consumer. - streamer-choices.js: mode 100644, like its neighbours. - After the width or the height changes, the other offers only the sizes listed with it; the one just changed keeps its whole list, and the value the camera has stays offered. The change handlers and what they send are unchanged. - The - Select - placeholder is disabled, so a closed list sends no empty value; 1920X1080 is accepted; lists are de-duplicated and a value is matched without regard to case. - Drop the dead text-end replace and trim the header of the script. - Prefix the make helpers with THINGINO_RAPTOR_UI_ and make the directory with $(INSTALL) -d. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 65043c9 core-sigmastar.fragment: answer the review of #2339 - Apply the kernel patches from the version dir and the family dir, as core.fragment does, instead of the family dir alone. - Say only what the tree has: drop the comments about other Infinity families, patch directories and kernels that are not here yet, and the size claim for XZ. The rationale that does not belong in a fragment is in the commit message of the commit that added it. - Correct "the same set core.fragment selects": it also selects thingino-ethernet and sigmastar-light. - thingino-raptor-hal: drop the SigmaStar backend symbol. The SigmaStar system packages already select sigmastar-sdk, which selects sigmastar-lib, so the select added nothing; the HAL backend change can bring its own. thingino-raptor keeps the explicit build-order dependency. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 3a5ef9b raptor-config: default the speaker to 60/22 instead of 80/25 IMP_AO_SetVol is not a percentage. 60 is the unity point, each step is 0.5 dB, and the range runs -30 (mute) to 120 (+30 dB). Raptor's own fallback of 80 therefore put +10 dB of software gain on a path whose input is already at full scale: every sound in thingino-sounds peaks between -0.1 and -5 dBFS, so all of them left the codec clipped by 5 to 10 dB. The boot announcements (portal up/down, sysupgrade) came out as flat-topped square waves driving the amp at its maximum. ao_gain is the same trap in coarser steps. IMP_AO_SetGain is 1.5 dB per step over 0-31 for -39..+6 dB, so unity is 26 and the shipped 25 was only -1.5 dB. Default it to 22, which is -6 dB. Together that is 14.5 dB quieter than before, measured on a T41NQ (jz-inner-codec) with the shipped chimes. Both are Kconfig defaults, so no camera fragment changes and savedefconfig still emits nothing for either key. A camera that wants the previous level sets RAPTOR_AUDIO_AO_VOLUME="80" in its raptor.config. Signed-off-by: Paul Philippov paul@themactep.com
  • 6c73da5 qemu-ingenic: bump to ingenic-0.7.36
  • 41e9b52 camera: noorio t110: use the stock GC4023 IQ bin The vendor image does not ship the SDK's t41/gc4023.bin: 43% of the day/night payload differs, and the vendor file carries distinct day and night sets where the SDK bin repeats one table in both halves. Install it through BR2_SENSOR_1_IQ_FILE so it lands at /usr/share/sensor/gc4023-t41.bin, the name the t41 ISP opens ("/etc/sensor/%s-t41.bin", /etc/sensor being a symlink to /usr/share/sensor). That is the same path the SDK default would have been installed to, so nothing else in the build changes. Header and size match the 56 stock t41 bins: "1.00", "t41", 0x30 = 0x3e010, 0x34 = 0x38 = 0x1f008, 254032 bytes = 0x40 + two 0x1f008 sets. Signed-off-by: Paul Philippov paul@themactep.com
  • 6e1e68c thingino-raptor: pulldowns for the stream pages from the camera profile The Main stream and Substream pages are text boxes for width, height, bitrate and profile, so a user has to know which values the camera takes. A camera profile can now list the choices (BR2_PACKAGE_THINGINO_RAPTOR_UI_* for the resolutions, bitrates and H.264 profiles of each stream). The build writes them to /var/www/a/stream-choices.js, and streamer-choices.js, loaded before preview.js, turns the matching text boxes into pulldowns. preview.js binds its change handlers to the fields when it loads, so the conversion has to come first; the handlers and what they send are unchanged. A value the camera already has is never lost: whatever preview.js assigns to a pulldown that is not in its list becomes an option of its own. A setting without a list stays a text box, and the lists are empty by default, so no existing profile changes. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 0b3ab20 thingino-raptor: build against sigmastar-lib on SigmaStar boards thingino-raptor depends on ingenic-lib, and on the Ingenic libc shims, for every board. SigmaStar boards have no ingenic-lib. The HAL dlopens the MI libraries, so the linker never sees them and build order is the only place the dependency can be stated; without it a parallel build can install the daemons before the libraries exist. Split the dependency on the vendor: sigmastar-lib on SigmaStar, ingenic-lib and the shims otherwise. thingino-raptor-hal gets a backend symbol per vendor to match, selecting sigmastar-lib for SigmaStar. Ingenic builds are unchanged. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 1136caa configs: add core-sigmastar.fragment The SigmaStar counterpart of core.fragment. core.fragment hardcodes the Ingenic kernel config path, selects BR2_TARGET_UBOOT with an Ingenic SFC flash controller and strips Ingenic vendor libraries; overriding those from a later fragment would leave Ingenic values in .config. A separate fragment per vendor keeps the two diffable: everything that is not vendor specific is the same as in core.fragment. Camera defconfigs name it in FRAGMENTS, as they name core today. Nothing selects it yet, so no existing profile changes. Signed-off-by: Andy andylee77@users.noreply.github.com
  • c171fd3 Merge master into pr/sigmastar-light to resolve Config.in conflict # Conflicts: # Config.in
  • fe25297 raptor-watchdog: leave on-demand streams out of the stall check A stream with on_demand set encodes only while a client reads its ring, so its frame count stands still when nobody watches. Once a channel is a stall candidate, ask raptorctl rvd status (3 s limit) and drop the ports of channels marked on_demand. If the call fails or times out, nothing is dropped and the stall is handled as before. Signed-off-by: Andy andylee77@users.noreply.github.com
  • eacd4e3 sigmastar: stamp SOC_MODEL into os-release, correct three stale comments soc -m reads SOC_MODEL from /etc/os-release and falls back to ssc30kq, so an image without the stamp reports the wrong model on every other board. Stamp it next to SOC_ARCH. Also fix the soc -s usage text (it prints nothing on Infinity6C only), a stale header pointer in sensor, and the no-wifi comments in S03mac (the Tapo C120 is a Wi-Fi board). Signed-off-by: Andy andylee77@users.noreply.github.com
  • e82ffea make: drop the redundant FLASH_SIZE_MB from the SigmaStar image recipe board/sigmastar/post-image.sh sizes the flash table to FLASH_LAYOUT_MB, which thingino.mk exports, and reads no FLASH_SIZE_MB. Stop passing it. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 40e0755 thingino-raptor: add a video pipeline watchdog for SigmaStar boards A SigmaStar board's video pipeline can stop without a process dying: the vendor MI modules log "[MI ERR]" lines and then the encoder's finished-frame count stands still, or rvd sticks in the driver in state D, which no signal can end. Add raptor-watchdog and its init script S34raptor-watchdog: - a new "[MI ERR]" line in the kernel log saves a fault report at once, while the ring still holds the first errors (it is about 32 KB and the warning flood that follows wraps it within minutes); - an encoder output port whose mi_venc FinishCnt stands still for STALL seconds while rvd runs, or rvd stuck that long in state D, saves a report and restarts raptor; - if the restart does not bring frames back, it reboots, unless it already rebooted MAX_REBOOTS times in the last hour. A daemon that dies is S31raptor's watcher's job, not this one's: two restarters would race, so nothing is judged while S31raptor runs, while the stream apply holds its lock, or in the first GRACE seconds after rvd starts. Reports go to /root/raptor-faults, the newest KEEP of each kind kept; "raptor-watchdog report [reason]" writes one by hand. The tunables are in /etc/default/raptor-watchdog, and RAPTOR_WATCHDOG=0 turns it off. thingino-raptor.mk installs both files for a SigmaStar vendor only. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 99c429a scripts: expand BR2_EXTERNAL in get_override_path add_override() stores tree-relative overrides in local.mk as the make variable form "$(BR2_EXTERNAL)/overrides/", which buildroot expands at build time. get_override_path() returned that literal string, so shell-side consumers (-u update checks, dir existence tests) failed for every package stored with the portable form. Expand $(BR2_EXTERNAL) literally to the firmware tree root when the detected value contains it. Substring replacement only -- no eval, the value comes from local.mk and must never be executed.
  • d208c61 sigmastar-light: add the PWM light tool for SigmaStar boards The IR and white LED banks of the SigmaStar boards this tree supports are driven by PWM channels, not GPIO lines, so thingino's GPIO light script cannot switch them. Add sigmastar-light: /usr/sbin/light, with the command line of the GPIO script (the web UI's light buttons call "light <0|1|~>") plus "on " and "brightness", and S30light, which sets the channels up at boot and leaves the banks off. Which PWM channel drives which bank is a board fact, read at build from the camera's thingino.json (gpio.ir850.pwm_channel and gpio.white.pwm_channel; a bank the file does not name is absent) with the host jct, and written to /etc/default/light. The tool is installed at target-finalize because thingino-raptor and thingino-daynightd install a /usr/sbin/light of their own, and the per-package merge copies duplicates in package-name order, not dependency order; a camera overlay still replaces it. The package is sourced in Config.in and nothing selects it yet. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 7bc6458 board/sigmastar: give the Tapo C120 its label MAC and name a board without Ethernet Three init scripts in the SigmaStar vendor overlay for a board whose only network interface is a Wi-Fi dongle, the TP-Link Tapo C120: - S02oemmac restores the unit's label MAC from the OEM factory_info partition before S03mac would derive another, on a C120 that still has it; - S36wlanmac saves the dongle's own address as wlan.mac once wlan0 is up, so a boot where the driver falls back to a Realtek-prefixed address that changes every time does not make the unit a new host to DHCP; - S37hostname names the board again once S36wireless has brought wlan0 up, because lib-serial-mac names a board with no Ethernet after wlan0. S02oemmac and S36wlanmac act on the C120 only (the device-tree model names it) and only while wlan.mac is unset, so the web UI and a manual jct set still win. Signed-off-by: Andy andylee77@users.noreply.github.com
  • a834c32 thingino-system: add the SigmaStar platform utilities thingino-system installs soc, sensor, usb-role, S03mac and lib-serial-mac from files/ingenic/ for Ingenic boards, and they read Ingenic registers that fault on a SigmaStar SoC. Add the SigmaStar set under files/sigmastar/ and install it for SigmaStar boards, in a block of its own beside the Ingenic one, as the Ingenic block's own comment asks of another vendor: - soc reports the build-stamped model and family and, on an Infinity6E, the OTP die ID (it prints nothing on another generation, so soc -s is empty on an Infinity6C); - S03mac derives the MAC from that die ID, the one source that is identical before and after a full sysupgrade, and writes nothing where soc reports none, so the board keeps its ethaddr; - sensor reports the configured sensor and the streamer's geometry; - usb-role is a no-op, these SoCs have no software USB role switch; - lib-serial-mac turns the die ID, or the Ethernet driver's address, into the hostname suffix, and names a board with no Ethernet after wlan0. BR2_PACKAGE_THINGINO_SYSTEM_SIGMASTAR defaults on for a SigmaStar vendor and is invisible otherwise. Config.sigmastar.in is SigmaStar's half of BR2_THINGINO_SYSTEM_PACKAGES, mirroring Config.ingenic.in, and Config.in selects it for the SigmaStar vendor. The select of sigmastar-sdk in Config.sigmastar.in needs the package Kconfig that the SigmaStar wiring change sources. Signed-off-by: Andy andylee77@users.noreply.github.com
  • bcf4f5a scripts: add check-target-libs.sh Check that every DT_NEEDED of every ELF in a target directory resolves to a library that is in the target, and that per-package copies of one library agree. A package can link against a library that exists in the toolchain sysroot but is never shipped to the target, and Buildroot's external toolchain copies only a fixed set of runtime libraries there; the build stays green and the binary fails at exec time with its loader error going nowhere. Usage: scripts/check-target-libs.sh output///target Signed-off-by: Andy andylee77@users.noreply.github.com
  • 8f4b2a9 make: SigmaStar image assembly and kernel config path in the split Makefiles SigmaStar's flash layout is written by board/sigmastar/post-image.sh (#2322), the one producer of images/u-boot-env.bin and the firmware image on a SigmaStar build. Branch on SOC_VENDOR in Makefile.utils so the firmware image depends on the bootloader, kernel and rootfs only and calls that script, and the bootloader rule checks that sigmastar-uboot installed it instead of rebuilding U-Boot; Makefile.ota's pack recipe gets a SigmaStar branch that skips the Ingenic partition report. KERNEL_CONFIG_FILE is vendor-aware: a SigmaStar family's base config is board/sigmastar//kernel//.generic.config, and its NOR erase block is 64 KiB (mtd erasesize 0x10000), stated in place of the Ingenic CONFIG_ERASE_SIZE_64K probe. Ingenic builds take the same paths as before. Signed-off-by: Andy andylee77@users.noreply.github.com
  • e435632 kconfig: wire the SigmaStar vendor packages and the sensor-source option Source the four SigmaStar packages merged in #2314 (sigmastar-lib, -sdk, -sensor-headers, -uboot), add BR2_SIGMASTAR_SENSOR_SOURCE (build the sensor drivers in sigmastar-sdk's sensor-src, which soc/sigmastar/infinity6c.mk from #2322 already reads), and select BR2_TARGET_UBOOT for Ingenic boards only: a SigmaStar board keeps its vendor bootloader or builds one through sigmastar-uboot, never through BR2_TARGET_UBOOT. Nothing selects the SigmaStar packages yet. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 540beaf qemu-dev: gpio counts the SoC's ports in-pa to in-pf are properties of every SoC's GPIO, so gpio asked a T31 for port D and stopped on the QMP error.
  • 9c1c1aa docs: QEMU testing as of ingenic-0.7.36 The ATBM6441 and ATBM6461 take their own DHCP lease, what was run and what the Wansview A1 still lacks; an SD card section with the reference pins, sd-cd and hot eject; the T21's PWM6 pad and the Zeratul hand-over.
  • dd55c38 qemu-test: the T21's and T30's PWM pads as measured A T21's PWM6 is PC15's function 1, not 0, as QEMU ingenic-0.7.36 has it. The other guessed PWM numbers of the T21 and T30 were right and lose their question marks.
  • 4c10a1e qemu-dev: name the camera's card-detect pin with sd-cd QEMU ingenic-0.7.36 wires the SD slot's switch itself, to the reference board's pin by default. up --sd passes the camera's pin as the SoC's sd-cd, so the default never lands on a pin the camera uses otherwise, and eject and change reach the guest. Older QEMU keeps the in-pX hold.
  • 2e693ec qemu-dev: the ATBM6461's MCU watchdog is off unless --mcu-wdt QEMU ingenic-0.7.36 has the chip's 12 s master watchdog, which resets the SoC. An image's first cold boot does not stop it in time there, so up passes mcu-wdt-ms=0 and --mcu-wdt leaves it armed as on the camera.
  • 8d70a49 qemu-dev: the ATBM6461, ATBM6441 and ATBM6041 Wi-Fi models --wifi stopped with "no Wi-Fi model" on wansview_a1, cinnado_b6 and jooan_s7u. The 6441 is the camera's MCU too: its UART goes to the SoC's UART0. up now says when the camera took no address on the access point.
  • 2345286 ingenic-sdk: bump to 1942c4c6 The T23 ISP holds the VPU and IVDC clock gates while it is active, as the vendor driver does.
  • 9b812ed scripts: color the camera selection confirmation prompts Green when the camera model was detected from the device over SSH, red when falling back to the previously selected value, so the operator can tell the two cases apart at a glance. Signed-off-by: Paul Philippov paul@themactep.com
  • 2d2d74a board: sigmastar: carry the device-tree patches under package/all-patches Move the five board device-tree patches and their README from board/sigmastar/infinity6c/patches/linux to package/all-patches/linux/5.10/infinity6c, where the kernel fragments already look for a family's patches ($(KERNEL_VERSION)/$(SOC_FAMILY)), so SigmaStar uses the same mechanism as every other kernel and keeps the common patches. Only the location changes; every patch is as it was. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 6543bde board: sigmastar: address the second review of the board and kernel files Rename infinity6c.config to infinity6c.generic.config, the suffix the generic kernel-config path uses, so making the path vendor-aware needs no second rename. Document the Tapo C120 patch (0005) in the README. Size the flash table to FLASH_LAYOUT_MB, the layout size thingino.mk derives from the chip and any flash cap, not the chip. Say that every profile builds sigmastar-uboot, so every build makes u-boot-env.bin, though the OEM-U-Boot boards never load it. Note in fw_env.config that sigmastar-sdk creates the scratch file. Drop two references to files that are not in the tree (infinity6e.mk, gen-board-dts-patch.sh) and wrap an overlong comment. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 50520b7 camera: noorio t120, use short gpio notation in config
  • 13753a1 modules: skip mpsys-driver when no nmem reservation mpsys_driver.ko parses /proc/cmdline for nmem= and returns -EINVAL from its init when the bootarg is absent, so every T40/T41 build without an nmem reservation logged a failed load at boot. The reservation comes from the U-Boot environment and can change on the device, so decide at load time: skip the module unless /proc/cmdline carries a non-empty nmem=. Write the load line unconditionally while MPSYS is enabled so the driver stays available when nmem is added later. Signed-off-by: Paul Philippov paul@themactep.com
  • 19d13c2 docs: describe the thingino.json split and user config layers Document the image file, the user delta, and the tmpfs working view; how build-time user layers and legacy thingino.json files migrate; and how cfg-backup merges a restored delta instead of replacing the image delta. Signed-off-by: Paul Philippov paul@themactep.com
  • fb6baa9 thingino: migrate legacy user config files to the split layout The thingino.json split made /etc/thingino.user.json the user delta over the image file, but the build and user-push still read a per-layer thingino.json, and a pre-split full copy could stay in the user file. Rename a legacy user-layer thingino.json to thingino.user.json the first time the build or user-push reads the layer. On MTD the layers are now written to /etc/thingino.user.json as a delta against the merged image; MMC roots keep the single image file because they have no /rom. On the device, normalize a user file that still holds a full config down to a delta, and merge a restored backup delta over the image delta so an upgrade does not shadow the build-time user layer. Signed-off-by: Paul Philippov paul@themactep.com
  • 6be8381 thingino-config: build the runtime config view in tmpfs The split kept the image config in /rom and the user delta in /etc/thingino.user.json, but the merged view was written into /overlay/etc while that upper layer is the mounted root. Mainline overlayfs does not tolerate that: touching the upper behind the driver turns the next write to /etc into an endless loop and serves stale data even when it does not. Build /run/thingino.json from /rom plus the delta and bind-mount it over /etc/thingino.json. Every consumer keeps reading /etc/thingino.json, so no code has to know about a second path; the overlay copy is never written or removed. jct writes the delta and rebuilds the tmpfs view; reset stores an empty delta tombstone so a legacy overlay copy is not re-imported. Signed-off-by: Paul Philippov paul@themactep.com
  • f0c76f4 Merge branch 'master' into fix/thingino-config-overlay-mkdir
  • a037c4e kernel: bump the 7.4 pin to f54cbcc78e33 PWM periods count from TDFR + 1 on the T10 to T31, the T21's PWM6 is function 1 of PC15, T23/T31 pull enables are one bit a pad, and the T21/T30 keep all eight TCU channels for PWM.
  • fb1c8a4 thingino-config: keep the image config read-only and merge on tmpfs The runtime config is layered like prudynt: /rom/etc/thingino.json is the read-only image core, /etc/thingino.user.json is the only writable copy, and /run/thingino.json is the consolidated working copy built from the two with jct import. jct routes writes to the user file and reads to the working copy. thingino-config refreshes the working copy and migrates a legacy writable /etc/thingino.json back into the user layer. Nothing writes /etc/thingino.json, so the overlay upper never gets a copy of it. This replaces the mkdir-only fix: creating /overlay/etc behind the mounted overlay triggered the 7.4 hang, but the script also wrote the merged view there, which served stale data. Signed-off-by: Paul Philippov paul@themactep.com
  • f245787 raptor: webtorrent: keep the restart CGI under uhttpd's timeout uhttpd runs CGIs with -T 15, but save_restart could wait up to 15 s for rwd readiness plus a 5 s settle and get killed mid-response. Bound the readiness poll to 8 s and the settle to 2 s so the CGI answers (or returns a readable 504) first, and match the page's busy text. Signed-off-by: Paul Philippov paul@themactep.com
  • 4704272 raptor: webrtc-whip: tighten backend validation and TLS Accept the https scheme in any case and normalize it, reject an empty port after the colon and hosts with no alphanumeric, and only skip TLS verification for the loopback default so a configured remote backend is verified normally. Signed-off-by: Paul Philippov paul@themactep.com
  • 875b161 board: sigmastar: address review of the board and kernel files post-image.sh: say which partition table wins (the kernel's forced command line, set in each camera's kernel fragment; the table computed here only reaches a board that loads this tree's U-Boot environment, the Tapo C120), name the image after CAMERA instead of the undefined OPENIPC_VARIANT, check FLASH_SIZE_MB (8, 16 or 32) instead of a fallback thingino.mk never lets run, and build u-boot-env.bin only when sigmastar-uboot is in the build, so the OEM-U-Boot boards need no mkenvimage. post-build.sh: report an unset TARGET_DIR and a missing fw_env.dat line in the overlay instead of aborting silently. fw_env.config: the camera kernel fragments force the command line; the base config does not. infinity6c.config: carry the Thingino toolchain's compiler strings, not the OpenIPC musl ones. kernels/sigmastar.mk: the nine commits are the vanilla root, the BSP patch and OpenIPC's seven fixes. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 94627ad raptor: webrtc-whip: validated configurable WHIP backend Replace the SERVER_ADDR-derived backend with an admin-configured whip_backend key in [webrtc] (raptorctl config set webrtc whip_backend https://host:8554). SERVER_ADDR is the cameras own connection address and cannot express a remote rwd; whip_backend can. The value is validated against an allowlist before use: https scheme only, IPv4/hostname or bracketed IPv6 host, optional numeric port 1-65535, no userinfo/path/query, no 0.0.0.0, no unspecified or zone-tagged IPv6. Unset or invalid values fall back to the loopback default. Credentials still come from the [webrtc] section; client input never reaches the backend URL.
  • c7976a7 board: sigmastar: state what the N803 and C120 device trees are Drop the draft wording from the N803 and Tapo C120 patch headers. The N803 header loses its validate-on-the-bench note. The C120 header describes the node as it is: the OEM padmux verbatim, the PHY-maximum lane count against the 2 lanes the SC438HAI drives, and the IR-cut GPIO, which software drives. Comments only; every hunk is as it was. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 756c820 package: sigmastar-sdk: say HDR is not supported in the SC438HAI driver Reword the driver header and the unregistered HDR entry points: the HDR code comes from sc450ai and is not registered, so HDR is not supported. Comments only; the patch's blob hash is regenerated. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 41881d9 board: sigmastar: sign off the device-tree patches, 0644 on 0003 Give the five board device-tree patches a Signed-off-by, as the repository's AGENTS.md asks of every patch, and commit the N803 patch 0644 (it was 0755). Only the commit-message headers change; every hunk is as it was. Signed-off-by: Andy andylee77@users.noreply.github.com
  • ea9901d ingenic-pwm: bump to 17cd93f9 The pwm tool drives the kernel's standard PWM interface where there is no /dev/pwm.
  • 015ffb9 package: sigmastar: address review of the vendor packages State licences as the hosting repositories do: sigmastar-lib is MIT packaging around SigmaStar's proprietary prebuilt libraries, sigmastar-sdk is GPL-2.0+ packaging and sensor_config.c around proprietary MI modules and sensor drivers, with the two drivers of ours (GC8613, SC438HAI) GPL-2.0. Drop REDISTRIBUTE = NO from the three packages, as the Ingenic vendor packages set none. Fix the sigmastar-sdk help text (the modules are prebuilt against 5.10.61, not 4.9.84), the help URLs (thingino/*, matching _SITE) and the drop-date comment (1230, not 0607). Commit the sensor-headers files 0644. Regenerate the two sensor patches with real blob hashes in place of the placeholder index lines, and give the GC8613 and cmd_sf patches a Signed-off-by. Correct the SC438HAI driver header: it runs on a Tapo C120, and what is not verified, and the empty sensor-name limit, are stated. Signed-off-by: Andy andylee77@users.noreply.github.com
  • c9705f3 ingenic-pwm, thingino-gpio: correct the PWM pad tables pwm-ctrl: the T21 carries PWM0/PWM1 on PC17/PC18 too and its PWM6 is function 1 of PC15 (both measured on a T21N); the T30's PC25 to PC28 are function 0 (measured on a T30X); PC pads were hidden on every SoC but the T31A, though only the T31 keeps them (and PA22) to its BGA part; tables for the T32, T33, T40, T41 and A1. The GPIO page showed a pin's place in the list as its PWM channel.
  • 6cbe85c qemu-ingenic: bump to ingenic-0.7.35
  • c456fa5 thingino-kopt: PWM on 7.x kernels A profile with BR2_THINGINO_PWM_ENABLE gets the in-tree PWM drivers, and the board fragment puts its lights on their PWM pads: gpio.ir850, ir940, white and any gpio entry with a pwm_channel or pwm_level, when the pin is a PWM pad of the kernel's pin controller. Active-low pins and channels the system timer owns stay GPIOs.
  • 3e570e3 ingenic-pwm: pwm-ctrl on the kernel's own PWM drivers Without /dev/pwm and with a pwmchip, the pad table comes from the pin controller's PWM groups in debugfs and pinmux-select puts the pad on its PWM function, so every SoC the kernel describes works without a table here. The vendor module path is unchanged.
  • a878960 wifi: load host radios early and drive bring-up from netdev events USB/PCIe radios enumerate while userspace is still coming up, so their modalias autoload fails. The driver was first loaded in S36wireless, after rvd had started the 4K ISP pipeline; under that load the AIC8800 stays in its ROM loader and never fetches firmware. The same radio boots in a few seconds while the ISP is idle. Load host-enumerated radio drivers from the early module phase (/etc/modules.d/05-wifi) so the radio boots before the streamer. Replace the fixed 30 s interface wait with events: - S36wireless loads the module, pulses the WLAN GPIO once the module is loaded, and returns. It sets the derived MAC when wlan0 is present. Nothing polls. - S38wpa_supplicant records /run/wlan_wait and returns when the netdev is absent instead of waiting for it. - A wlan0 mdev rule runs a handler on interface creation. It sets the derived MAC and starts the supplicant, portal or ifup, so a radio that appears after boot still comes up. Applying the MAC on the netdev event also keeps the SoC-derived address in place. A late interface used to keep the AIC8800 factory MAC and took a different DHCP lease. Signed-off-by: Paul Philippov paul@themactep.com
  • 731803f board: add the SigmaStar board support board/sigmastar/ holds what the SigmaStar images need beyond the packages: - post-build.sh puts back the board's fw_env.config after rootfs_script.sh, which rewrites it to a flash device these boards must never write: with an OEM U-Boot, mtd1 is the kernel partition on the Anjvision layout, and the first fw_setenv after a flash erased its first 64 KB. - overlay/etc/fw_env.config points fw_printenv and fw_setenv at a scratch file, so Linux cannot reach the real environment. - post-image.sh sizes the kernel and rootfs partitions to the built images, fails when an image exceeds its partition, and writes the U-Boot environment (uenv.txt, u-boot-env.bin) that describes the layout, for builds that use sigmastar-uboot. - infinity6c/kernel/5.10/infinity6c.config is the base kernel configuration. - infinity6c/patches/linux/ carries one device-tree patch per board, each a new file on top of the SSC027D reference tree (UVision MC-A85, JL12D2, N803, YMF46D, Tapo C120). Nothing selects any of it yet: the Kconfig and Makefile wiring follows in a later change. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 9e686c0 soc: SigmaStar Infinity6C build parameters Adds to the family file what the SigmaStar packages and the image step read: - SOC_UBOOT_BIN: sigmastar-uboot installs its NOR boot image under this name. Left unset, pack looks for Buildroot's default file, which nothing produces, and falls through to a target Buildroot does not define when BR2_TARGET_UBOOT is off. - SIGMASTAR_DROP, _LIBC, _GCC, _KREL: which prebuilt vendor drop the MI libraries and modules come from, and the libc and kernel release it is built for. - SIGMASTAR_SENSOR: whether the sensor drivers are built from source or the drop's prebuilt ones are used, from BR2_SIGMASTAR_SENSOR_SOURCE. All of it sits inside the existing model filter, so no other family evaluates it. The values are exported because the packages read them inside Buildroot's make, which only sees what this one exports. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 8825d16 kernels: add the SigmaStar kernels Infinity6C runs Linux 5.10.61 from thingino/thingino-linux: a vanilla 5.10.61 root, the vendor BSP applied as one patch, and the seven OpenIPC fixes made to it after that. The kernel is pinned by hash, because the prebuilt MI modules are tied to it by vermagic, so a family has to keep the kernel its modules were built against. Only Infinity6C is carried. The file follows kernels/ingenic.mk: the version defaults per family, a branch per family, and an unset KERNEL_BRANCH rejects the combination instead of falling back. thingino.mk includes it only for SOC_VENDOR=sigmastar, so no other vendor reads it. Signed-off-by: Andy andylee77@users.noreply.github.com
  • ee7fc04 thingino: split thingino.json into image config and user delta Runtime writes to /etc/thingino.json now go to /etc/thingino.user.json. /rom/etc/thingino.json is the image base, /etc/thingino.json is a merged view regenerated at boot and after writes, and only the user delta is backed up. The target jct is a wrapper around jct.real. Writes are applied to the merged view, exported as a difference against /rom, and stored in the user file. Deltas are normalized on every write, so posting a full domain does not freeze image keys. thingino-config migrates a pre-split full overlay copy once and rebuilds the merge at S00 before the services start. A ROM hash marker keeps an unchanged boot from rewriting the overlay. Caveats: - Existing stale overlay copies and backups are not cleaned automatically. They still need the SD-card runonce.sh one-off or a factory reset; the split only prevents new ones. - A pre-split full overlay copy is split against the current image, so a stale board key already in that copy becomes a user delta. Run the one-off after upgrading a camera with a stale full config. - jct del removes a user override, not a key that exists only in the image. Image keys change with the image. - The split is active only when /rom/etc/thingino.json exists. Non-MTD roots keep the old single-file behavior. - Editing /etc/thingino.json directly is not persistent on MTD. Use jct or edit /etc/thingino.user.json. - Legacy full-file cfg-backup archives are converted to a delta on restore, including the stale-key caveat above. - Tools that call jct.real bypass the layer. /usr/bin/jct is the wrapper. - cfg-backup saves /etc/thingino.user.json only; the image file is not backed up. Signed-off-by: Paul Philippov paul@themactep.com
  • ee4256f open-tx-isp, openimp: move the 7.x pins to 18601ae44c0a and b14b292c1986 The pair thingino aperto runs on the vendor kernel; both driver patches apply unchanged.
  • 32cad38 firstboot: fix the -e help after the backup wipe The -e path now clears the config backup too, so the help must say so. Signed-off-by: Paul Philippov paul@themactep.com
  • 75b1384 firstboot: erase the config backup on reset S37cfg-autorestore restores the cfg-backup tarball whenever the overlay is empty, so wiping the overlay brought back the configuration it had just erased, including stale board GPIO keys. Erase the backup partition with the overlay when the layout has one. Signed-off-by: Paul Philippov paul@themactep.com
  • afebc1e thingino-kopt: name the MMC hosts when the 7.4 tree gets its Wi-Fi host The two hosts probe in either order, so a board without mmc aliases had its card slot as mmcblk0 on one boot and mmcblk1 on the next.
  • abc934a open-tx-isp, openimp: build for the T31 on kernel 7 Both packages move to the maintained Lu-Fi repositories; the vendor kernels keep the v2026.11.07 tags, 7.x pins next. The driver builds natively against ingenic-7.4 with two patches (no V4L2 sensor bridge without a V4L2 core; vendor clock names and rate rounding); the sensor is the SDK's vendor source built against it. The SDK builds neither its ISP firmware module nor its sensor then. Adds a Z55 profile on the open stack.
  • a5894c6 ingenic-sdk: no vendor PWM load lines on 7.x kernels pwm_core and pwm_hal exist for the vendor kernels only; a 7.x image with BR2_THINGINO_PWM_ENABLE listed two modules it does not have.
  • b512852 ingenic-sdk: bump to 3a483c6d The gc2053 sensor driver for the T31 on 7.x kernels.
  • 608c587 configs: add the Wyze Cam v3 (T31X, GC2053, ATBM6031) on kernel 7.4
  • dc9fb0d thingino-kopt: status LEDs in the 7.4 device tree The mainline kernel has no board file to carry BR2_THINGINO_LED_, so the led tool found no /sys/class/leds/led_ there. The board fragment now gets a gpio-leds node with the profile's LEDs.
  • 5733e87 noorio t120: promote profile from cameras-exp to cameras Hardware-validated on the bench camera (build, flash, streaming, WiFi, pan/tilt motors) since its introduction in #2187. No config changes beyond relocating the directory and updating the IQ file path; mirrors the T110 promotion (bd49939).
  • 4a669e1 qemu-ingenic: bump to ingenic-0.7.34
  • 20c9b4e ingenic-sdk: bump to d1203089 Local SHA of the A1 firmware-blob link fix; it becomes real once the SDK is pushed.
  • 83ec874 ingenic-sdk: A1 7.x display, decoder, HDMI audio and AIP follow their switches They built unconditionally, adding the modules to every A1 image, which no longer fits a 16 MB flash.
  • b5cacd1 package/go2rtc: hash the vendored v1.9.15 tarball The 1.9.15 bump left out the -go2 hash, so a build without it in its download directory stopped on a missing hash.
  • 5c6ce8f package/llhttp: hash the v9.4.4 tarball the package downloads The hash file named llhttp-9.4.4.tar.gz, so the LightNVR builds failed on a missing hash for v9.4.4.tar.gz.
  • c9b3d85 configs: A1N NVR and QEMU A1N on kernel 7.4 smart_nvr_a1n_eth with the 7.x module set: rmem, JPEG encoder, IPU, NNA and AIP, with an nmem region for the NNA. The A1 has no ISP, so no sensor. The QEMU variant adds the audio module.
  • 7423ece kernels: 7.4: A1 The ingenic-7.4 pin carries the A1 SoC support. The generic board is the T41 fragment with HIGHMEM, AHCI SATA, ext4, the framebuffer core, the A1 RTC and the TRNG, without PWM and CPU hotplug (as ingenic_a1_defconfig).
  • 916e871 kernel, ingenic-sdk: bump to fd5b92a26ca8 and 60043def The kernel adds the CW080 board; the SDK adds the CW080 and the T32 Pro TNPU, plus an rmem mmap alias fix. No other family's sources change.
  • a69e325 Merge branch 'master' into pr/timps-v1.13.1-master
  • 984b603 package: add SigmaStar Infinity6C vendor packages Adds the four packages the SigmaStar Infinity6C platform needs, the first step of the platform series (board/SoC/kernel and config wiring follow): - sigmastar-lib: prebuilt MI userspace libraries (1230 uClibc drop), from github.com/thingino/sigmastar-lib - sigmastar-sdk: MI kernel modules, runtime blobs and the ms_cus_sensor source framework with the GC8613 and SC438HAI sensor drivers, from github.com/thingino/sigmastar-sdk - sigmastar-uboot: U-Boot from openipc/u-boot-sigmastar (C120 first flash only) - sigmastar-sensor-headers: the sensor-framework headers as MIT clean-room declarations matching the 1230 mi.ko, shipped in-tree New files only; no existing board is affected. The packages are not yet wired into Config.in or the SoC/board makefiles (later PRs), so nothing selects them. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 3f97dd9 configs: Jooan W8-U sensor 0 is the SC2337P die The 0x30 sensor reads a non-zero low nibble at 0x801e, the SC2337P die revision, not the SC2336P the config named. Both dies share chip id 0x9b/0x3a, so the sc2336p driver bound silently and ran with the wrong init timings and IQ. Select sc2337p for sensor 0 (it drives I2C 0x30 and installs/looks for sc2337p-t23.bin), keeping the stock sc2336ps1 tuning as the IQ override, and set the raptor sensor0 name to match the driver. Add 0009, porting themactep/ingenic-sdk 7a16093 to the master 3.10.14/sensor-src/t23 layout: both t23 drivers now read 0x801e and reject the other die, so a wrong profile fails AddSensor instead of running wrong. Signed-off-by: Paul Philippov paul@themactep.com
  • 3fb1bea thingino-raptor-hal: bump to 116af6f A runtime rc-mode switch is now built from the target mode's own defaults on every SoC: before, CBR -> VBR killed the main stream on T31 and ran on garbage rate-control fields on T10-T30 and T32.
  • cb32ecc timps: bump to v1.13.1 Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
  • 8eec473 thingino-raptor-hal: bump to 1141f65 Shared YOLO decode driven by the model's own output layout, used by the JZDL backend; malformed model output (bad num_classes, NaN, a trailer that is not a whole size) is refused instead of decoded.
  • 51d0d60 raptor: fix unbuildable WebTorrent install gating (mk ifeq inside recipe) and align with master make ifeq/endif blocks inside define THINGINO_RAPTOR_INSTALL_TARGET_CMDS are not make conditionals - recipe lines are shell-expanded, so they reach bash as literal ifeq (y,y) and fail with a syntax error (observed building master d1d2699 + this PR). Convert the four gated installs to shell guards matching the file's existing in-recipe pattern. Also drop the stale THINGINO_RAPTOR_VERSION bump (b4c42382 predates master's eea0972, which already contains it) and the libhelix-aac AAC workaround superseded upstream by the faac-3.0 ABI patch - keeping them would regress master's raptor pin on merge.
  • 4f6a8bd webtorrent: combine save+restart into one Save-and-restart action; fix enable toggle snapping back off on cold start JS: buildParams no longer mirrors the file-backed enabled=false when sharing is not yet live (that mirror silently discarded the user enable on cold start); submit posts action=save_restart and re-fetches state after a settle delay. CGI: apply_save_settings + restart_rwd_or_die shared helpers, new save_restart action (not gated on share_features_active - it IS the cold-start path), 5s post-restart settle before building the state payload. HTML: single Save and restart button, standalone Restart streamer removed. Tests: T13 cold-start regression suite (46 pass).
  • 8c5b869 raptor: hide WebTorrent page when sharing is unavailable The nav item and page were always present, but the underlying rwd share feature may be missing: not compiled into the build, or compiled in but disabled in raptor.conf. Requests to the page then died in an unfriendly alert. - Split WebTorrent nav out of raptor.webui.json into a separate raptor-webtorrent.webui.json fragment installed only with BR2_PACKAGE_THINGINO_RAPTOR_WEBTORRENT, so unconfigured builds lose the nav item entirely. - json-webtorrent.cgi gains share_features_active(): a success payload from raptorctl rwd share proves availability; on refusal (also exit 0) or daemon-down, enabled=true in the config file counts as armed, so rotate still works before a first start. - GET returns 409 with a reason instead of a page that cannot work; POST rotate/restart return 409 the same way. Restart without sharing is still allowed and reports success. - streamer-webtorrent.js renders the 409 as a status banner instead of an exception alert. - Tests: 39 cases incl. refusal, dead daemon, down-fallback.
  • 8c39120 webtorrent: empty form fields fall back to rwd defaults Signed-off-by: WLTB Gino gino@wltb.local
  • d1d2699 compy: bump to 5d9e0ef A Digest uri for a stream now also covers its tracks: live555 clients (VLC, openRTSP, NVRs built on it) sign SETUP with the session base URL and got 401 since the uri check added in 0be078d's series.
  • 7c8a6a1 thingino-raptor: bump to eea0972, raptor-hal to c3d03e3 Contributor round: ric PWM IR banks and level ladder, rvd detection rate limit, overlay and extra streams, rmd PTZ tracking, rmr motion mode writes the clip only, rsd DESCRIBE waits for parameter sets, S31raptor hooks, rad extra encoders. AAC moves to faac 3.0 upstream (libfaad3 decodes instead of Helix), so the carried faac 3 ABI patch goes and the digital zoom backport is rebased. Gen3 total_gain is now linear [24.8]: the two T41 profiles' gain thresholds are converted.
  • 65b1995 thingino-raptor: arm rmr for a capture on timelapse-only cameras rmr now refuses a motion trigger while recording is off, and on a timelapse-only camera it runs with recording off. The send2 capture borrows recording and restarts rmr to arm it, restoring the config after; agent record enables recording around its clip.
  • 534c07c cameras: Wyze Cam v3 Pro 7.4: 28M of nmem The 7.x tree now has soc-nna and mpsys, whose /dev/nna_lock needs an nmem= region. 28M is the vendor T40XP default; with 42M of rmem it leaves 186M of the 256M to Linux.
  • f844c48 configs: add the Vanhua Z66SI (T41NQ) on kernel 7.4 The 4.4 profile on the generic T41 board: the same ISP and AVPU clocks and the same 46 MiB rmem and 8 MiB nmem.
  • 7255a5e kernels: 7.4: T41 The ingenic-7.4 pin carries the T41 SoC support. Its base config is the T40 one with the T41 generic board; the two kernel defconfigs differ only in the board and the PWM driver, which neither fragment enables.
  • e027123 kernel, ingenic-sdk: bump to the T21 PWM pin fix and the I2D/IPU flush fix ingenic-7.4 drops the T21 PC8/PC9 PWM groups the part does not have; ingenic-sdk flushes the I2D and IPU buffers by their kernel address.
  • 51bdbeb thingino-raptor: bump to 01588df, raptor-common to 3eab513 Second batch of network-daemon fixes: rsd keeps RTSPS handshakes and TLS reads off its loop, gates aliases in SETUP/PLAY, refuses tls = true without a usable certificate, bounds silent connections and writes (new [rtsp] preauth_timeout, send_timeout) and fixes a shutdown use-after-free; rhd moves TLS off its thread, bounds idle connections and refuses https without a usable certificate; rwd reports a failed start; rss_tls_write reports EAGAIN at its deadline.
  • 6666647 raptor-config: make gen-raptor-conf.sh shellcheck-clean DOTCONFIG is sourced by a runtime path, so annotate the SC1090 warning. Use the POSIX classes for the enum lowercasing; the keys are ASCII. Reformat with shfmt, matching the pre-commit. Signed-off-by: Paul Philippov paul@themactep.com
  • caacbcc raptor: add WebTorrent share management page Signed-off-by: WLTB Gino gino@wltb.local
  • 3fed447 kernel, ingenic-sdk: bump to the 7.4 PWM, NNA, TNPU, I2D, helix and T32 Pro stack ingenic-7.4 gains the TCU PWM, the NNA/AIP/BSCALER/TNPU/I2D/helix nodes, the T32/T33 temperature sensor, the A1 DES and the T32 Pro; ingenic-sdk gains soc-nna, tnpu, bscaler, mpsys, i2d, soc-vpu-t41 and the T32 Pro.
  • 5438bbb send2: keep motion capture scoped to the caller timps-motion read motion.* only from /etc/prudynt.json, so the send2 toggles the WebUI/agent write to /etc/thingino.json never took effect. Read thingino.json first and keep prudynt.json as the fallback, matching raptor-motion. raptor-motion borrowed rmr before its "clip already writing" check. The capture helper already ensures rmr and releases it on exit, so on the already path the early ensure left rmr enabled=true, mode=motion. Give each tmpfs capture its own directory and sweep only that one. The sweep used to delete every *.mp4 under /tmp/raptor, including recordings that started during the capture or belonged to someone else. Signed-off-by: Paul Philippov paul@themactep.com
  • b24c91d Merge remote-tracking branch 'origin/master' into send2-motion-flags
  • c64090e wifi: register the wired interface and use its carrier Follow-up on the runtime wired resume. Flush the wired address before ifup -a, because ifup -a skips an interface that is already configured; record the wired interface in /run/ifstate, because ifup -a does not when it was already up and the next ifdown then cannot remove the address; and require the carrier for a wired uplink so a stale route cannot keep the radio off after the cable is gone.
  • 755ebd8 wifi: prefer the wired uplink on a runtime link-up A wired link that comes up after the wireless cannot install its default route while the wireless owns it, and neither the wireless scripts nor the S40 ifup the STA on a restart, so the two paths missed each other. On a carrier-up wired link with no uplink, stop the wireless first, run ifup -a to give the wired its route and record it in /run/ifstate, and only then decide; fall back to the wireless if the wired still has no uplink. Give the STA its address when the wireless is restarted, except in portal or AP mode. Require the carrier in the uplink test so a stale route cannot keep the radio off after the cable is gone.
  • 3a22f49 wifi: keep the wireless when a wired link has no uplink The ifplugd recheck stopped the wireless after 10 s even when the wired link had no usable route, leaving neither an uplink. Leave a running wireless alone in that case, and only restart it when the gateway itself had stopped it for a wired uplink that has since lost its route. The stop and start paths record that state in /run.
  • 005f3dc wifi: check every wired uplink, not just eth0 The gateway script hardcoded eth0, so a USB Ethernet adapter was never treated as an uplink and a second wired interface was invisible to the ifplugd recheck. Enumerate the eth* and usb* interfaces and check the default route via any of them. Drive the recheck from ifplugd.action as well, so a cable change after boot uses the same path as the boot probe instead of leaving the recheck unreachable.
  • 2d8c1c5 ingenic-sdk: TNPU module and nmem on T32/T33 7.x kernels Build and load tnpu.ko on T32/T33 with 7.x kernels and allow the nmem= region there (its memory pool), placed at the top of RAM as on T40/T41.
  • 872221b Makefile: require ROOTFS_PARTITION_KB to be erase-block aligned The rootfs partition starts at a 64 KiB-aligned offset, so a fixed size that is not a multiple of ALIGN_BLOCK moves the data partition start mid-erase-block. Fail at make time with the value instead of writing a JFFS2 layout the kernel cannot use.
  • 373e6a3 webui: surface restart failures and compare effective syslog settings json-config-time.cgi: restart_ntpd_if_changed now returns 2 when the restart fails, so the reset and update actions answer 500 with a "saved but not applied" message instead of a plain success. json-config-syslog.cgi: compare the four effective settings (enabled, host, port, file, with S01syslogd's defaults) instead of the stored domain JSON, so key order or a first save of default values does not restart and clear the log. A failed restart also returns 500.
  • 1ac7542 webui, raptor: keep the native watchdog, stop the modal when hidden The fetch reader left the fallback without the old stall reload, and the full-screen stream kept running when the tab was hidden. Restore the 15 s reload for the native fallback, update its last-frame time from the image load, and stop/restart the full-screen stream with visibility and the bfcache restore, matching the small preview. Both carried copies stay identical. Co-authored-by: Andy andylee77@users.noreply.github.com
  • 47f46b3 ingenic-sdk: NNA modules on 7.x kernels The 7.x tree now has soc-nna (T40, T41, A1), the T41 AIP and the T40 BSCALER: build soc-nna there too and load it, with ingenic-aip on the T41 and bscaler on the T40. The NNA libraries also need mpsys-driver's /dev/nna_lock and nmem= (BR2_THINGINO_NMEM_MB).
  • 94a2a90 ingenic-sdk: load mpsys, i2d and the T41 soc-vpu on mainline kernels The 7.x tree now builds mpsys_driver.ko for the T32, T33, T40 and T41, i2d.ko for the T40 and T41 and soc-vpu-t41.ko (the T41's JPEG helix). Load mpsys wherever the MPSYS option builds it (on mainline the T32 too) and, on mainline, the I2D and the T41 helix, which the 4.4.94 kernels build in.
  • 079eb0f thingino-raptor: bump to 6902893 rvd names a second sensor's snapshot rings per sensor (s1_jpeg0, s1_jpeg1), as rhd and the docs expect, so rhd serves sensor 1's snapshots and save jpeg works on every channel; rwd test timing fix.
  • 2e15121 thingino-agent: keep the tight handler cap for 64 MB boards only Default the listener to 10 concurrent request handlers and have S95agent export AGENT_MAX_REQUESTS=3 when MemTotal is under 64 MB, the same line the uhttpd CGI cap uses. Capable boards keep the page-load concurrency they had; small boards get the tight bound.
  • e670986 Merge remote-tracking branch 'origin/master' into pr2295-update
  • 63926ef webui: lower the CGI cap for the whole 64 MB class The 48 MB MemTotal threshold only caught boards whose reserved memory pushed the kernel down that far. A 64 MB board with a small rmem stays around 50 MB of MemTotal and kept 20 concurrent CGI scripts, which is the case the cap was added for. Raise the line to 64 MB. Boards above 64 MB keep 20.
  • 502fa39 S60uhttpd: expand the existing stop() one-liner for the pr-format shfmt gate The pr-format gate runs shfmt -d -i 0 -ci on whole changed files. The oom_score_adj change in the previous commit makes the gate re-check all of S60uhttpd, which trips on a line that predates this branch: the stop() helper's [ "$i" -eq 5 ] && { echo ...; pkill ...; } one-liner, which shfmt expands to the multi-line form. Expand it so the gate passes. No behavior change. Signed-off-by: Andy andylee77@users.noreply.github.com
  • ca53ba7 ingenic-sdk: name the likely SC2337P on an sc2336p die mismatch The sc2336p driver rejects the SC2337P die with only the chip address and "is not an sc2336p chip", so a wrong-die image gives a dead streamer and no hint. Print the detected chip id and, for the SC2337P id (0x9b3a), the image to flash. Refs #2147 Signed-off-by: Paul Philippov paul@themactep.com
  • 02384bd sysupgrade: refuse a sensor mismatch before flashing The IMAGE_ID check compares the installed and target profiles; it cannot catch the same profile with the wrong die (a PT2 sc2336p image on an SC2337P unit, where both IDs say sc2336p). Read /proc/jz/sensor/name and compare it with the sensor token in the target camera name; refuse and name the matching image unless -f is given. Refs #2147 Signed-off-by: Paul Philippov paul@themactep.com
  • e7dffec configs: add the Sonoff PT2 SC2337P profile Borrowed from ciao's sc2337p profile: the same PT2 board with the SC2337P die. The master sc2336p profile has no .dtsi or uenv; this one carries them (reset key, card detect, blue LED, gpio_default). The defconfig is sorted, and the SC2337P driver is in the pinned SDK (3.10.14/sensor-src/t23/sc2337p.c, chip id 0x9b3a). Refs #2147 Signed-off-by: Paul Philippov paul@themactep.com
  • af6c63f compy: bump to 0be078d, thingino-raptor-ipc to 304c724 compy: RTSP parsing bounds and request-order fixes (one reported by Dickson Wu, SEAL & CertiK), Digest uri bound to the request line, 60 s nonces with stale=true, SRTP size check. raptor-ipc: ring and OSD headers no longer trusted after open, control sockets and shared memory owner-only (0600).
  • b7dff52 webui: apply NTP and remote-syslog changes on save, not at reboot ntpd and syslogd read their settings only when they start, so saving a new NTP server or a new remote-syslog target reported success but changed nothing until the next reboot, with no sign that the save had not taken effect. Restart the one daemon when its saved settings actually changed, and say so: - Time: after a save or an NTP reset, compare /tmp/ntp.conf (what timectl set-ntp and the reset action write) before and after; restart S49ntpd only when the server list changed. The time zone needs nothing, as daemons re-read /etc/TZ. - Remote syslog: compare the stored settings before and after the write; restart S01syslogd only when they changed. The message notes that the restart clears the in-memory log (logread), since syslogd's -R target comes from its command line. An unchanged save restarts nothing and reports the plain "saved" message. config-syslog.js shows the CGI's message so the user sees whether the change was applied or only saved; config-time.js already renders it. Network settings, which genuinely apply at boot, are untouched here: that path already shows a reboot notice (9927a1e). Signed-off-by: Andy andylee77@users.noreply.github.com
  • 095d838 webui, raptor: MJPEG preview reads the stream, reconnects only when it stops An fires "load" for the first frame only and nothing when the stream ends: a streamer restart leaves the last frame frozen. The streamer/preview pages' watchdog ran on "load", so it could not tell a live stream from a dead one and reconnected a healthy one every 15 s. The preview now reads the stream with fetch() and puts each JPEG part on screen as it arrives (multipart parts with a Content-Length; frames that arrive while one decodes are dropped for the newest; object URLs are revoked). A stream that stalls for 15 s or ends is reconnected, retrying 2 s doubling to 60 s and starting over once frames come; a live one is left alone. Leaving the page, hiding the tab or opening the full-screen view aborts the fetch; the back/forward cache restore restarts it. Parts without a length, or a browser without streaming fetch, fall back to the plain source. The two preview.js copies (thingino-webui for the prudynt pages, thingino-raptor for the streamer pages) carry the identical preview block, so both get the same reader in one change to keep them in step. Focus tracking (track_focus, focus_timeout), the full-screen modal and its SEI rotation are unchanged. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 66bb014 build: size the jffs2 floor by the kernel's NOR erase block JFFS2_MIN_SIZE is a block count: on the 3.10 jz_sfc the kernel reports 64 KiB erase blocks while mkfs packs 32 KiB nodes, so the 5-block floor was half the size the kernel needs. Keep the packing size for mkfs and use the driver's real block size for the floor (7.4 64 KiB; 3.10.14 T10/T20/T21/T23/T30/T31 64 KiB, T32 32 KiB; 4.4 32 KiB). Signed-off-by: Paul Philippov paul@themactep.com
  • 13162f4 thingino-raptor: bump to a50ea0b, raptor-common to cd3f207 Network daemon security fixes (rsd PLAY RTP-Info overflow, rhd request re-run, rsd stale-event hang, rwd signaling off the media loop, DTLS pinning, signed WebTorrent offers), WebTorrent in the trackers' 20-byte wire form (sharing works again with the updated viewer), rcd/rsp fixes and per-connection TLS deadlines.
  • c8e4364 raptor: use the config file for the autostart arm and stop decisions agent_rmr_arm() chose the enable/restart path from rmr's in-memory mode, and the stop conditions read the timelapse flag from the same memory: a mode or timelapse change written to raptor.conf but not yet reloaded by rmr could pick the wrong path. Read [recording] mode and [timelapse] enabled from the file the setters write, as the pre-switch [recording] enabled already is, and report a failed stop instead of discarding it. Signed-off-by: Paul Philippov paul@themactep.com
  • 99d1f56 build: let a profile fix the rootfs partition size (ROOTFS_PARTITION_KB) The rootfs partition is sized to each build's squashfs (capped at ROOTFS_PARTITION_MAX), so every package added moves the rootfs/data boundary. A rootfs-only reflash of a newer build can then overrun the old data partition, and a full-image reflash is needed instead, which resets persistent state such as Wi-Fi credentials. Let a profile set ROOTFS_PARTITION_KB beside FLASH_SIZE_MB to fix the rootfs partition at a chosen size: the Makefile gives the partition that size, U-Boot's dev-env layout follows it, and the data image recipe fails loudly when the rootfs no longer fits under it. A profile that does not set ROOTFS_PARTITION_KB is unchanged, the partition still sized to the image. Signed-off-by: Andy andylee77@users.noreply.github.com
  • ed33255 thingino-agent: bound the agent listener's concurrent request handlers agentd forks one request handler per connection and ignored SIGCHLD in the parent, so a page that fires a dozen requests at once forked a dozen shell adapters in parallel, each spawning a subshell per command substitution. On a 64 MB board that burst can exhaust RAM, and the kernel's OOM killer then takes the largest process, the video daemon. Reap finished handlers in the accept loop and cap how many run at once (AGENT_MAX_REQUESTS, default 3): the parent waits for a free slot before it accepts the next connection, so a burst queues in the listen backlog instead of forking unbounded. The handler child keeps the default SIGCHLD disposition it needs to wait for agentctl. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 1c8efd8 webui: cap the web stack's memory use on small boards On a 64 MB board the web UI's parallel requests can exhaust RAM; the kernel's OOM killer then picks the largest process, which is the video daemon, and the stream drops. - uhttpd and the agent set oom_score_adj 800, inherited by the CGI scripts and helpers they spawn, so the kernel sacrifices a request handler before a video daemon. - uhttpd caps concurrent CGI scripts at 6 (from 20) when MemTotal is under 48 MB; each CGI is a shell with its own children, and an open page already holds one for its heartbeat stream. Boards with more RAM keep 20. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 7ca265e raptor onvif: profiles carry the streams' resolutions S96onvif_discovery writes the ONVIF profile set that rvd advertises. Each profile carried a stream URL but no resolution, so ONVIF clients that read the profile (NVRs, ONVIF Device Manager) learned nothing about the stream size and some assumed a wrong default. Set profiles.stream0/1.width and .height from the stream's raptor.conf geometry when it is present, leaving a profile untouched when the stream has no configured size. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 57542e1 Merge branch 'master' into fix/motors-invert-ui-alignment
  • 4b22d4a raptor webui: zoom probe requires a non-zero crop window zoom.cgi's ?info=1 probe decides whether to show the digital-zoom controls. It treated any get-zoom reply that contained "enable" as support, but rvd answers get-zoom with an all-zero window (and refuses set-zoom) when it has no sensor geometry to crop against, for example where /proc/jz/sensor is absent. The controls then appeared but every move failed. Require a non-zero window width in the reply instead, so the controls show only where zoom actually works. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 67382bc raptor webui: ch1 preview and snapshot fall back to JPEG channel 0 ch1.mjpg and dl1.jpg serve the sub stream (stream1) preview and snapshot, asking rvd for JPEG channel 1. rvd numbers its JPEG channels over the streams that actually have JPEG enabled, not by stream index: when the main stream's JPEG is off, the sub stream's JPEG is channel 0 and there is no channel 1, so both endpoints returned 503 even though a JPEG was available. Fall back to channel 0 when the channel-1 ring (/dev/shm/rss_ring_jpeg1) is absent, so the sub-stream preview and snapshot show whatever JPEG exists. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 49368e5 network: static_dns adds servers to static interfaces only static_dns adds an interface's configured DNS servers to /etc/resolv.conf from its if-pre-up hook. Its guard, grep -q static, was inverted: it matched any line containing "static" and exited for those interfaces, so the static servers were added to DHCP interfaces (whose servers already come from udhcpc's dns hook) and skipped on the static interfaces they belong to. A bare "static" also matches unrelated text anywhere in the file. Match the interface's own "iface inet static" stanza instead, and exit when it is absent. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 7349940 ingenic-sdk: bump with the oss2 stream stop race and AEC reference fixes
  • 39560f9 kernels: 7.4: pin ingenic-7.4 with T40 and T41 USB
  • b897fcf faac: update to 3.0.1 3.0.1 carries the common/endian.h rename and builds the encoder with -fno-math-errno, so the local patch and the FAAC_CFLAGS workaround are no longer needed. The library ABI is unchanged from 3.0. Verified by rebuilding the package for wyze_cam4_t41nq_os04d10_atbm6062s (uClibc-ng, 4.4.94). Signed-off-by: Paul Philippov paul@themactep.com
  • f50cf5a wifi: drop redundant driver module opts quoting WLAN_MODULE_OPTS is quoted at the template renderer call, so the per-driver values no longer need their own shell quotes. This leaves the quoting in one place and matches the aic8800 value. Signed-off-by: Paul Philippov paul@themactep.com
  • 73eedfc wifi: quote multi-word module opts in template render WLAN_MODULE_OPTS is expanded unquoted into the render_template.py command line, so a module options value containing a space is split into multiple argv entries and argparse rejects the stray tail: render_template.py: error: unrecognized arguments: uapsd_queues=0 This broke every aic8800 build once wifi-aic8800 grew a two-word AIC8800_MODULE_OPTS value (ps_on=N uapsd_queues=0). The bcmdhd, bcm43438 and syn4343 packages already carried multi-word values with the same latent bug. Quote the value at the single WIFI_TEMPLATE_VARS definition, which covers all three render_template.py call sites (S36wireless, S40wired-gateway, wlan), and strip make whitespace. Consumers are already safe: the .in templates embed @WLAN_MODULE_OPTS@ inside double quotes, and the init scripts intentionally re-split the value when passing it to modprobe. Signed-off-by: WLTB Gino gino@wltb.local
  • 54c4301 ingenic-sdk: bump with the T31 DMIC driver and adc-aux
  • 2ccda16 kernels: 7.4: pin ingenic-7.4 with XBurst2 hotplug, jffs2 rename modes, SADC, DES and T31 DMIC
  • bd49939 noorio t110: promote profile from cameras-exp to cameras The T110 profile has been validated in daily use for months: the master profile builds clean images (16MB T41NQ / GC4023 / AIC8800 USB), motors, IR-cut, IR LEDs, speaker, status LED and reset button all work, and the aic8800 WiFi doze issue that caused periodic blackballs was resolved by the merged wifi-aic8800 module opts fix (#2248). Move it to configs/cameras/ so it ships in official release builds and shows up in the production gestalt profile list. Signed-off-by: WLTB Gino gino@wltb.local
  • fd4dc7b ingenic-sdk: bump with the T10/T20 capture fix and A1 audio T10 and T20 captures no longer carry one corrupted sample in every 8: the AIC receive FIFO is read with single DMA transfers. Also the A1 audio and HDMI audio modules, the oss3 DMA position wrap at the ring end, the T23/T40/T41 ISP wait-entry wake functions and the T20 ISP's VIDIOC_CROPCAP answer.
  • 2a7f5d0 cameras: Wyze Cam v3 Pro 7.4: 42M of rmem libimp uses 39.7M with the 2560x1440 and 640x360 streams at 25 fps (measured on the camera); the rest of the 256M goes to Linux.
  • b8d1912 ingenic-sdk: dmic_enable=1 for a 7.x DMIC profile The 7.x audio module registers its DMIC host only with dmic_enable=1; thingino-kopt's injector enabled the DMIC node, but nothing passed the parameter, so the DMIC never bound.
  • 89579e4 thingino-kopt: the SADC on 7.x kernels KOPT_ADC on a 7.x kernel enables the ingenic-sadc IIO driver, and ingenic-sdk builds and loads adc-aux, which puts the vendor /dev/jz_adc_aux_N (ingenic_adc_aux_N) the ADC day/night trigger opens on it. Needs the ingenic-sdk bump with adc-aux.
  • 709ffd9 thingino-button: a PIR sensor from gpio.pir on mainline kernels gpio.pir becomes a gpio-keys button with KEY_F13, as the vendor kernels report a PIR: their SDK's sample-pir and SU_Key_EnableEvent expect it, and it can be disabled through gpio-keys' disabled_keys. The sensor drives the line high on motion, so it is active-high unless the json says active_low, and gets no pull-up.
  • 58974d7 docs: document the CV2005 revision of the Jooan A12 The A12 page described a single bill of materials (2x SC2336, ATBM6132BU). A unit whose stock firmware reports JA-A12 carries two CV2005 sensors on I2C-0 (0x35 and 0x36, chip id 0x2005) and a SeekWave SV6160LITE USB radio (3607:6621). List both revisions on the page and in the Jooan brand table. thingino/ingenic-sdk has CV2005 drivers for the T32 and T33 only, so the page marks this revision as not supported yet, and notes that the model name has not been shown to tell the revisions apart. The PCB marking and flash part come from one unit and are labelled as such. Signed-off-by: ADCDS 6514747+ADCDS@users.noreply.github.com
  • 677ae9a wifi-aic8800: disable power-save and U-APSD via module opts aic8800 firmware defaults leave the STA in power-save (ps_on=Y) with WMM U-APSD enabled (uapsd_queues=1). In that state the chip periodically dozes and misses ACKs: against hostapd-based APs this surfaces as "disconnected due to excessive missing ACKs" followed by an inactivity deauth. We measured repeated kicks and full blackballs on Noorio T110 and T120 units behind an OpenWrt / ath11k AP; the camera then re-associated only after minutes of auth rejections. ps_on=N alone is insufficient: it disables the legacy PS-Poll doze path but U-APSD remains active and still produces ACK gaps (still kicked under ps_on=N with uapsd_queues=1 in our logs). Setting ps_on=N uapsd_queues=0 together produced a 12-hour clean window with zero missing-ACK events, while the same hours previously showed three blackouts. Set AIC8800_MODULE_OPTS to ps_on=N uapsd_queues=0 so every aic8800-based camera loads the driver with both sleep paths off. Signed-off-by: WLTB Gino gino@wltb.local
  • 461df89 kernels: 7.4: pin ingenic-7.4 with A1 audio, T40/T41 PWM and the T10 SDIO Wi-Fi host The green T10 OV9712 7.4 profile needs the T10 MSC1 node for its AP6181.
  • ffdccdc cameras: green T10 OV9712: AP6181 Wi-Fi on the 7.4 profile Needs the kernel's T10 MSC1 node (thingino-t10.dts &msc1); the injector then powers the module from gpio.wlan 20.
  • 3705d1c wifi-bcm43362: BCM43362 (AP6181) with the mainline kernel's brcmfmac Builds the in-kernel brcmfmac (SDIO) and installs only the BCM43362 firmware and a 26 MHz BCM43362 nvram (the AP6210's; linux-firmware has none for the AP6181) from linux-firmware. Mainline kernels only.
  • 413418a configs: both Jooan W8-U sensors on the W8-U's stock tuning The stock firmware ships the same tuning for both sensors; sensor 0 had the SDK's generic sc2336p bin.
  • 3daf6c6 ingenic-sdk: a board can name the sensor-iq bin a sensor uses BR2_SENSOR__IQ_NAME picks another bin from the SDK's sensor-iq tree, e.g. a board's stock tuning, installed under the name libimp looks for; other boards keep the sensor's default bin.
  • d3bccd3 configs: add the Wyze Cam v3 Pro (NOR) on kernel 7.4 The generic T40 board with the injector: the RTL8192FS on MSC1 from gpio.wlan, the aw87xxx amp on i2c3 from the new amplifier key, no MAC. 64 MiB for the OS and 64 MiB rmem, no NNA memory (7.x has no NNA module).
  • ec6e81e cameras: green T10 OV9712: speaker amp on PB31, audio on the 7.4 profile The T10 data sheet names PB31 SPK_ENA, active high on the reference board's amp shutdown input. The 7.4 profile had no audio at all.
  • 823c4b1 thingino-kopt: the 7.x codec's speaker amp line from gpio.speaker The generic 7.x boards carry one board's amp enable as spk-gpios, and the codec modules take a DT line over their spk_gpio parameter, so a profile's gpio.speaker never reached the kernel. Write it into the board fragment as spk-gpios, and delete the generic default when the profile has no amp line, as the U-Boot injector does.
  • 3728e42 build: the XBurst2 toolchain's 4.4 headers on kernel 7.4 too The headers were picked from KERNEL_VERSION_4, so a T40 on 7.4 asked the XBurst2 toolchain for 3.10 headers and failed its check.
  • 25ff1c6 kernels: 7.4: pin ingenic-7.4 with the T40 and T31 SDIO Wi-Fi hosts The T40 generic board gets MSC1 for an SDIO module (on APLL, with its pins), and the T31 SDIO and ATBM pieces land, so the injector's gpio.wlan host works on both.
  • ed18897 thingino-raptor: bump to 0392e98, raptor-hal to 6cf27fc rmr flushes on its own thread, clip pre-roll without stalls, OOM protection for the recording path; media-server pinned for rfs; HAL warnings host-tested.
  • 605d52c ingenic-sdk: no 7.x load lines for modules the T33, T40 and T41 lack The 7.x tree builds no VPU or IPU module for the T40 and T41 (they encode on the AVPU), and no NNA or mpsys module at all, so the T33 loses its mpsys line too.
  • 3c49daa kernels: 7.4: T40 The ingenic-7.4 pin already carries the T40 SoC support. Its base config is the T32 one with the T31's BUG and stack protector settings (the T40 ISP firmware goes through the SDK's 4.4 ABI adapter), both XBurst2 cores and the T40 generic board.
  • 03f0b62 thingino-kopt: the 7.x board's I2C speaker amplifier from thingino.json A top-level "amplifier" object (compatible, i2c bus, address, optional reset pin) becomes a child of that &i2cN on the generic board, so an amp like the Wyze Cam v3 Pro's aw87xxx needs no per-board dts.
  • 13fe8cc ingenic-sdk: bump with the T23 ISP reload fix and the W8-U sc2336ps1 IQ bin The T23 ISP no longer takes an interrupt the firmware has not asked for yet, which oopsed on a reload, and sensor 1 of the Jooan W8-U gets its stock tuning instead of the sc2336p bin.
  • 22d6cac ingenic-sdk: install a dual-sensor model's own IQ bin when the SDK has one The second sensor of a dual pair always got a link to the first sensor's bin. A bin named after the model itself (sc2336ps1.bin) now wins over that link.
  • bdb5f01 kernels: 7.4: pin ingenic-7.4 with the T10-T31 watchdog clock fix The TCU RTC input is EXCLK / 512, not / 256: with the old clock a 60 s watchdog timeout wrapped the counter and reset the board every 3.5 minutes while the watchdog daemon ran.
  • 0c2e077 thingino-kopt: disable the 7.x MAC on profiles without wired Ethernet The generic boards enable the on-chip MAC and mux its RMII pins. On a board without Ethernet those pins go elsewhere or nowhere; the T40 Wyze Cam v3 Pro kept PB6..PB16 in the MAC function where the vendor kernel leaves them as inputs. Disable &mac when BR2_ETHERNET is not set, the condition U-Boot already drops its MAC on.
  • 8a956a8 wifi-atbm6132cu, wifi-atbm6162s, wifi-atbm6162u: bump past the CONFIG_WIRELESS_EXT fix The driver defined the kernel's CONFIG_WIRELESS_EXT, which on 7.x shifts the struct net_device fields the kernel reads.
  • e527db9 wifi-atbm6162s, wifi-atbm6162u: bump to the 7.x port, on the kernel's cfg80211 there 7.x keeps net_device.ieee80211_ptr only with its own cfg80211, which the bundled backport cannot stand in for: on 7.x the driver drops CPTCFG_CFG80211 from its .config and builds against the kernel's.
  • 5706d5a wifi-atbm6132cu: bump to the atbm-606x-c 7.x port
  • e1c2a64 wifi-atbm6062u: bump to the 7.x port, on the kernel's cfg80211 there 7.x keeps net_device.ieee80211_ptr only with its own cfg80211, which the bundled backport cannot stand in for: on 7.x the driver drops CPTCFG_CFG80211 from its .config and builds against the kernel's.
  • c8a41d8 wifi-atbm6062s: bump to the atbm-606x 7.x port
  • ddb30d1 wifi-atbm: bump the master-branch drivers to the 7.x port The same tree now also builds on 7.4; 3.10 and 4.4 object code is unchanged. wifi-atbm6132u takes it on every kernel but 4.4.
  • f891537 thingino-rhkd: bump to v0.10.1 (class sensors named from the model) rhkd 0.10.1 takes the class sensors' names from the model's own conf (X.conf beside [motion] model = X.bin) when raptor.conf sets no class_names, as rvd does. Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
  • 7a7106a configs: add the Jooan W8-U on kernel 7.4 Both SC2336 in the vendor's dual mode: direct_mode=2 ivdc_mem_line=540 isp_memopt=1, IVDC on both mains, three buffers on the subs, rmem 22M. No Wi-Fi: the atbm6132u driver does not build on 7.x yet.
  • 8acf8f9 ingenic-sdk: bump the 7.x tree with the T23 dual-sensor ISP 1.3.0 double firmware under CONFIG_MULTI_SENSOR with its user-pointer functions in C, sc2336ps0/ps1, nine VPU channel nodes and the mipi-switch pin state for the VIC.
  • d13d307 kernels: 7.4: pin ingenic-7.4 with the T23 MIPI switch pads The thingino-t23 board now carries pins_cim_mipi_switch, which the gpio.sensor_switch injector points the ISP's mipi-switch state at.
  • 335f96b thingino-kopt: do not name the 7.x SD slot regulator vmmc A host with no vmmc-supply falls back to a regulator named like the supply, so the SDIO Wi-Fi host on MSC1 took the SD slot's "vmmc" as its own: it switched the SD supply and, with a regulator present, the SDHCI core left the bus voltage out of the power register. Name it sd-power, also when retargeting a generic board's &vmmc.
  • c0f2b30 thingino-rhkd: bump to v0.10.0 (one motion sensor per detection class) rhkd 0.10.0 adds one HomeKit motion sensor per detection class when raptor runs a YOLO model that reports classes ([motion] algorithm = yolo with class_names, rvd ivs-status class_mask), and lets HKSV record on [motion] record_classes only. Without such a model nothing changes, so the current raptor keeps the single Motion sensor of 0.9.10. Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
  • b867c2e thingino-kopt: the T23 MIPI switch pin state from gpio.sensor_switch On a two- or three-sensor T23 the VIC drives the MIPI switch on PA7, PB22 or PB30. The kernel injector now gives the ISP node a "mipi-switch" pin state with the generic board's pins_cim_mipi_switch on the pad named by gpio.sensor_switch; the 7.x ISP module selects it when the VIC takes the pad over, so the pad no longer needs setting by hand.
  • 135d1ef wifi-rtl8192fs: bump to the driver that also builds on 7.x The driver now builds on mainline 7.x as well; 3.10 and 4.4 builds are unchanged.
  • 5e090fd thingino-kopt: enable the 7.x DMIC node on profiles with BR2_THINGINO_AUDIO_DMIC The generic T40 and T41 boards carry the DMIC node and its pins but leave it disabled, since on boards without a digital microphone those pins are often GPIOs. The board DT injector now enables &dmic when the profile sets BR2_THINGINO_AUDIO_DMIC, and says so when the tree has no such node.
  • e3934b2 wifi-rtl8192fs: keep wext on 7.x through cfg80211 7.x only enables WIRELESS_EXT for drivers that select it, so the fixups alone leave no wext and iwconfig fails. CFG80211_WEXT provides it through cfg80211; 3.10 and 4.4 configs already have it.
  • 9040572 aw87xxx: bump to c17eb049fd75 Builds on the 7.x kernels: gpio descriptor for the reset line and the new i2c probe and remove signatures, behind version guards; 3.10 and 4.4 build unchanged.
  • fd54929 aw87xxx: allow the 7.x kernels The driver builds on 7.x with the guards in gtxaspec/aw87xxx; the pin in aw87xxx.mk needs the new commit once it is pushed.
  • 6b6fdfb uhttpd: let If-None-Match override If-Modified-Since uhttpd answers a conditional GET from If-Modified-Since before it looks at If-None-Match, so a request whose date is at or after the file's mtime gets 304 even when its ETag does not match. A browser that cached a newer copy of a file (an image downgrade, or another device on the same address) keeps that copy with no way to learn it changed. 0009 skips If-Modified-Since when If-None-Match is present, as RFC 9110 13.2.2 requires, so the ETag decides; a request that also carries If-Match, If-Range or If-Unmodified-Since reaches those checks first. Requests carrying only If-Modified-Since are answered as before. Signed-off-by: Andy andylee77@users.noreply.github.com
  • 9121028 thingino-button: verify holds, monotonic hold clock, reliable stop - 0003: a hold is valid only while the kernel still reports the key down (EVIOCGKEY every 100 ms while held); a stale hold is dropped and its release runs no TIMED command, so a lost release cannot arm firstboot -f. Hold times use CLOCK_MONOTONIC; SIGCHLD ignored in -s. - S15thingino-button: run with -s under start-stop-daemon -b -m so the pidfile holds the real pid (-d forked and left a stale pid); stop falls back to -x and waits until no instance is left. - docs/thingino/reset-button.md, CHANGELOG. Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Signed-off-by: Lu-Fi lutz@fiebach.de (cherry picked from commit 4b3f705)
  • 858f6ac linux 3.10: xburst gpio both-edge re-arm and gpio-keys pressed recheck The XBurst1 GPIO both-edge emulation (gpio_mask_and_ack_irq) samples the pin level before it re-arms the opposite level trigger and clears the flag; a pin change in that window loses the next edge. On a T23 a short reset-key press then stayed down until the next press. Re-sample after the flag clear and re-arm until stable (T10/T15/T20/T21/T23/T30/T31), and let gpio-keys re-read a pressed key every 50 ms so a lost release is reported anyway. Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Signed-off-by: Lu-Fi lutz@fiebach.de (cherry picked from commit 35bb23b)

Don't miss a new thingino-firmware release

NewReleases is sending notifications on new releases.