Repository navigation
Conversation
ae12046 to
60bc40d
Compare
|
Rebased on top of 1.0.6-2 (#418), which changed the picture: this package's own Two changes from v1: @spencerbull — #418's description lists #366 as "not addressed, different platform". This is the addressed half; #366 has the rest, with evidence and a concrete question. |
60bc40d to
5b5d4ed
Compare
…its frames
Two Panther Lake assumptions in this package break Lunar Lake boards, where it
is installed by the same hardware detection.
Build both HAL platforms. libcamhal picks its plugin by platform, and a Lunar
Lake machine asks for one that was never built:
CamHAL[ERR] HalAdaptor: load_camera_hal_library, failed to open library:
/usr/lib/libcamhal/plugins/ipu7x.so: No such file or directory
CamHAL[WAR] CameraParserInvoker: parseSensors: No sensors available
so the camera cannot work at all. The proprietary side of it is already
shipped -- libia_aic-ipu7x.so and the rest of that set come from
ipu7-camera-bins today; only the plugin the HAL loads was missing. Upstream
builds both platforms from one configure run and `make install` lays down
/etc/camera/ipu7x/ alongside ipu75xa, including the tuning this hardware
wants (OV08X40_BBG802N3_LNL.aiqb, gcss/OV08X40_BBG802N3_LNL.IPU7X.bin), so the
change is the IPU_VERSIONS list plus 0008, the ipu7x twin of 0006: the
"Intel CVS" pad formats that 1.0.6 added to the ipu75xa sensor config are
needed in the ipu7x one for the same reason, or link validation fails at
stream-on behind the Linux 7.2 bridge entity.
Pick the relay pipeline per board. v4l2-relayd-ipu7.conf rotates every frame
180 degrees, which is right where the sensor is mounted inverted and wrong
here: the sensor reports camera_sensor_rotation = 0 and camera_orientation =
Front, and the picture arrives upside down in every application. camera-init
now writes VIDEOSRC to /run based on the bridge ACPI id and the relay drop-in
reads it. Only INTC10DE takes the new path; INTC10E1, INTC10CF, INTC10E0 and
anything unrecognised keep the packaged pipeline byte for byte, and a boot
where camera-init did not run falls back to it as well.
Verified on a Dell Pro 14 Premium PA14250 (Lunar Lake, INTC10DE, OV08X40 +
HM1092) against intel-ipu7-camera 1.0.6-2 on linux-omarchy 7.2.5-3: with the
package's own intel-cvs DKMS the sensor joins the graph behind "Intel CVS",
the ipu7x plugin built from the pinned commit with 0005 and 0008 resolves
ov08x40-uf on CSI port 0, v4l2-relayd streams 30 fps to /dev/video50 and the
image is upright in a browser.
Note for reviewers: necessary but not sufficient on Lunar Lake. Three more
things this board needs are not in this PR: the sensor probe races the
bridge's runtime suspend (camera-init's `sleep 2` lands while the I2C bus is
still owned by the bridge firmware and ov08x40 reads its chip id as -110),
the in-tree cvs driver's quirk for the Synaptics SVP7500 (06cb:0701) hands
the privacy LED to the host so it never lights, and ipu-bridge before 7.3
does not know the HM1092 IR sensor. Details in omacom#366.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
5b5d4ed to
9be51b4
Compare
|
@pkolbas, thanks for this. Your commit is folded into #723 with your authorship kept, so Reviewed by Claude Opus 5.5, with Codex at xhigh over four rounds on the fold. Neither has Lunar Lake hardware to test on. Changed on top of your commit, all in #723:
On an XPS 16 (Panther Lake), the Lunar Lake branch was exercised by bind-mounting a copy of the script keyed to that board's bridge ID: the relay ran the configured pipeline without the rotation. Could you try the combined build on the Dell Pro 14 Premium? It is 4e0b35b.
sudo systemctl stop v4l2-relayd@ipu7
sudo ipcrm -M 0x0043414d 2>/dev/null
sub=/dev/$(basename "$(dirname "$(grep -l ov08x40 /sys/class/video4linux/v4l-subdev*/name | head -1)")")
sudo gst-launch-1.0 -q icamerasrc device-name=ov08x40-uf ae-mode=manual exposure-time=10000 gain=12.04 num-buffers=90 ! fakesink &
sleep 4; sudo v4l2-ctl -d "$sub" --get-ctrl analogue_gain; wait
sudo systemctl start v4l2-relayd@ipu7#723 lists the four Lunar Lake items from #366 (the probe race, the privacy LED, the IR sensor, and psys on s2idle) as not addressed there. — 🤖 Claude, posting on behalf of @spencerbull |
|
@spencerbull thanks for folding it in. I tested 9b87400 (the CI artifact,
What wasn't stock during the test:
Before installing, I had to remove my own relay override and the One side effect, on a lighter note: with the kernel's |
|
Thank you for this. What it does is now covered on This was folded into #723, which merged as 97925fb on 2026-10-03 with your credit kept. It adds This was checked against |
Fixes items 1 and 2 of #366, now on top of 1.0.6-2 (#418).
Rebased 2026-09-16. #418 turned out to do the kernel half for Lunar Lake as
well: with this package's own
intel-cvsDKMS module and the in-treeipu-bridge, the OV08X40 on this board joins the media graph behind theIntel CVSentity exactly as it does on Panther Lake. What is still missing isthe user-space half, and that is this PR.
1. Build both HAL platforms, with the CVS pad formats for
ipu7xlibcamhalpicks its plugin by platform, and on Lunar Lake it asks for one thatwas never built:
The proprietary half is already shipped —
libia_aic-ipu7x.soand the rest ofthat set come from
ipu7-camera-binstoday. Upstream builds both platforms fromone configure run, and the existing
make DESTDIR="${pkgdir}" installlays down/etc/camera/ipu7x/next toipu75xaon its own, tuning included — so thebuild change is one entry in
IPU_VERSIONS, with the explicitipu75xaconfiginstalls left untouched.
New in this revision:
0008-camhal-ipu7x-ov08x40-Intel-CVS-formats.patch, theipu7xtwin of #418's0006. Same hunk, same reason: behind the 7.2 bridge theIntel CVSpads need a format.0005alone is not enough foripu7xeither —without the routing patch the plugin resolves the bridge's name as the I2C bus
(
I2CBus:S,failed to setup Link ov08x40 S ==> Intel IPU7 CSI2 0) and relayddelivers one black frame; with
0005+0008it streams.2. Pick the relay pipeline per board
v4l2-relayd-ipu7.confrotates every frame 180°. That is right where the sensoris mounted inverted, and wrong here — this sensor says so itself:
so the picture arrives upside down in every application that opens
/dev/video50.camera-init.servicenow runs a small script that writesVIDEOSRCto/run/v4l2-relayd-ipu7-videosrc.envbased on the bridge ACPI id, and the relaydrop-in reads it. Only
INTC10DEtakes the new path.INTC10E1,INTC10CF,INTC10E0and anything unrecognised keep the packaged pipeline bytefor byte, and because the drop-in marks the file optional, a boot where
camera-initdid not run falls back to it too. I have no Panther Lake hardware,so the change is shaped to be a no-op there by construction rather than by my
testing.
The ordering works because the relay drop-in already carries
After=camera-init.service, and because systemd applies everyEnvironmentFileafter every
Environment=, with drop-in files read after the unit's own — sothis one wins over
/etc/v4l2-relayd.d/ipu7.confwithout that file beingtouched.
Verified
Dell Pro 14 Premium PA14250 — Lunar Lake,
INTC10DE, Synaptics SVP750006cb:0701,OV08X40+HM1092;intel-ipu7-camera 1.0.6-2,linux-omarchy 7.2.5-3:intel-cvs/1.0.6DKMS from this package, in-treeipu-bridge:Intel CVSentity between
ov08x40 17-0036andIntel IPU7 CSI2 0;intel_cvs i2c-INTC10DE:00: Quirks: 0x3a (VID:0x06cb PID:0x0701)ipu7xplugin from the pinned commit with0005+0008:resolveCsiPortAndI2CBus: I2CBus:17-0036 <=> CSI Port:0,(0): ov08x40-uf - ov08x40 as sensor.v4l2-relayd@ipu7: 30 fps on/dev/video50, live picture, upright in abrowser
makepkgof this branch builds; theipu7xplugin and/etc/camera/ipu7x/it produces are what runs on this machine
Still not sufficient on Lunar Lake — outside this PR, written up in #366
only in the bridge's runtime resume;
camera-init'smodprobe intel_cvs && sleep 2 && modprobe ov08x40lands while the bus is still owned by the bridgefirmware, and
ov08x40fails with-110on the chip-id read. Fix shape:probe the sensor with the bridge held awake (drop-in tested here, boot and
resume). Rebind ov08x40 after resume when camera-init's modprobe is a no-op #368 rewrites the same service for a related resume problem.
cvsdriver's quirk table gives06cb:0701ICVS_HOST_PRIV_CTRL, so the bridge hands the LED to a host thathas none. Dropping that flag (keeping
HOST_SENSOR_PWR_CTRL) brings it back;belongs upstream, could be carried like
0007meanwhile.ipu-bridgelearnsHIMX1092in 7.3 (4fdb0342f05e), onehunk for
linux-omarchy. With ithm1092links straight to CSI2 port 1 andstreams 30 fps.
psys_suspendreturns-EBUSYafter the camera wasused, so suspend fails; platform-independent, comes from Intel's tree, the
community pack carries a patch that applies to 1.0.6 cleanly.
I carry all four locally and can send each as its own PR.
🤖 Generated with Claude Code