Firefly开源社区

打印 上一主题 下一主题

[技术讨论] RV1126使用sc132gs抓图失败

15

积分

0

威望

0

贡献

技术小白

积分
15

RV1126使用sc132gs抓图失败

发表于 2022-4-18 20:02:39      浏览:9152 | 回复:5        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
参照wiki外设使用章节抓图使用/oem/usr/bin/ispserver &命令出现错误
  1. media get entity by name: rkcif-lvds-subdev is null
  2. media get entity by name: rkcif-lite-lvds-subdev is null
  3. [19:52:24.471999][CAMHW]:XCAM ERROR CamHwIsp20.cpp:160: @get_sensor_caps /dev/v4l-subdev3: Enum sensor frame interval failed
  4. media get entity by name: rkisp-mpfbc-subdev is null
  5. media get entity by name: rkisp_dmapath is null
  6. media get entity by name: rockchip-mipi-dphy-rx is null
  7. ispserver[2952]: ispserver version 1.0.0
  8. ispserver[2952]: [ispserver][rkaiq_get_media_info]:get sensor name m01_f_sc132gs 1-0030
  9. ispserver[2952]: [ispserver][rkaiq_get_media_info]:get cam_num 1
  10. ispserver[2952]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media0
  11. media get entity by name: rkisp-isp-subdev is null
  12. media get entity by name: rkisp-input-params is null
  13. media get entity by name: rkisp-statistics is null
  14. media get entity by name: rkispp_input_params is null
  15. ispserver[2952]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media1
  16. ispserver[2952]: [ispserver][rkaiq_get_devname]:get rkisp-isp-subdev devname: /dev/v4l-subdev4
  17. ispserver[2952]: [ispserver][rkaiq_get_devname]:get rkisp-input-params devname: /dev/video15
  18. ispserver[2952]: [ispserver][rkaiq_get_devname]:get rkisp-statistics devname: /dev/video14
  19. media get entity by name: rkispp_input_params is null
  20. ispserver[2952]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media2
  21. ispserver[2952]: [ispserver][rkaiq_get_devname]:get rkispp_input_params devname: /dev/video23
  22. ispserver[2952]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media3
  23. ispserver[2952]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media4
  24. ispserver[2952]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media5
  25. ispserver[2952]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media6
  26. ispserver[2952]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media7
  27. ispserver[2952]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media8
  28. ispserver[2952]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media9
  29. ispserver[2952]: [ispserver][rkaiq_get_media_info]:cam id 0 find_sensor 1 find_isp 1 find_ispp 1
  30. ispserver[2952]: [ispserver][rkaiq_get_media_info]:cam id 1 find_sensor 0 find_isp 0 find_ispp 0
  31. ispserver[2952]: [ispserver][main]:enter wait thread for cam index 0
  32. ispserver[2952]: [ispserver][thread_func]:thread_func cam_id 0...
  33. ispserver[2952]: [ispserver][database_hash_init]:database_hash_init init complete
  34. ispserver[2952]: [ispserver][database_init]:database_init
  35. ispserver[2952]: [ispserver][main]:call_fun_ipc_demo_server init
  36. ispserver[2952]: [ispserver][hash_data_init_by_id]:hashtable init complete!
  37. ispserver[2952]: [ispserver][database_init]:database_init over
  38. ispserver[2952]: [ispserver][manage_init]:manage_init
  39. ispserver[2952]: [ispserver][subscrible_stream_event]:subscribe events from /dev/video15 success !
  40. ispserver[2952]: [ispserver][init_engine]:hdr_mode_db: 16
  41. ispserver[2952]: [ispserver][init_engine]:hdr mode: 1
  42. [ 4616.780410] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div
  43. [19:52:24.920004][CAMHW]:XCAM ERROR SensorHw.cpp:854: failed to set hflip (val: 0)
  44. ispserver[2952]: [ispserver][init_engine]:set fec_en: 0, ret is 0
  45. [19:52:24.922272][CAMHW]:XCAM ERROR SensorHw.cpp:834: failed to set hdr mode 5
  46. [19:52:24.922459][XCORE]:XCAM ERROR RkAiqManager.cpp:258: camhw prepare error -9
  47. [19:52:24.923068][XCORE]:XCAM ERROR rk_aiq_user_api_sysctl.cpp:258: prepare failed !
  48. ispserver[2952]: [ispserver][init_engine]:rkaiq engine prepare failed !
  49. ispserver[2952]: [ispserver][main_exit]:server main_exit
  50. ispserver[2952]: [ispserver][main_exit]:stop engine camera index 0...
  51. ispserver[2952]: [ispserver][main_exit]:deinit engine camera index 0...
  52. [ 4616.787588] pgd = 95aae16c
  53. [ 4616.787618] [00000068] *pgd=7e4d0835
  54. [ 4616.787632] CPU: 1 PID: 2953 Comm: ispserver Tainted: G           O      4.19.111 #2
  55. [ 4616.787639] Hardware name: Generic DT based system
  56. [ 4616.787650] PC is at 0xa6faa838
  57. [ 4616.787657] LR is at 0x21814
  58. [ 4616.787663] pc : [<a6faa838>]    lr : [<00021814>]    psr: 600d0010
  59. [ 4616.787676] sp : a6770d48  ip : a6faa7cc  fp : a69a5000
  60. [ 4616.787686] r10: a69a8130  r9 : 00028de5  r8 : 00028532
  61. [ 4616.787695] r7 : 0003b488  r6 : 0003bfd8  r5 : 0003b000  r4 : 00000000
  62. [ 4616.787706] r3 : 00000001  r2 : 00000000  r1 : 00000000  r0 : 00000000
  63. [ 4616.787720] Flags: nZCv  IRQs on  FIQs on  Mode USER_32  ISA ARM  Segment user
  64. [ 4616.787730] Control: 10c5387d  Table: 3128c06a  DAC: 00000055
  65. [ 4616.787744] CPU: 1 PID: 2953 Comm: ispserver Tainted: G           O      4.19.111 #2
  66. [ 4616.787756] Hardware name: Generic DT based system
  67. [ 4616.787791] [<b010f408>] (unwind_backtrace) from [<b010b970>] (show_stack+0x10/0x14)
  68. [ 4616.787816] [<b010b970>] (show_stack) from [<b09b4464>] (dump_stack+0x90/0xa4)
  69. [ 4616.787842] [<b09b4464>] (dump_stack) from [<b011373c>] (__do_user_fault+0x130/0x134)
  70. [ 4616.787870] [<b011373c>] (__do_user_fault) from [<b0113980>] (do_page_fault+0x240/0x348)
  71. [ 4616.787887] [<b0113980>] (do_page_fault) from [<b0113c18>] (do_DataAbort+0x4c/0xec)
  72. [ 4616.787900] [<b0113c18>] (do_DataAbort) from [<b0101d7c>] (__dabt_usr+0x3c/0x40)
  73. [ 4616.787908] Exception stack(0xed4c7fb0 to 0xed4c7ff8)
  74. [ 4616.787921] 7fa0:                                     00000000 00000000 00000000 00000001
  75. [ 4616.787935] 7fc0: 00000000 0003b000 0003bfd8 0003b488 00028532 00028de5 a69a8130 a69a5000
  76. [ 4616.787946] 7fe0: a6faa7cc a6770d48 00021814 a6faa838 600d0010 ffffffff
复制代码
已经在在rv1126-firefly-jd4.dts添加了,并在rv1126_firefly_defg添加CONFIG_VIDEO_SC132GS=y,i2ctool可以找到设置
  1. &i2c1 {
  2.         status = "okay";

  3.         /delete-node/ os04a10@36;

  4.         sc132gs: sc132gs@30 {
  5.                 compatible = "smartsens,sc132gs";
  6.                 reg = <0x30>;
  7.                 clocks = <&cru CLK_MIPICSI_OUT>;
  8.                 clock-names = "xvclk";
  9.                 power-domains = <&power RV1126_PD_VI>;
  10.                 pinctrl-names = "rockchip,camera_default";
  11.                 pinctrl-0 = <&mipicsi_clk0>;
  12.                 pwdn-gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
  13.                 reset-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>;
  14.                 rockchip,camera-module-index = <1>;
  15.                 rockchip,camera-module-facing = "front";
  16.                 rockchip,camera-module-name = "CMK-OT1607-FV1";
  17.                 rockchip,camera-module-lens-name = "M12-40IRC-4MP-F16";
  18.                 /* NO_HDR:0 HDR_X2:5 HDR_X3:6 */
  19.                 // rockchip,camera-hdr-mode = <5>;
  20.         port {
  21.             ucam_out0: endpoint {
  22.                     remote-endpoint = <&mipi_in_ucam0>;
  23.                 data-lanes = <1 2 3 4>;
  24.             };
  25.         };
  26.         };
  27. };
复制代码

MobaXterm_COM4_20220418_200128.txt

92 KB, 下载次数: 3, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11182

优秀版主

发表于 2022-4-19 09:20:45        只看该作者  沙发
加了 iqfile 了吗?
回复

使用道具 举报

15

积分

0

威望

0

贡献

技术小白

积分
15
发表于 2022-4-19 09:49:58        只看该作者  板凳
板蓝根 发表于 2022-4-19 09:20
加了 iqfile 了吗?

复制了os04a10的iq修改名字,使用
  1. v4l2-ctl -d /dev/video19 --set-fmt-video=width=1080,height=1280,pixelformat=NV12 --stream-mmap=3 --stream-skip=3 --stream-to=/tmp/cif.out --stream-count=1 --stream-poll
复制代码
会提示无法获取iq设置
  1. [  538.665539] rkispp0: waiting on params stream on event timeout
  2. [  538.671136] rkisp rkisp-vir0: can not get first iq setting in stream on
  3. select timeout
  4. [  541.680371] rkisp-bridge-ispp: bridge_stop timeout ret:0
复制代码
请问sc132gs的iq能从哪里获取吗?或是没iq时如何测试摄像头
回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11182

优秀版主

发表于 2022-4-19 14:57:06        只看该作者  地板
sdk/external/camera_engine_rkaiq/iqfiles,下有 rk 适配的 iqfile 如果有就可以直接用,如果没有说明rockchip 没有调过需要自行标定
回复

使用道具 举报

15

积分

0

威望

0

贡献

技术小白

积分
15
发表于 2022-4-19 15:36:42        只看该作者  5#
板蓝根 发表于 2022-4-19 14:57
sdk/external/camera_engine_rkaiq/iqfiles,下有 rk 适配的 iqfile 如果有就可以直接用,如果没有说明rock ...

使用https://gitlab.com/firefly-linux ... ree/firefly/iqfiles下的sc132gs_blackvision_f00101a.xml文件
使用/oem/usr/bin/ispserver &出现大量的错误内容都是[XCORE]:XCAM ERROR RkAiqCalibTag.cppXXX
  1. [root@RV1126_RV1109:/]# media get entity by name: rkcif-lvds-subdev is null
  2. media get entity by name: rkcif-lite-lvds-subdev is null
  3. [10:44:30.578818][CAMHW]:XCAM ERROR CamHwIsp20.cpp:160: @get_sensor_caps /dev/v4l-subdev3: Enum sensor frame interval failed
  4. media get entity by name: rkisp-mpfbc-subdev is null
  5. media get entity by name: rkisp_dmapath is null
  6. media get entity by name: rockchip-mipi-dphy-rx is null
  7. ispserver[3933]: ispserver version 1.0.0
  8. ispserver[3933]: [ispserver][rkaiq_get_media_info]:get sensor name m01_f_sc132gs 1-0030
  9. ispserver[3933]: [ispserver][rkaiq_get_media_info]:get cam_num 1
  10. ispserver[3933]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media0
  11. media get entity by name: rkisp-isp-subdev is null
  12. media get entity by name: rkisp-input-params is null
  13. media get entity by name: rkisp-statistics is null
  14. media get entity by name: rkispp_input_params is null
  15. ispserver[3933]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media1
  16. ispserver[3933]: [ispserver][rkaiq_get_devname]:get rkisp-isp-subdev devname: /dev/v4l-subdev4
  17. ispserver[3933]: [ispserver][rkaiq_get_devname]:get rkisp-input-params devname: /dev/video15
  18. ispserver[3933]: [ispserver][rkaiq_get_devname]:get rkisp-statistics devname: /dev/video14
  19. media get entity by name: rkispp_input_params is null
  20. ispserver[3933]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media2
  21. ispserver[3933]: [ispserver][rkaiq_get_devname]:get rkispp_input_params devname: /dev/video23
  22. ispserver[3933]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media3
  23. ispserver[3933]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media4
  24. ispserver[3933]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media5
  25. ispserver[3933]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media6
  26. ispserver[3933]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media7
  27. ispserver[3933]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media8
  28. ispserver[3933]: [ispserver][rkaiq_get_media_info]:media get sys_path: /dev/media9
  29. ispserver[3933]: [ispserver][rkaiq_get_media_info]:cam id 0 find_sensor 1 find_isp 1 find_ispp 1
  30. ispserver[3933]: [ispserver][rkaiq_get_media_info]:cam id 1 find_sensor 0 find_isp 0 find_ispp 0
  31. ispserver[3933]: [ispserver][main]:enter wait thread for cam index 0
  32. ispserver[3933]: [ispserver][thread_func]:thread_func cam_id 0...
  33. ispserver[3933]: [ispserver][database_hash_init]:database_hash_init init complete
  34. ispserver[3933]: [ispserver][database_init]:database_init
  35. ispserver[3933]: [ispserver][main]:call_fun_ipc_demo_server init
  36. ispserver[3933]: [ispserver][hash_data_init_by_id]:hashtable init complete!
  37. ispserver[3933]: [ispserver][database_init]:database_init over
  38. ispserver[3933]: [ispserver][manage_init]:manage_init
  39. ispserver[3933]: [ispserver][subscrible_stream_event]:subscribe events from /dev/video15 success !
  40. ispserver[3933]: [ispserver][init_engine]:hdr_mode_db: 16
  41. ispserver[3933]: [ispserver][init_engine]:hdr mode: 1
  42. [10:44:30.662385][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6457: calib_check_getID_by_name(6457): subtag: isp_output_type from parent tag: header is unknown, assert!!!

  43. [10:44:30.663252][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6535: calib_check_tag_attrs(6535): parent_tag_id:2 tag_id:1115 --- tag id is is wrong: min:0 max:1115

  44. [10:44:30.664460][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6581: calib_check_tag_attrs(6581): parent_tag_id:2 parent_tag_name:header  tag_id:1115 tag_name:unknown --- ASSERT!!!

  45. [10:44:30.665804][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6457: calib_check_getID_by_name(6457): subtag: sdk_IQfile_Verify from parent tag: header is unknown, assert!!!

  46. [10:44:30.667009][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6535: calib_check_tag_attrs(6535): parent_tag_id:2 tag_id:1115 --- tag id is is wrong: min:0 max:1115
复制代码



MobaXterm_COM4_20220419_104451.txt

57.28 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

25

积分

0

威望

0

贡献

技术小白

积分
25
发表于 2023-4-19 00:50:27        只看该作者  6#
我没有管iq文件可以出图但是图很暗,你有遇到吗。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表