Repository navigation
hi3518cv100_lite_dlink-dcs-2330l: D-Link DCS-2330L rev A - #217
openipc-ai wants to merge 3 commits into
Conversation
Hi3518CV100 + OV9712 + RTL8188EU (0bda:8179), 32M NOR, built from the board-support findings reported in #216 on one rev A unit: - RTL8188EUS in place of the MT7601U the generic hi3518cv100 image ships, loaded with power saving off. Needs OpenIPC/firmware#2726 for the driver to compile against the 3.0.8 kernel. - A board copy of the OV9712 ini with Mask_0 = 0xFFC00000: this board wires the sensor to VI bits 22-31, and the stock 0x3FF00000 gives green/purple highlights. Other OV9712 boards keep the stock ini. - IR-cut on GPIO0. The IR LEDs are on PWM2 (PWM1 is the heater), lit at 35% (fw_setenv irled_duty) while GPIO0 is in the night position, after restoring the 0x200f0134/0x200f0138 pad mux the stock kernel sets. Built locally against the firmware branch: uImage 1821/1983 KB, rootfs 4800/5120 KB. Not yet flashed on hardware.
PR Summary by QodoAdd draft D-Link DCS-2330L rev A firmware support
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1.
|
- irled_duty is validated (0-100, else 35) and re-read on each switch to night, so a fw_setenv applies from the next one; restart applies it now. - An unreadable GPIO0 counts as day, so PWM2 is forced off at start instead of left as the bootloader had it. - stop waits for the controller's trap to turn PWM2 off before returning, so a restart cannot have the old one darken what the new one lit. - The WiFi profile returns modprobe's status: S40network gives the cable DHCP when WiFi fails, which a blanket exit 0 defeated.
|
Thanks for turning the findings into a device target and merging the Wi-Fi compatibility fix. I reviewed Hardware results for the new IR scriptI ran this PR's
The private snapshots also showed a brightness response between 20% and 35%. This was not a calibrated illumination test. The source touches PWM2 and the two board mux registers, leaving PWM1 alone. Automatic day/night monitoring, the original 35% controller and the existing nighttime ISP profile were restored after testing. The automatic fallback script's checksum is unchanged. Remaining decimal-input bug in
|
The digits-only check let 08 and 09 through to $(( )), where busybox ash takes a leading zero as octal: 08 is a syntax error that stops the controller, and 035 silently drives 29%. Normalise through expr, which reads decimal, and bound the input to three digits. Fix and expected outputs (08 -> 8, 035 -> 35, 101 -> 35) from the reporter, checked on the camera's busybox.
|
Thanks. The on-camera
Components: https://github.com/OpenIPC/builder/releases/tag/test-dcs-2330l-75f060d (prerelease, outside the nightly/manifest channels)
Both fit the partitions you listed: the kernel fits your 2 MiB mtd3 and the rootfs your 8 MiB mtd6. Use them as a pair, since What this image does that matters inside your layout. These come from reading the firmware source, not from running it on your arrangement:
The hardware-install status stays pending as you asked. Component results on your layout would cover the kernel, driver and rootfs. A standard 8M or OpenIPC U-Boot install would remain a separate, untested question. |
Draft device for the D-Link DCS-2330L rev A, built from @garnser's findings in #216. Not yet flashed on hardware — this is for the reporter to test.
Depends on OpenIPC/firmware#2726 (merged) for the RTL8188EUS driver to compile on the 3.0.8 kernel.
hi3518cv100_lite, kernel 3.0.8)0bda:8179What it carries
hi3518cv100_litewithRTL8188EUS_OPENIPCin place of MT7601U./etc/sensors/ov9712_i2c_dc_720p_dcs2330l.ini— the stock ini withMask_0 = 0xFFC00000(stock is0x3FF00000), which the report found removes the green/purple highlight corruption. Board-only; the stock ini is left alone for other OV9712 cameras. Selected via.isp.sensorConfigin the customizer./etc/wireless/usb— profilertl8188eu-dlink-dcs-2330l:modprobe 8188eu rtw_power_mgnt=0 rtw_ips_mode=0 rtw_enusbss=0(the options from the report; they only take effect on the modprobe line).irCutPin1 0withlightMonitor, h264 at 20 fps,wlandev, upgrade URL./etc/init.d/S96irled— a shell replacement for the report'sdcs2330-irdaemon: sets pad mux0x200f0134/0x200f0138to 0, then drives PWM2 (0x20130040..4c, period 150 = 20 kHz) atirled_dutypercent (default 35,fw_setenv irled_duty N) while/sys/class/gpio/gpio0/valueis 1, off otherwise. PWM1 (heater) is never touched..ini/.sothat isn't OV9712 (~690 KB uncompressed).Deliberately left out: the
dcs2330-imageISP helper (SDK struct offsets, mmap shim and unit-specific shading tables) and the scene-specific IQ/gain tuning — those remain optional local tweaks as the report suggests.Verified
./builder.shagainst the firmware branch: uImage 1821/1983 KB, rootfs 4800/5120 KB, all exclude entries matched;8188eu.ko, both inis,S96irledand the wireless profile present in the rootfs.ci-matrix.py --self-testok.Reporter's component results (on their custom 3.0.8 install, not this image — see the comments)
S96irledatbbd695b: default 35% → duty 53, 20%/35% via restart, stop disables PWM2, follows majestic's day/night on GPIO0. The octalirled_dutybug they found is fixed in75f060d.test-dcs-2330l-75f060d.Needs testing on the camera (@garnser)
loadbootaddrselector) — your install used a custom layout, so please keep your recovery path at hand.wlandev rtl8188eu-dlink-dcs-2330l./etc/init.d/S96irledstop/start; tryfw_setenv irled_duty 20etc.).Refs #216