专栏底层软件j5点亮ovx3b时bus error

j5点亮ovx3b时bus error

已解决
anshi2023-04-07
132
14

用户您好,请详细描述您所遇到的问题。

1.硬件获取渠道:

2.当前系统镜像版本:

3.当前天工开物版本:

4.问题定位:

j5点亮ovx3c时bus error:

tztek@TADC-D52:/userdata/pushcamera# ./start.sh

poc power off

deserial power off

poc power on

deserial power on

j5 cam reset ok

Bus error (core dumped)

logcat

logcat test start !!!

--------- beginning of /dev/log_main

I/ ( 530): [2.819475]hb_vcs_set_oom_score_adj[2261] L: action: echo -1000 > /proc/530/oom_score_adj ret:0

I/ ( 530): [3.502283]main[2291] L: vio service start pid 530

I/ ( 1638): [61.023126]hb_vio_init[643] L: vio process mode:0 [0:signal, 1:multi]

I/ ( 1638): [61.024506][VPM pipeline]:[vio_pipeline_parser][111]Vpm pipeline parse done.

I/ ( 1638): [61.024868][VPM pipeline]:[vio_pipeline_create][538]pipe (0) create done!

I/ ( 1638): [61.024899][VPM pipeline]:[vio_pipeline_entity_create][292]pipe(0) vio_pipeline_entity_create in

E/ ( 1638): [61.024982][ISP]:[cjson_string_dup][545]json file path /system/etc/cam/lib_COX3CGB_pwl12_OF_Fov99.so length 45 limit 100

I/ ( 1638): [61.025021][PYM]:[pym_entity_create][406]pipe(0) pym entity_create done !

D/ ( 1638): pipeline_id = 0, hw_id = 0, ctx_id = 0, open end!

D/ ( 1638): hb_mem_module_open success version: 0.2.0

I/ ( 1638): [61.056705][ISP]:[isp_entity_init][297]Pipe(0) hw_id = 0, set isp_dev_sched_mode 0

I/ ( 1638): [61.056728][ISP]:[isp_entity_init][310]Pipe(0) isp entity init done.

I/ ( 1638): [61.058128][PYM]:[pym_entity_init_req_buf][560]Pipe(0) Pym 0 otf mode 1 configed.

I/ ( 1638): [61.058155][PYM]:[pym_entity_init][653]Pipe(0) Pym 0 entity init done.

I/ ( 1638): [61.081264][GDC]:[gdc_entity_init][533]Pipe(0) Gdc entity init done.

I/ ( 1638): [61.081322][VPM pipeline]:[vio_pipeline_init][507]pipe(0) pipeline_init success out

I/ ( 1638): [61.081371][VPM interface]:[hb_vpm_init_pipeline][117]pipeline(0) init done !

I/ ( 1638): [61.081589][VIN]:[hb_vin_init][929]cam init begin cam_index 0 cfg_file ./cfg/hb_j5dev.json

I/ ( 1638): [61.082287][VIN]:[hb_vin_deserial_parse_cfg][283]deserial_index 0 deserial_name = max9296

I/ ( 1638): [61.082367][VIN]:[hb_vin_port_parse_cfg][543]port_index 0 deserial_port = 0, NO. 1 attached to desrial max9296

I/ ( 1638): [61.082394][hb mipi]:mipi cfg: ./cfg/hb_mipi_ovx3c_yuyv_30fps_1280P.json

I/ ( 1638): [61.082905][hb_i2c]:[hb_vin_i2c_init][58]bus 1 cam_bus_cnt[bus] 1 cam_fd[bus] 36

I/ ( 1638): [61.084179][hb cim]:cim cfg: ./cfg/cim_config.json

I/ ( 1638): [61.084671][cim hal]:pipe(0) cim_entity_init in.

I/ ( 1638): [61.084835][cim hal]:pipe(0) cim_entity_init out.

I/ ( 1638): [61.084873][hb_i2c]:[hb_vin_i2c_init][58]bus 1 cam_bus_cnt[bus] 2 cam_fd[bus] 36

5.开发的demo/案例:

6.需要提供的解决方案:

附件:
底层软件
征程5
评论1
0/1000
  • 费小财
    Lv.5

    您好,

    logcat只要这边一点吗

    你可以通过gdb /log/coredump/ /对应的脚本, 可以定位core dump的dumptrace的

    2023-04-07
    0
    13
    • anshi回复费小财:

      对,这是全部的logcat了

      logcat test start !!!

      --------- beginning of /dev/log_main

      I/ ( 534): [2.771554]hb_vcs_set_oom_score_adj[2261] L: action: echo -1000 > /proc/534/oom_score_adj ret:0

      I/ ( 534): [3.465262]main[2291] L: vio service start pid 534

      I/ ( 1648): [43.864579]hb_vio_init[643] L: vio process mode:0 [0:signal, 1:multi]

      I/ ( 1648): [43.865227][VPM pipeline]:[vio_pipeline_parser][111]Vpm pipeline parse done.

      I/ ( 1648): [43.865559][VPM pipeline]:[vio_pipeline_create][538]pipe (0) create done!

      I/ ( 1648): [43.865593][VPM pipeline]:[vio_pipeline_entity_create][292]pipe(0) vio_pipeline_entity_create in

      E/ ( 1648): [43.865688][ISP]:[cjson_string_dup][545]json file path /system/etc/cam/lib_x3cRGGB_Pwl12_SY_Fov106.so length 46 limit 100

      I/ ( 1648): [43.865719][PYM]:[pym_entity_create][406]pipe(0) pym entity_create done !

      D/ ( 1648): pipeline_id = 0, hw_id = 0, ctx_id = 0, open end!

      D/ ( 1648): hb_mem_module_open success version: 0.2.0

      I/ ( 1648): [43.897503][ISP]:[isp_entity_init][297]Pipe(0) hw_id = 0, set isp_dev_sched_mode 2

      I/ ( 1648): [43.897526][ISP]:[isp_entity_init][310]Pipe(0) isp entity init done.

      I/ ( 1648): [43.898857][PYM]:[pym_entity_init_req_buf][560]Pipe(0) Pym 0 otf mode 1 configed.

      I/ ( 1648): [43.898907][PYM]:[pym_entity_init][653]Pipe(0) Pym 0 entity init done.

      I/ ( 1648): [43.921177][GDC]:[gdc_entity_init][533]Pipe(0) Gdc entity init done.

      I/ ( 1648): [43.921234][VPM pipeline]:[vio_pipeline_init][507]pipe(0) pipeline_init success out

      I/ ( 1648): [43.921253][VPM interface]:[hb_vpm_init_pipeline][117]pipeline(0) init done !

      I/ ( 1648): [43.921463][VIN]:[hb_vin_init][929]cam init begin cam_index 0 cfg_file ./cfg/hb_j5dev.json

      I/ ( 1648): [43.921757][VIN]:[hb_vin_deserial_parse_cfg][283]deserial_index 0 deserial_name = max9296

      I/ ( 1648): [43.921837][VIN]:[hb_vin_port_parse_cfg][543]port_index 0 deserial_port = 0, NO. 1 attached to desrial max9296

      I/ ( 1648): [43.921864][hb mipi]:mipi cfg: ./cfg/hb_mipi_ovx3c_raw12_30fps_1280P.json

      I/ ( 1648): [43.922108][hb_i2c]:[hb_vin_i2c_init][58]bus 1 cam_bus_cnt[bus] 1 cam_fd[bus] 36

      I/ ( 1648): [43.923447][hb cim]:cim cfg: ./cfg/cim_config.json

      I/ ( 1648): [43.923611][cim hal]:pipe(0) cim_entity_init in.

      I/ ( 1648): [43.923775][cim hal]:pipe(0) cim_entity_init out.

      I/ ( 1648): [43.923809][hb_i2c]:[hb_vin_i2c_init][58]bus 1 cam_bus_cnt[bus] 2 cam_fd[bus] 36

      这是gdb时追踪的信息:

      (gdb) bt

      #0 0x0000fffff7fe574c in ?? () from /lib/ld-linux-aarch64.so.1

      #1 0x0000fffff7fd1408 in ?? () from /lib/ld-linux-aarch64.so.1

      #2 0x0000fffff7fd427c in ?? () from /lib/ld-linux-aarch64.so.1

      #3 0x0000fffff7fde500 in ?? () from /lib/ld-linux-aarch64.so.1

      #4 0x0000fffff78b03a0 in _dl_catch_exception () from /lib/libc.so.6

      #5 0x0000fffff7fddf3c in ?? () from /lib/ld-linux-aarch64.so.1

      #6 0x0000fffff77271a4 in ?? () from /lib/libdl.so.2

      #7 0x0000fffff78b03a0 in _dl_catch_exception () from /lib/libc.so.6

      #8 0x0000fffff78b044c in _dl_catch_error () from /lib/libc.so.6

      #9 0x0000fffff77278a0 in ?? () from /lib/libdl.so.2

      #10 0x0000fffff772722c in dlopen () from /lib/libdl.so.2

      #11 0x0000fffff7c7c6d0 in hb_vin_cam_utility () from /system/lib/libcam.so

      #12 0x0000fffff7c762f0 in hb_vin_init () from /system/lib/libcam.so

      #13 0x0000fffff7e232d0 in hb_cam_init (cfg_index=, cfg_file=) at hb_vio_interface.c:76

      #14 0x0000aaaaaaaa5318 in inIt (pCtx=) at src/main.cpp:165

      #15 0x0000aaaaaaaa26c4 in main (argc=, argv=) at src/main.cpp:186

      (gdb)

      之后就没有了,能给出建议吗?

      2023-04-07
      0
    • 费小财回复anshi:

      dlopen 少了一个so库把

      2023-04-07
      0
    • anshi回复费小财:

      这个应该从哪里开始查找呢?

      2023-04-09
      0
    • 费小财回复anshi:

      另外有个问题,J5上是由现成的x3c的示例的,你有跑过吗

      2023-04-10
      0
    • 费小财回复anshi:

      看着是dlopen失败了,json怎么配的啊?sensor name带std不?

      2023-04-10
      0
    • anshi回复费小财:

      驱动代码中有看到ovx3c的代码,json配置没有看到完整的示例

      2023-04-10
      0
    • 费小财回复anshi:

      /app/bin/vps/vpm/vio_test_case.sh quad_sen_cim_isp0_pym0_1280p

      这个就是,4个ovx3c 接在rx1上,直接能跑得

      2023-04-10
      0
    • anshi回复费小财:
      你好,sensor name带std是什么意思啊。我在hb_j5dev.json是这样配置的"sensor_name":"ovx3c"
      2023-04-11
      0
    • 费小财回复anshi:

      你用上面默认的示例跑跑看

      2023-04-11
      0
    • anshi回复费小财:

      您好,我现在只有一个ovx3c,我在配置文件做出相应修改放到pushcamera目录后,./init ./start仍然是bus error

      2023-04-12
      0
    • 费小财回复anshi:
      改下脚本,/app/bin/vps/vpm/vio_test_case.sh 找到对应case quad_sen_cim_isp0_pym0_1280p, 把15改成1 就是1路了
      2023-04-12
      0
    • anshi回复费小财:

      依旧是bus error

      2023-04-12
      0
    • anshi回复费小财:

      您好,ovx3c的serial_addr1怎么设置呢?驱动中poc_power_reset()函数调用不成功

      2023-04-12
      0