没有合适的资源?快使用搜索试试~ 我知道了~
LINUX CAMERA DEBUGGING GUIDE.pdf
需积分: 28 13 下载量 30 浏览量
2020-06-05
14:39:04
上传
评论
收藏 411KB PDF 举报
温馨提示
试读
75页
高通camera linux环境调试指导文档,有助于了解高通平台的camera架构,非常值得参考和学习
资源推荐
资源详情
资源评论
Qualcomm Technologies, Inc.
Confidential and Proprietary – Qualcomm Technologies, Inc.
NO PUBLIC DISCLOSURE PERMITTED: Please report postings of this document on public servers or websites to:
DocCtrlAgent@qualcomm.com.
Restricted Distribution: Not to be distributed to anyone who is not an employee of either Qualcomm Technologies, Inc. or its
affiliated companies without the express approval of Qualcomm Configuration Management.
Not to be used, copied, reproduced, or modified in whole or in part, nor its contents revealed in any manner to others without the
express written permission of Qualcomm Technologies, Inc.
Chromatix and MSM are products of Qualcomm Technologies, Inc. Other Qualcomm products referenced herein are products of
Qualcomm Technologies, Inc. or its subsidiaries
Qualcomm, Chromatix, and MSM are trademarks of Qualcomm Incorporated, registered in the United States and other countries.
Other product and brand names may be trademarks or registered trademarks of their respective owners.
This technical data may be subject to U.S. and international export, re-export, or transfer (“export”) laws. Diversion contrary to U.S.
and international law is strictly prohibited.
Qualcomm Technologies, Inc.
5775 Morehouse Drive
San Diego, CA 92121
U.S.A.
© 2014-2016 Qualcomm Technologies, Inc. All rights reserved.
Linux Camera Debugging Guide
80-NL239-33 F
October 7, 2016
80-NL239-33 F Confidential and Proprietary – Qualcomm Technologies, Inc. 2
MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Revision history
Revision Date Description
A May 2014 Initial release
B July 2014 Added Chinese translation; updated Section 3.3.3 and Section 5.3.2
C October 2014 Added storing 3A metadata in JPEG, actuator debugging, Android specs
reference, Section 2.3.6, Section 5.3.6, and Chapter 13
D March 2015 Edited for translation
E April 2016 Added Chapter 4 and 12, Section 9.3, and other miscellaneous edits
F October 2016 Updated the Section 1.1 and added Chapter 16
80-NL239-33 F Confidential and Proprietary – Qualcomm Technologies, Inc. 3
MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
Contents
1 Introduction ...................................................................................................... 7
1.1 Purpose.......................................................................................................................... 7
1.2 Conventions .................................................................................................................. 7
1.3 Technical assistance ...................................................................................................... 7
2 Camera front end ............................................................................................. 8
2.1 Capture log information in camera HAL layer ............................................................. 8
2.2 Monitor KPI (KPI Perf) ................................................................................................ 8
2.3 Troubleshooting ............................................................................................................ 9
2.3.1 Thermal mitigation ............................................................................................ 9
2.3.2 fps profiling ..................................................................................................... 11
2.3.3 Dump buffers ................................................................................................... 11
2.3.4 Dump metadata ................................................................................................ 12
2.3.5 Enable full size live snapshot........................................................................... 12
2.3.6 Store 3A debug information in JPEG .............................................................. 13
3 Kernel module ................................................................................................ 15
3.1 Get kernel logs ............................................................................................................ 15
3.2 Debug calls from HAL................................................................................................ 16
3.3 Open device node ........................................................................................................ 20
3.4 Handle custom event via V4L2 ................................................................................... 21
4 General camera module logging .................................................................. 23
4.1 Logging levels ............................................................................................................. 23
4.2 Log module definitions ............................................................................................... 23
5 Media controller ............................................................................................. 25
5.1 Capture logs from the Media Controller module ........................................................ 25
5.2 Troubleshooting .......................................................................................................... 25
5.2.1 Media controller hangs during start/stop session ............................................. 25
5.2.2 Track stream information ................................................................................ 26
6 Sensor module ............................................................................................... 28
6.1 Validate GPIO, clock, and regulator settings in power-up/down sequence ............... 28
6.1.1 Validate register settings in CCI ...................................................................... 28
6.1.2 Validate CSIPHY settings ............................................................................... 28
6.2 CSID ........................................................................................................................... 30
6.3 Troubleshooting .......................................................................................................... 31
6.3.1 Unexecuted probe function .............................................................................. 31
Linux Camera Debugging Guide Contents
80-NL239-33 F Confidential and Proprietary – Qualcomm Technologies, Inc. 4
MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
6.3.2 Probe failure..................................................................................................... 31
6.3.3 I2C error using CCI ......................................................................................... 32
6.3.4 No frames ........................................................................................................ 32
6.3.5 Dark preview ................................................................................................... 32
6.3.6 AF actuator ...................................................................................................... 33
7 ISP ISPIF module ........................................................................................... 35
7.1 Capture logs for the ISP module ................................................................................. 35
7.2 Troubleshooting .......................................................................................................... 35
7.2.1 Verify frame type ............................................................................................. 35
7.2.2 Verify VFE hardware configuration ................................................................ 36
7.2.3 Tap Raw Dump Interface (RDI) stream .......................................................... 37
8 Stats module .................................................................................................. 38
8.1 Capture logs from the Stats module ............................................................................ 38
8.2 Exposure ..................................................................................................................... 38
8.3 Flicker ......................................................................................................................... 41
8.4 Processing does not initiate ......................................................................................... 42
8.5 Examine events in Stats module ................................................................................. 42
9 Imaging library module ................................................................................. 43
9.1 Capture logs from the Imaging Library module ......................................................... 43
9.2 Capture logs related to FaceProc ................................................................................ 43
9.3 Imglib module level logging ....................................................................................... 44
9.4 Troubleshooting .......................................................................................................... 45
9.4.1 Image Quality (IQ) does not improve .............................................................. 45
9.4.2 Face detection configuration ............................................................................ 45
10 PProc module .............................................................................................. 46
10.1 Capture logs from the PProc module ........................................................................ 46
10.2 Profile hardware performance ................................................................................... 46
10.3 Troubleshoot deadlocks with mutex track logs ......................................................... 47
10.4 Troubleshooting ........................................................................................................ 47
10.4.1 Buffer underrun ............................................................................................. 47
11 Imaging codec layer .................................................................................... 49
11.1 Dump input buffers ................................................................................................... 49
11.2 Enable logs for mm-jpeg-interface ........................................................................... 50
11.3 Enable logs for OMX layer ....................................................................................... 51
11.4 ExIF issues ................................................................................................................ 52
11.5 Write new mm-jpeg-interface ................................................................................... 53
11.6 Cache invalidation .................................................................................................... 53
12 Encode JPEG ............................................................................................... 54
12.1 Dump YUV input to the JPEG encoder .................................................................... 54
13 Bus overflow ................................................................................................ 55
Linux Camera Debugging Guide Contents
80-NL239-33 F Confidential and Proprietary – Qualcomm Technologies, Inc. 5
MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATION
13.1 Identify VFE bus overflow error messages............................................................... 55
13.2 Select the right VFE clock frequency ....................................................................... 55
13.3 Check bus clocks related to VFE bus overflow ........................................................ 56
13.4 Set bus clock to its maximum frequency .................................................................. 57
13.5 Check AB/IB voting bandwidth from VFE .............................................................. 59
13.6 Identify AXI configuration ....................................................................................... 60
13.7 Increase AB/IB ......................................................................................................... 62
13.8 VFE burst length change ........................................................................................... 63
13.9 Dump SurfaceFlinger information ............................................................................ 63
13.10 Reduce CPU/memory-intensive operations ............................................................ 65
13.11 Guideline for bus profiling preparation (only if it is needed) ................................. 65
14 Stability debugging ..................................................................................... 66
14.1 User space stability debug without symbols in stack ................................................ 66
14.2 User space stability debug with stack symbols ......................................................... 67
15 Common Android specification violations ................................................ 69
15.1 Invalid camera ID in camera open ............................................................................ 69
15.2 Access same camera hardware from multiple camera clients ................................... 70
16 Customer configurable parameters ........................................................... 71
A References ..................................................................................................... 74
A.1 Related documents ..................................................................................................... 74
A.2 Acronyms and terms .................................................................................................. 75
剩余74页未读,继续阅读
资源评论
颠拐
- 粉丝: 4
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于混沌集成决策树的电能质量复合扰动识别(注释完全,可直接运行)(文档加Matlab源码)
- 基于JAVA的打飞机游戏设计(程序).zip
- 随机优化智能配电网的双时间尺度随机优化调度(注释完全,可直接运行)(文档加Matlab源码)
- 多目标粒子群选址定容-main为主函数-含储能出力(注释完全,可直接运行)(文档加Matlab源码)
- fonepaw苹果恢复
- 基于主从博弈的主动配电网阻塞管理(注释完全,可直接运行)(文档加Matlab源码)
- 房地产公司信息化管理奖惩作业指引模版.doc
- 园区三方主体(注释完全,可直接运行)(文档加Matlab源码)
- 基于php+mysql+html+css超市管理系统答辩PPT.pptx
- 房地产公司信息化管理程序模版.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功