找回密码
 注册
搜索
查看: 3919|回复: 4

[讨论] 摄像头调试奇异问题,谁见过?

[复制链接]
发表于 2014-6-19 15:27:25 | 显示全部楼层 |阅读模式
调试GC0310的时候出现如下问题,串口log 如下。

[01-01 00:00:10.169] [0][1: swapper/0]msm_sensor_platform_probe called data c0ea3f5c
[01-01 00:00:10.179] [0][1: swapper/0]msm_sensor_platform_probe pdev name (null)
[01-01 00:00:10.189] [0][1: swapper/0]msm_sensor_get_dt_data qcom,sensor-name SKUAA_ST_gc0310, rc 0
[01-01 00:00:10.189] [0][1: swapper/0]msm_sensor_get_dt_data qcom,sensor-mode 1, rc 0
[01-01 00:00:10.199] [0][1: swapper/0]msm_sensor_get_dt_data qcom,sensor-position 1, rc 0
[01-01 00:00:10.209] [0][1: swapper/0]msm_sensor_get_dt_data qcom,mount-angle 180, rc 0
[01-01 00:00:10.219] [0][1: swapper/0]msm_sensor_get_dt_data qcom,cci-master 0, rc 0
[01-01 00:00:10.229] [0][1: swapper/0]msm_sensor_get_sub_module_index:481 src_node NULL
[01-01 00:00:10.229] [0][1: swapper/0]msm_sensor_get_sub_module_index:498 eeprom src_node NULL
[01-01 00:00:10.239] [0][1: swapper/0]msm_sensor_get_sub_module_index:527 src_node NULL
[01-01 00:00:10.249] [0][1: swapper/0]msm_sensor_get_sub_module_index csiphy_core[0] = 1
[01-01 00:00:10.259] [0][1: swapper/0]msm_sensor_get_sub_module_index csid_core[0] = 1
[01-01 00:00:10.259] [0][1: swapper/0]msm_sensor_get_dt_csi_data qcom,csi-lane-assign e4, rc 0
[01-01 00:00:10.269] [0][1: swapper/0]msm_sensor_get_dt_csi_data qcom,csi-lane-mask 3, rc 0
[01-01 00:00:10.279] [0][1: swapper/0]msm_sensor_get_dt_vreg_data qcom,cam-vreg-name count 2
[01-01 00:00:10.289] [0][1: swapper/0]msm_sensor_get_dt_vreg_data reg_name[0] = cam_vio
[01-01 00:00:10.299] [0][1: swapper/0]msm_sensor_get_dt_vreg_data reg_name[1] = cam_vdig
[01-01 00:00:10.299] [0][1: swapper/0]msm_sensor_get_dt_vreg_data cam_vreg[0].type = 0
[01-01 00:00:10.309] [0][1: swapper/0]msm_sensor_get_dt_vreg_data cam_vreg[1].type = 0
[01-01 00:00:10.319] [0][1: swapper/0]msm_sensor_get_dt_vreg_data cam_vreg[0].min_voltage = 0
[01-01 00:00:10.329] [0][1: swapper/0]msm_sensor_get_dt_vreg_data cam_vreg[1].min_voltage = 0
[01-01 00:00:10.339] [0][1: swapper/0]msm_sensor_get_dt_vreg_data cam_vreg[0].max_voltage = 0
[01-01 00:00:10.339] [0][1: swapper/0]msm_sensor_get_dt_vreg_data cam_vreg[1].max_voltage = 0
[01-01 00:00:10.349] [0][1: swapper/0]msm_sensor_get_dt_vreg_data cam_vreg[0].op_mode = 0
[01-01 00:00:10.359] [0][1: swapper/0]msm_sensor_get_dt_vreg_data cam_vreg[1].op_mode = 0
[01-01 00:00:10.369] [0][1: swapper/0]msm_sensor_get_dt_data gpio count 4
[01-01 00:00:10.379] [0][1: swapper/0]msm_sensor_get_dt_data gpio_array[0] = 26
[01-01 00:00:10.379] [0][1: swapper/0]msm_sensor_get_dt_data gpio_array[1] = 28
[01-01 00:00:10.389] [0][1: swapper/0]msm_sensor_get_dt_data gpio_array[2] = 35
[01-01 00:00:10.399] [0][1: swapper/0]msm_sensor_get_dt_data gpio_array[3] = 69
[01-01 00:00:10.399] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[0].gpio = 26
[01-01 00:00:10.409] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[1].gpio = 28
[01-01 00:00:10.419] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[2].gpio = 35
[01-01 00:00:10.429] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[3].gpio = 69
[01-01 00:00:10.439] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[0].flags = 1
[01-01 00:00:10.449] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[1].flags = 0
[01-01 00:00:10.459] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[2].flags = 0
[01-01 00:00:10.459] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[3].flags = 0
[01-01 00:00:10.469] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[0].label = CAMIF_MCLK
[01-01 00:00:10.479] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[1].label = CAM_RESET
[01-01 00:00:10.489] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[2].label = CAM_STANDBY
[01-01 00:00:10.499] [0][1: swapper/0]msm_sensor_get_dt_gpio_req_tbl cam_gpio_req_tbl[3].label = CAM_VANA
[01-01 00:00:10.509] [0][1: swapper/0]msm_sensor_get_dt_gpio_set_tbl cam_gpio_set_tbl[0].gpio = 28
[01-01 00:00:10.519] [0][1: swapper/0]msm_sensor_get_dt_gpio_set_tbl cam_gpio_set_tbl[1].gpio = 28
[01-01 00:00:10.529] [0][1: swapper/0]msm_sensor_get_dt_gpio_set_tbl cam_gpio_set_tbl[0].flags = 0
[01-01 00:00:10.539] [0][1: swapper/0]msm_sensor_get_dt_gpio_set_tbl cam_gpio_set_tbl[1].flags = 2
[01-01 00:00:10.549] [0][1: swapper/0]msm_sensor_get_dt_gpio_set_tbl cam_gpio_set_tbl[0].delay = 1000
[01-01 00:00:10.549] [0][1: swapper/0]msm_sensor_get_dt_gpio_set_tbl cam_gpio_set_tbl[1].delay = 4000
[01-01 00:00:10.559] [0][1: swapper/0]msm_sensor_init_gpio_pin_tbl qcom,gpio-reset 28
[01-01 00:00:10.569] [0][1: swapper/0]msm_sensor_init_gpio_pin_tbl qcom,gpio-reset 35
[01-01 00:00:10.579] [0][1: swapper/0]msm_sensor_init_gpio_pin_tbl qcom,gpio-vana 69
[01-01 00:00:10.589] [0][1: swapper/0]msm_sensor_get_dt_actuator_data qcom,actuator-cam-name 0, rc -22
[01-01 00:00:10.589] [0][1: swapper/0]msm_sensor_get_dt_data qcom,misc_regulator (null), rc -22
[01-01 00:00:10.599] [0][1: swapper/0]jbc get device tree ok
[01-01 00:00:10.649] [0][1: swapper/0]gc0310_power_up error power seq type 3
[01-01 00:00:10.659] [0][1: swapper/0]gc0310_match_id: jbc read id: a310 expected id a310:
[01-01 00:00:10.659] [0][1: swapper/0]jbc msm_sensor_platform_probe 00000
[01-01 00:00:10.669] [0][1: swapper/0]jbc msm_sensor_platform_probe 111111
[01-01 00:00:10.679] [0][1: swapper/0]msm_sensor_platform_probe SKUAA_ST_gc0310 probe succeeded
[01-01 00:00:10.689] [0][1: swapper/0]msm_sensor_platform_probe rc 0 session_id 2
[01-01 00:00:10.689] [0][1: swapper/0]msm_sensor_platform_probe:3209

Format: Log Type - Time(microsec) - Message
Log type: B - since boot(excluding boot rom).  D - delta
B -     57523 - SBL1, Start
B -     62830 - scatterload_region && ram_init, Start
D -         0 - scatterload_region && ram_init, Delta
B -     79239 - pm_device_init, Start
D -     16409 - pm_device_init, Delta
B -     96105 - boot_flash_init, Start
D -     23912 - boot_flash_init, Delta
B -    120109 - boot_config_data_table_init, Start
D -        91 - boot_config_data_table_init, Delta
B -    126300 - sbl1_ddr_set_params, Start
B -    130052 - Pre_DDR_clock_init, Start
D -       183 - Pre_DDR_clock_init, Delta
D -         0 - sbl1_ddr_set_params, Delta
B -    144570 - pm_driver_init, Start
B -    167933 - power on reason: 0x10
B -    167963 - warm reset reason: 0x2
B -    168390 - power off reason: 0x0
B -    171837 - soft reset reason: 0x0
D -     30805 - pm_driver_init, Delta
B -    178760 - clock_init, Start
D -       183 - clock_init, Delta
B -    220393 - Image Load, Start
B -    231800 - Tz Execution, Start
D -     51240 - Tz Execution, Delta
B -    285907 - SBL1, End

从log 看 probe 是成功的,ID 也没有问题,但是后边就死机了, 这跟SBL1有啥关系咧?

可以确定就是这个摄像头的问题,去掉这个摄像头就是正常的。



发表于 2014-6-19 17:59:11 | 显示全部楼层
有可能是IIC被拉死了
点评回复

使用道具 举报

发表于 2015-1-27 11:22:51 | 显示全部楼层
顶起!
点评回复

使用道具 举报

发表于 2015-2-10 09:04:39 | 显示全部楼层
路过,哪位大神帮下忙
点评回复

使用道具 举报

52RD网友  发表于 2015-2-12 10:50:14
问题基本出在你的camera power up数组上,你看看,是不是有什么数组没有跟dts上面对应上,也就是某个在power up数组上的regulator,在dts上没有找到属性,然后regulator操作的时候出现了空指针,然后就是内核dump,重启进入了sbl1
整体逻辑如上
高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-11-14 14:28 , Processed in 0.051331 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表