ukhack

ukhack

0个粉丝

1

问答

0

专栏

0

资料

ukhack  发布于  2023-01-09 14:34:45
采纳率 100%
1个问答
1711

Hi3516DV300组合gc2053 易百纳给的例程无法出图

易百纳提供了
03.EB-Hi3516DV300-DC-182 型开发板软件资料\04.Demo Code\03. Seneor\GC2053旧\ 例程,
直接运行sample_vio_mipi0可以实现从gc2053上输出到hdmi显示器。
但是对应的源码编译后,在板子上运行就会报错:

  1. [SAMPLE_VIO_ViOnlineVpssOnlineRoute]-80: ViDev:1, ViPipe:0, ViChnmipi_set_mipi_dev_attr(531): :0, s32WorkSnsId:0[SAMPLE_COMM_VI_SetMipiAttr]-2500: ===========invalid combo dev num after set hs mode!
  2. == MipiDev 1, SetMipiAttr enWDRMmipi_set_combo_dev_attr(664): ode: 0
  3. mipi set mipi attr failed!
  4. mipi_rx_ioctl(889): mipi set combo_dev attr failed!
  5. [SAMPLE_COMM_VI_SetMipiAttr]-2506: MIPI_SET_DEV_ATTR failed
  6. [SAMPLE_COMM_VI_StartMIPI]-2598: SAMPLE_COMM_VI_SetMipiAttr failed!
  7. [SAMPLE_COMM_VI_StartVi]-4112: SAMPLE_COMM_VI_StartMIPI failed!
  8. [SAMPLE_VIO_ViOnlineVpssOnlineRoute]-137: start vi failed.s32Ret:0xffffffff !

难道这个可以运行的sample_vio_mipi0文件是魔改过sdk或者环境编译出来的么?问题在什么地方

我来回答
回答8个
时间排序
认可量排序

Marc

79个粉丝

0

问答

22

专栏

0

资料

Marc 2023-01-09 14:47:50
认可1
易百纳技术社区该回答已被题主采纳为最佳答案

init vi的时候, 尝试使用device id为1


#define MIPI_2_DEV_ID 1  
#define FRAME_RATE 30
#define USING_CVBR 1

void set_vi_config(SAMPLE_VI_CONFIG_S *pstViConfig)
{
    pstViConfig->s32WorkingViNum = 1;
    pstViConfig->as32WorkingViId[0] = 0;
    pstViConfig->astViInfo[0].stSnsInfo.MipiDev = MIPI_2_DEV_ID;
    pstViConfig->astViInfo[0].stSnsInfo.s32BusId = MIPI_2_DEV_ID;
    pstViConfig->astViInfo[0].stDevInfo.ViDev = MIPI_2_DEV_ID;
    pstViConfig->astViInfo[0].stDevInfo.enWDRMode = WDR_MODE_NONE;
    pstViConfig->astViInfo[0].stPipeInfo.enMastPipeMode = VI_OFFLINE_VPSS_OFFLINE; // VI_ONLINE_VPSS_OFFLINE; // VI_OFFLINE_VPSS_OFFLINE;
    pstViConfig->astViInfo[0].stPipeInfo.aPipe[0] = 0;
    pstViConfig->astViInfo[0].stPipeInfo.aPipe[1] = -1;
    pstViConfig->astViInfo[0].stPipeInfo.aPipe[2] = -1;
    pstViConfig->astViInfo[0].stPipeInfo.aPipe[3] = -1;
    pstViConfig->astViInfo[0].stChnInfo.ViChn = 0;
    pstViConfig->astViInfo[0].stChnInfo.enPixFormat = PIXEL_FORMAT_YVU_SEMIPLANAR_420;
    pstViConfig->astViInfo[0].stChnInfo.enDynamicRange = DYNAMIC_RANGE_SDR8;
    pstViConfig->astViInfo[0].stChnInfo.enVideoFormat = VIDEO_FORMAT_LINEAR;
    pstViConfig->astViInfo[0].stChnInfo.enCompressMode = COMPRESS_MODE_NONE;
}
ukhack
ukhack   回复   Marc  2023-01-09 16:31:37
0

你好,已经改的跟你一样了,还是报错。脚本是抄的这个,在易百纳给的文档里面提供的。
https://note.youdao.com/ynoteshare/index.html?id=e3e334fcdf6a2a832a14cea46bfc2df8&type=note&_time=1673244878320

邓晓

21个粉丝

1

问答

0

专栏

19

资料

邓晓 2023-01-09 15:09:14
认可0

cat /dev/logmpp看下报什么错

邓晓
邓晓   回复   ukhack  2023-01-09 16:36:44
0

log对不上你报错的地方,重启重新跑,把log贴上

ukhack
ukhack   回复   邓晓  2023-01-09 16:55:15
0

不好意思,以下实我重新获取的干净log

~ # echo "all=7" > /proc/umap/logmpp
~ # /app/sample_vio 0
[SAMPLE_COMM_VI_SetMipiAttr]-2501: ============= MipiDev 1, SetMimipi_set_mipi_dev_attr(531): piAttr enWDRMode: 0
invalid combo dev num after set hs mode!
mipi_set_combo_dev_attr(664): mipi set mipi attr failed!
mipi_rx_ioctl(889): mipi set combo_dev attr failed!
[SAMPLE_COMM_VI_SetMipiAttr]-2507: MIPI_SET_DEV_ATTR failed
[SAMPLE_COMM_VI_StartMIPI]-2599: SAMPLE_COMM_VI_SetMipiAttr failed!
[SAMPLE_COMM_VI_StartVi]-4113: SAMPLE_COMM_VI_StartMIPI failed!
[SAMPLE_VIO_ViOnlineVpssOnlineRoute]-173: start vi failed.s32Ret:0xffffffff !
[main]-147: sample_vio exit abnormally!
~ # cat /dev/logmpp

<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 1 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 2 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 3 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 4 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 5 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 6 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 7 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 8 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 9 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 10 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 12 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 13 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 14 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 15 not create!
省略一堆跟上面一样的log
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 8 not create!
<6>[   sys] [Func]:sys_user_exit [Line]:244 [Info]:sys exit again!
<6>[    vb] [Func]:vb_do_vb_exit [Line]:2126 [Info]:vb already exited!
<6>[    vb] [Func]:create_pool [Line]:201 [Info]:mmzname:!
<7>[    vb] [Func]:create_pool [Line]:403 [Info]:created pool 0!
<7>[    vb] [Func]:vb_do_vb_init [Line]:2087 [Info]:vb init ok!
<7>[   sys] [Func]:sys_user_init [Line]:234 [Info]:sys init ok!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 9 not create!
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 10 not create!
省略一堆跟上面一样的log
<6>[  vdec] [Func]:vdec_release_vb [Line]:757 [Info]:VDEC chn 10 not create!
<7>[    vo] [Func]:vou_dev_ioctl [Line]:1933 [Info]:cmd: 0x40044f00, dev: 0, layer: 0, chn: 0
<7>[    vo] [Func]:vou_dev_ioctl [Line]:1933 [Info]:cmd: 0x4f37, dev: 0, layer: 0, chn: 0
<4>[    vo] [Func]:vou_disable_chn_batch [Line]:4507 [Info]:chn(0, 0) has been disabled!
<7>[    vo] [Func]:vou_dev_ioctl [Line]:1933 [Info]:cmd: 0x40044f00, dev: 0, layer: 0, chn: 0
<7>[    vo] [Func]:vou_dev_ioctl [Line]:1933 [Info]:cmd: 0x4f37, dev: 0, layer: 0, chn: 1
<4>[    vo] [Func]:vou_disable_chn_batch [Line]:4507 [Info]:chn(0, 1) has been disabled!
<7>[    vo] [Func]:vou_dev_ioctl [Line]:1933 [Info]:cmd: 0x40044f00, dev: 0, layer: 0, chn: 0
<7>[    vo] [Func]:vou_dev_ioctl [Line]:1933 [Info]:cmd: 0x4f37, dev: 0, layer: 0, chn: 2
<4>[    vo] [Func]:vou_disable_chn_batch [Line]:4507 [Info]:chn(0, 2) has been disabled!
<7>[    vo] [Func]:vou_dev_ioctl [Line]:1933 [Info]:cmd: 0x40044f00, dev: 0, layer: 0, chn: 0
<7>[    vo] [Func]:vou_dev_ioctl [Line]:1933 [Info]:cmd: 0x4f37, dev: 0, layer: 0, chn: 3
<4>[    vo] [Func]:vou_disable_chn_batch [Line]:4507 [Info]:chn(0, 3) has been disabled!
<7>[    vo] [Func]:vou_dev_ioctl [Line]:1933 [Info]:cmd: 0x4f18, dev: 0, layer: 0, chn: 0
<4>[    vo] [Func]:vou_disable_layer [Line]:2025 [Info]:layer0 's video layer has not been enable!
<7>[    vo] [Func]:vou_dev_ioctl [Line]:1933 [Info]:cmd: 0x4f03, dev: 0, layer: 0, chn: 0
<6>[   dis] [Func]:dis_notify [Line]:2290 [Info]:DIS was notified to exit ...
<6>[   vgs] [Func]:vgs_notify [Line]:4506 [Info]:VGS was notified to exit...
<6>[   gdc] [Func]:gdc_notify [Line]:2993 [Info]:GDC was notified to exit ...
<7>[   gdc] [Func]:gdc_query_state [Line]:3030 [Info]:gdc was query state:job num:32, free job num:32
<7>[(null)] MOD[adec] exit OK!
<7>[(null)] MOD[aenc] exit OK!
<7>[(null)] MOD[ao] exit OK!
<7>[(null)] MOD[ai] exit OK!
<7>[(null)] MOD[aio] exit OK!
<7>[(null)] MOD[hdmi] exit OK!
<7>[(null)] MOD[svp_nnie] exit OK!
<7>[(null)] MOD[ive] exit OK!
<7>[(null)] MOD[vdec] exit OK!
<7>[(null)] MOD[vfmw] exit OK!
<7>[(null)] MOD[jpegd] exit OK!
<7>[(null)] MOD[jpege] exit OK!
<7>[(null)] MOD[h265e] exit OK!
<7>[(null)] MOD[h264e] exit OK!
<7>[(null)] MOD[venc] exit OK!
<7>[(null)] MOD[rc] exit OK!
<7>[(null)] MOD[vpu] exit OK!
<7>[(null)] MOD[chnl] exit OK!
<4>[    vo] [Func]:vou_disable_chn_batch [Line]:4507 [Info]:chn(0, 0) has been disabled!
<4>[    vo] [Func]:vou_disable_chn_batch [Line]:4507 [Info]:chn(0, 1) has been disabled!
<4>[    vo] [Func]:vou_disable_chn_batch [Line]:4507 [Info]:chn(0, 2) has been disabled!
<4>[    vo] [Func]:vou_disable_chn_batch [Line]:4507 [Info]:chn(0, 3) has been disabled!
<4>[    vo] [Func]:vou_disable_layer [Line]:2025 [Info]:layer0 's video layer has not been enable!
<7>[    vo] [Func]:vou_exit [Line]:3032 [Info]:VOU exit!<7>[(null)] MOD[vo] exit OK!
<7>[(null)] MOD[vpss] exit OK!
<7>[(null)] MOD[isp] exit OK!
<7>[(null)] MOD[vi] exit OK!
<7>[   dis] [Func]:dis_destroy_all_chn [Line]:2230 [Info]:all DIS chn are destroied!
<7>[   dis] [Func]:dis_drv_comm_de_init [Line]:692 [Info]:to free task node buff:c8a43000
<6>[   dis] [Func]:dis_exit [Line]:2254 [Info]:DIS exit successfully...
<7>[(null)] MOD[dis] exit OK!
<7>[   vgs] [Func]:vgs_drv_deinit_job_buf [Line]:29 [Info]:to free job buf:c8a2a000
<7>[   vgs] [Func]:vgs_drv_deinit_task_buf [Line]:40 [Info]:to free task buf:c8e49000
<7>[   vgs] [Func]:vgs_drv_deinit_node_buf [Line]:50 [Info]:to free node buf:c8a2d000
<7>[   vgs] [Func]:vgs_deinit_queue_buf [Line]:80 [Info]:to free queue buf:c8a0b000
<7>[   vgs] [Func]:vgs_deinit_job_buf [Line]:178 [Info]:to free job node buf:c8a21000
<7>[   vgs] [Func]:vgs_deinit_task_buf [Line]:96 [Info]:to free task node buf:c8de1000
<6>[   vgs] [Func]:vgs_exit [Line]:4486 [Info]:VGS exit successfully...
<7>[(null)] MOD[vgs] exit OK!
<7>[   gdc] [Func]:gdc_drv_de_init_job_buf [Line]:39 [Info]:to free job index buff:c8a01000
<7>[   gdc] [Func]:gdc_drv_de_init_job_buf [Line]:45 [Info]:to free job node buff:c8a03000
<7>[   gdc] [Func]:gdc_drv_de_init_task_buf [Line]:68 [Info]:to free task node buff:c8d50000
<7>[   gdc] [Func]:gdc_drv_de_init_node_buf [Line]:91 [Info]:to free task node buff:c8a05000
<7>[   gdc] [Func]:gdc_de_init_queue_buf [Line]:85 [Info]:to free queue buff:c89e3000
<7>[   gdc] [Func]:gdc_de_init_job_buf [Line]:219 [Info]:to free job index buff:c89e6000
<7>[   gdc] [Func]:gdc_de_init_job_buf [Line]:225 [Info]:to free job node buff:c89e8000
<7>[   gdc] [Func]:gdc_de_init_task_buf [Line]:298 [Info]:to free task node buff:c8c91000
<7>[   gdc] [Func]:gdc_de_init_node_buf [Line]:439 [Info]:to free task node buff:c8cb4000
<7>[   gdc] [Func]:gdc_de_init_node_buf [Line]:439 [Info]:to free task node buff:c8d02000
<6>[   gdc] [Func]:gdc_exit [Line]:2973 [Info]:GDC exit successfully...
<7>[(null)] MOD[gdc] exit OK!
<7>[(null)] MOD[region] exit OK!
<7>[(null)] MOD[tde] exit OK!
<7>[   sys] [Func]:sys_do_exit [Line]:1539 [Info]:sys mod exit ok!
<7>[(null)] MOD[sys] exit OK!
<7>[(null)] MOD[vb] exit OK!
<7>[   sys] [Func]:sys_user_exit [Line]:276 [Info]:sys exit ok!
<7>[    vb] [Func]:vb_do_mod_vb_exit [Line]:1938 [Info]:common module(4) vb exited!
<7>[    vb] [Func]:destroy_pool [Line]:515 [Info]:destroyed pool 0!
<7>[    vb] [Func]:vb_do_vb_exit [Line]:2166 [Info]:vb exited!

ukhack

0个粉丝

1

问答

0

专栏

0

资料

ukhack 2023-01-09 16:24:02
认可0

邓晓

21个粉丝

1

问答

0

专栏

19

资料

邓晓 2023-01-09 18:57:39
认可0

你这log很奇怪,为啥没有vi的错误打印,有一大堆vdec和vo的?看你的业务没有解码

ukhack

0个粉丝

1

问答

0

专栏

0

资料

ukhack 2023-01-10 09:01:47
认可2

虽然问题得到了解决,但是我还是贴一下解决办法给后续遇到问题的人参考。
1.Makefile.param文件是否把SENSOR0_TYPE和SENSOR1_TYPE修改为GALAXYCORE_GC2053_MIPI_2M_30FPS_10BIT了
2.sample/common/sample_comm_vi.c
HI_U32 SAMPLE_COMM_VI_GetMipiLaneDivideMode(SAMPLE_VI_CONFIG_S* pstViConfig)
改成下面那样,其实相比原来的代码就是if多了一个判断

HI_U32 SAMPLE_COMM_VI_GetMipiLaneDivideMode(SAMPLE_VI_CONFIG_S* pstViConfig)
{
    lane_divide_mode_t lane_divide_mode;

    if ((SONY_IMX327_2L_MIPI_2M_30FPS_12BIT == pstViConfig->astViInfo[0].stSnsInfo.enSnsType)
        || (SONY_IMX327_2L_MIPI_2M_30FPS_12BIT_WDR2TO1 == pstViConfig->astViInfo[0].stSnsInfo.enSnsType)
        || (GALAXYCORE_GC2053_MIPI_2M_30FPS_10BIT == pstViConfig->astViInfo[0].stSnsInfo.enSnsType))
    {
        lane_divide_mode = LANE_DIVIDE_MODE_1;
    }
    else
    {
        lane_divide_mode = LANE_DIVIDE_MODE_0;
    }

    return (HI_U32)lane_divide_mode;
}

3.记得make clean后再make
感谢@Marc提供的思路

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区