Repository navigation
sigmastar: infinity6c: load the SmartSens SC430AI (TP-Link Tapo C120) - #2445
Conversation
PR Summary by QodoAdd SC430AI support for SigmaStar Infinity6C
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
5b0a2d6 to
2ec8b49
Compare
Code Review by Qodo
1. Image tuning cannot be rebuilt
|
Load sensor_sc430ai_mipi.ko (OpenIPC/sensors#7). Detection needs nothing new: ipcinfo -s already reports sc430ai and the default srcfg works on the Tapo C120. The IQ file is not included (no vendor SDK release carries it); users take /etc/sensors/sc430ai.bin from their camera's stock firmware.
2ec8b49 to
64a7060
Compare
|
Dropped |
openipc-ai
left a comment
There was a problem hiding this comment.
The one-liner is right: additive, alphabetically placed, no shared default repointed. Two notes and a suggestion.
The Qodo finding above is stale. It flags sc430ai.bin as an unbuildable binary, but you already dropped that from the PR — what's left is the case-arm entry alone. Nobody should bounce this for the .bin.
Merge order. Sensor modules come from sigmastar-osdrv-sensors, which builds openipc/sensors at HEAD, so this needs OpenIPC/sensors#7 in first or insmod sensor_sc430ai_mipi.ko hits a file that isn't there. (For what it's worth the arm already names six sensors with no driver in that repo at all — gc8613ya, os03a10, os08a10, sc535hai, sc835hai, sp4329 — so you're in good company, but yours will actually load.)
Marking this changes-requested purely to hold the ordering, not because anything in the diff is wrong.
A trap that will waste your afternoon. SIGMASTAR_OSDRV_SENSORS_VERSION = HEAD produces a tarball named sensors-HEAD.tar.gz, and Buildroot's dl cache keys on the filename, so it keeps the first copy forever. The Makefile's prepare target expires the majestic tarballs and nothing else. After #7 merges, a local rebuild will quietly keep building the old sensor set until you rm -rf output-*/buildroot-*/dl/sigmastar-osdrv-sensors. CI is unaffected because it downloads into an empty cache.
The suggestion. Looking at all four of your PRs together — this, sensors#7, wiki#549 and #2449 — you are one PR short of a clean landing, and it is the one nobody has asked you for: a device in OpenIPC/builder.
Everything C120-specific currently has nowhere to go, so it is being spread across the generic tree and the wiki: #2449 flips ssc377_lite for a board that ships no Wi-Fi driver, and the wiki page prescribes a 16 MB flash layout, a CONFIG_CFG80211=y kernel and a hand-copied IQ file that no defconfig in this tree produces. A ssc377_lite_tp-link-tapo-c120 device under devices/ holds all of that in one place — the layout, the kernel config, BR2_PACKAGE_RTL8188FU_OPENIPC=y, BR2_PACKAGE_WPA_SUPPLICANT_OPENIPC=y. The precedent already exists: ssc377qe_fpv_ccdcam-im50q01-tipoman is an ssc377 device there at FLASH_SIZE="16".
With that in place, this PR and sensors#7 merge into the generic tree as-is because they genuinely are generic, #2449 drops its defconfig hunk, and the wiki page points at a device instead of being a build-it-yourself recipe.
SSC377, SmartSens SC430AI, 16 MB NOR, RTL8188FTV on USB. The generic ssc377_lite defconfig with the 16 MB layout, the rtl8188fu driver and the SAE-capable wpa_supplicant-openipc; the Wi-Fi module's power gate (GPIO 42) in the wireless/usb entry; IR-cut, backlight and IR LED pins; the SC430AI IQ file. Depends on OpenIPC/sensors#7 (driver), OpenIPC/firmware#2445 (loader entry) and OpenIPC/firmware#2449 (supplicant package).
|
Nothing to change in the diff; holding for OpenIPC/sensors#7 is right, and thanks for the Taking the builder suggestion: OpenIPC/builder#162 adds |
openipc-ai
left a comment
There was a problem hiding this comment.
The ordering hold is satisfied — OpenIPC/sensors#7 is merged (0294a00), so sensor_sc430ai_mipi.ko now exists for the insmod this adds.
CI was green on 64a7060 (all six infinity6c boards, every gate). Updating the branch for master and merging once it comes back.
SSC377, SmartSens SC430AI, 16 MB NOR, RTL8188FTV on USB. The generic ssc377_lite defconfig with the 16 MB layout, the rtl8188fu driver and the SAE-capable wpa_supplicant-openipc; the Wi-Fi module's power gate (GPIO 42) in the wireless/usb entry; IR-cut, backlight and IR LED pins; the SC430AI IQ file. Depends on OpenIPC/sensors#7 (driver), OpenIPC/firmware#2445 (loader entry) and OpenIPC/firmware#2449 (supplicant package). Co-authored-by: nzzane <12163646+nzzane@users.noreply.github.com>
…OpenIPC#2445) Co-authored-by: nzzane <12163646+nzzane@users.noreply.github.com> Co-authored-by: OpenIPC AI team <ai@openipc.org> (cherry picked from commit e155691)
Companion to OpenIPC/sensors#7 (the driver). Fixes the "no video" part of #1654 / #1766.
load_sigmastar: addsc430aito the experimental sensor list.The sensor's IQ file (
/etc/sensors/sc430ai.bin) is not part of this PR: the only copy comes from the camera's stock firmware and there is no vendor SDK release or source for it, which the repo's binary policy rules out. The wiki page for the Tapo C120 will tell users where to take it from in their own stock dump.Tested on a TP-Link Tapo C120 (SSC377, ssc377_lite) with the driver from sensors#7 and the stock
load_sigmastarflow:sensor_config.ko+srcfg 0 1 0 0 0 0,ipcinfo -s→sc430ai,fw_setenv sensor; majestic runs at 2688x1520@30, RTSP/JPEG working.Not in this PR (board-specific, for the wiki): the C120's Wi-Fi is an RTL8188FTV on USB whose power is gated by GPIO 42, and the ssc377 build currently has no
8188fu/ cfg80211; WPA3 networks also needCONFIG_SAEin wpa_supplicant.