|
| 1 | +# Camera RDI dump validation using YAVTA App Test Scripts for Qualcomm Linux based platform (Yocto) |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +Camera scripts automates the Camera RDI dump validation using YAVTA App on the Qualcomm Linux based platform running a Yocto-based Linux system.It utilizes yavta and media-ctl binaries which is publicly available |
| 6 | +## Features |
| 7 | + |
| 8 | +- Camera RDI dump validation using YAVTA App |
| 9 | +- Compatible with Yocto-based root filesystem |
| 10 | + |
| 11 | +## Prerequisites |
| 12 | + |
| 13 | +Ensure the following components are present in the target Yocto build: |
| 14 | + |
| 15 | +- `yavta and media-ctl` (available in /usr/bin/) |
| 16 | +- To find the exact /dev/media node for our camss driver |
| 17 | + ``` |
| 18 | + media-ctl -p -d /dev/media 'y' | grep camss ['y' has to be replaced with media0 or media1 eg: /dev/media0, /dev/media1] |
| 19 | +
|
| 20 | + Output will be # driver qcom-camss [for probed media] |
| 21 | + ``` |
| 22 | +- To find list avaliable device files |
| 23 | + ``` |
| 24 | + v4l2-ctl --list-devices |
| 25 | + ``` |
| 26 | + Output will be # video0 video1 video2 ... |
| 27 | +- /dev/video# linking to RDI port is dynamic not fixed , user need to identify the correct video device file(by trail and error) to use in yavta RDI dump command |
| 28 | + |
| 29 | + 'y' has to be replaced eg: /dev/video0, /dev/video1 depending on RDI port configured.. |
| 30 | + ``` |
| 31 | + yavta -B capture-mplane -c -I -n 5 -f SRGGB10P -s 4056x3040 -F /dev/video'y' --capture=5 --file='frame-#.bin' |
| 32 | + ``` |
| 33 | +- camera_node_finder function dynamically detects the active media node and the corresponding video node (e.g., /dev/mediaX and /dev/videoY) for the msm_vfe0_rdi0 entity, enabling automated and adaptable camera pipeline configuration. |
| 34 | + |
| 35 | +## Directory Structure |
| 36 | + |
| 37 | +```bash |
| 38 | +Runner/ |
| 39 | +├── suites/ |
| 40 | +│ ├── Multimedia/ |
| 41 | +│ │ ├── Camera/ |
| 42 | +│ │ │ ├── v4l2_camera_RDI_dump |
| 43 | +│ │ │ │ ├── run.sh |
| 44 | +│ │ │ ├── README_Camera.md |
| 45 | +│ │ │ │ |
| 46 | +``` |
| 47 | + |
| 48 | +## Usage |
| 49 | + |
| 50 | +1. Copy repo to Target Device: Use scp to transfer the scripts from the host to the target device. The scripts should be copied to any directory on the target device. |
| 51 | + |
| 52 | +2. Verify Transfer: Ensure that the repo have been successfully copied to any directory on the target device. |
| 53 | + |
| 54 | +3. Run Scripts: Navigate to the directory where these files are copied on the target device and execute the scripts as needed. |
| 55 | + |
| 56 | +Run a specific test using: |
| 57 | +--- |
| 58 | +Quick Example |
| 59 | +``` |
| 60 | +git clone <this-repo> |
| 61 | +cd <this-repo> |
| 62 | +scp -r Runner user@target_device_ip:<Path in device> |
| 63 | +ssh user@target_device_ip |
| 64 | +cd <Path in device> && chmod +x run.sh && ./run.sh |
| 65 | +``` |
| 66 | +Sample output: |
| 67 | +``` |
| 68 | +sh-5.2# cd <Path in device> |
| 69 | +sh-5.2# ./run.sh |
| 70 | +[INFO] 2025-01-09 13:45:22 - ----------------------------------------------------------------------------------------- |
| 71 | +[INFO] 2025-01-09 13:45:22 - -------------------Starting v4l2_camera_RDI_dump Testcase---------------------------- |
| 72 | +[INFO] 2025-01-09 13:45:22 - === Test Initialization === |
| 73 | +[INFO] 2025-01-09 13:45:22 - Checking if dependency binary is available |
| 74 | +[INFO] 2025-01-09 13:45:22 - -------------------Camera commands execution start---------------------------- |
| 75 | +Device /dev/v4l-subdev0 opened. |
| 76 | +Control 0x009f0903 set to 0, is 0 |
| 77 | +Device /dev/v4l-subdev0 opened. |
| 78 | +Control 0x009f0903 set to 9, is 9 |
| 79 | +[PASS] 2025-01-09 13:45:23 - v4l2_camera_RDI_dump : Test Passed |
| 80 | +[INFO] 2025-01-09 13:45:23 - -------------------Completed v4l2_camera_RDI_dump Testcase---------------------------- |
| 81 | +``` |
| 82 | +3. Results will be available in the `Runner/suites/Multimedia/Camera/v4l2_camera_RDI_dump/` directory under each usecase folder. |
| 83 | + |
| 84 | +## Notes |
| 85 | + |
| 86 | +- The script does not take any arguments. |
| 87 | +- It validates the presence of required libraries before executing tests. |
| 88 | +- If any critical tool is missing, the script exits with an error message. |
0 commit comments