Skip to content

camera: strengthen libcamera and CAMX runtime validation - #609

Draft
Srikanth Muppandam (smuppand) wants to merge 2 commits into
qualcomm-linux:mainfrom
smuppand:libcamera-camx-validation
Draft

Srikanth Muppandam (smuppand) wants to merge 2 commits into
qualcomm-linux:mainfrom
smuppand:libcamera-camx-validation

Conversation

@smuppand

Copy link
Copy Markdown
Contributor

Summary

Strengthen libcamera and CAMX validation across supported images while keeping runtime decisions evidence-based and portable.

Changes

  • decode and retain the active runtime device tree for camera diagnosis
  • validate enabled CAMX and sensor nodes instead of relying only on raw text matches
  • improve FIT/CDT overlay evidence and camera module validation
  • support packaged CAMX launcher locations and nativehaltest fallback validation
  • add CentOS camera package mappings and command mappings
  • require CAMX packages to be image-provided and report an actionable SKIP when the mapped package set is incomplete
  • document the updated runtime checks, artifacts, options, and result behavior

Validation

  • ShellCheck 0.9.0: pass
  • dash syntax validation: pass
  • git diff --check: pass
  • package-set missing-package helper test: pass

Target status

CentOS currently reports SKIP when the image lacks the required CAMX packages. The available CAMX RPMs are unsigned in the existing repository path, so package provisioning must be corrected in the image/repository flow before target validation can resume.

@smuppand
Srikanth Muppandam (smuppand) force-pushed the libcamera-camx-validation branch 8 times, most recently from aafbe5e to 7bf089f Compare October 22, 2026 15:45
Add runtime CAMX discovery, NHX checksum fallbacks, read-only RPM checks and bounded camera-service restoration. Provide package mappings, explicit CentOS CLO repository setup and dynamic efivarfs preparation.

Support native-HAL executable discovery, bounded capability and capture helpers, exact-test results and fresh image collection while preserving wrapper interfaces.

Distinguish EFI read failures from payload mismatches and retain separate before, write and readback diagnostics. Track pending selection by boot ID to prevent repeated writes and verify enabled CamX DT nodes after reboot.

Camera runner integration follows separately. Revert its consumers before removing this shared foundation.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Use shared helpers for runtime checks and read-only NHX setup with separate YAML and results. Keep base runs image-provided and explicit overlay setup responsible for missing CAMX packages and EFI selection.

Reuse complete package sets without repository refresh or installation. Continue on an existing EFI selection, track a pending reboot without repeated writes and report read or post-reboot failures with retained diagnostics.

Preserve NHX wrappers and JSON configurations while adding explicit native-HAL testcase, executable, frame, camera and dump-directory selections. Skip native capture without a known testcase and reject mixed native and JSON requests.

Require successful execution, matching test results, fresh valid dumps and owned-service restoration. Document native validation limits, unchanged Kodiak streams and repeat-setup behavior.

Depends on the preceding shared-helper commit. Revert this consumer integration before its shared foundation.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant