ssc377qe fpv: drop the prebuilt imx335 module - #139
Merged
Conversation
This overlay carried a 25KB sensor_imx335_mipi.ko because the driver OpenIPC built at the time could not reach the rates this board needs: its 2560x1920@60 mode served 30fps and its 90fps mode produced no usable output at all. The blob shadowed the built module and fixed it for this one device, and for nobody else. The source behind it is now what OpenIPC builds. openipc/sensors carries it as sigmastar/infinity6c/sensor_imx335_mipi.c instead of a symlink to the infinity6e driver (OpenIPC/sensors#3), and the infinity6c loader states the lane count it needs (OpenIPC/firmware#2343). sigmastar-osdrv-sensors is unpinned, and this device's defconfig already selects it -- BR2_PACKAGE_SIGMASTAR_OSDRV_INFINITY6C selects BR2_PACKAGE_SIGMASTAR_OSDRV_SENSORS -- so the module is built and installed to /lib/modules/5.10.61/sigmastar either way. The overlay copy was only ever shadowing it. Removing it means this device tracks the driver instead of freezing a copy of it, which is the point: the next person who needs a mode changed can change it. The built driver is a later revision than the blob (72ad30b against the 30fdac4 it came from) and measures the same or better on an SSC377QE, rebooting before every mode: 2592x1944@59 59.2 fps (blob 59.2) 2560x1920@60 60.1 fps (blob 58.4) 2208x1248@90 89.5 fps (blob 89.5) 1920x1080@120 116.1 fps (blob 119.6) Verified end to end on hardware afterwards: with the built module and the merged loader and nothing else, the loader applies lane_num=4 on its own and a 60fps request delivers 60.0. Nothing else in the overlay changes.
PR Summary by QodoUse the built IMX335 driver for SSC377QE FPV
AI Description
Diagram
High-Level Assessment
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can type 'qodo, fix this' on a finding and the fix lands right on your PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@tipoman9 — your device directory, so please veto this if you would rather keep the blob for now.
This overlay carries a 25 KB
sensor_imx335_mipi.kobecause the driver OpenIPC built at the time could not reach the rates this board needs:2560x1920@60served 30 fps and the 90 fps mode produced no usable output at all. The blob shadowed the built module and fixed it for this one device, and for nobody else.The source behind it is now what OpenIPC builds:
sigmastar/infinity6c/sensor_imx335_mipi.cis your driver from star6c_sensor72ad30binstead of a symlink to the infinity6e oneWhy removal is safe for this device
sigmastar-osdrv-sensorsis unpinned (VERSION = HEAD), and builder clones firmware from master, so both changes reach this build with nothing to bump.BR2_PACKAGE_SIGMASTAR_OSDRV_INFINITY6C=yselectsBR2_PACKAGE_SIGMASTAR_OSDRV_SENSORS, sosensor_imx335_mipi.kois built and installed to/lib/modules/5.10.61/sigmastar/regardless. The overlay copy was only ever shadowing it.load_sigmastaroverride, so it picks up the merged loader and itslane_num=4.Measured, not assumed
The built driver is a later revision than the blob (
72ad30bagainst the30fdac4it came from) and measures the same or better on an SSC377QE, rebooting before every mode:Then verified end to end with the built module and the merged loader and nothing else: the loader applies
lane_num=4on its own, and a 60 fps request delivers 60.0.The one place the blob is ahead is 120 fps, by about 3%. If that matters to you I would rather fix it in
star6c_sensorthan keep a binary here.Removing it means this device tracks the driver instead of freezing a copy of it — the next person who needs a mode changed can change it.
Refs: OpenIPC/firmware#1953