Toybrick

使用自己编译的mpp时,有vcodec_service的报错

lghcall

注册会员

积分
52
发表于 2021-7-23 15:05:27    查看: 979|回复: 8 | [复制链接]    打印 | 显示全部楼层

回复

使用道具 举报

lghcall

注册会员

积分
52
 楼主| 发表于 2021-7-23 15:06:40 | 显示全部楼层
mpp[26736]: vcodec_service: vcodec_service_cmd_send ioctl VPU_IOC_SET_REG failed ret -1 errno 14 Bad address
mpp[26736]: vcodec_service: vcodec_service_cmd_poll ioctl VPU_IOC_GET_REG failed ret -1 errno 110 Connection timed out
mpp[26736]: hal_h264d_vdpu_reg: vdpu2_h264d_wait poll cmd failed 110
mpp[26736]: mpp_log: decoder_get_frame get err info:1 discard:0.
回复

使用道具 举报

lghcall

注册会员

积分
52
 楼主| 发表于 2021-7-23 15:07:02 | 显示全部楼层
lghcall 发表于 2021-7-23 15:06
mpp[26736]: vcodec_service: vcodec_service_cmd_send ioctl VPU_IOC_SET_REG failed ret -1 errno 14 Bad ...

这是报错的内容
回复

使用道具 举报

jefferyzhang

论坛元老

积分
8634
发表于 2021-7-23 15:56:01 | 显示全部楼层
这个是什么板子,这看过去像是vpu驱动有问题
回复

使用道具 举报

lghcall

注册会员

积分
52
 楼主| 发表于 2021-7-23 15:59:07 | 显示全部楼层
jefferyzhang 发表于 2021-7-23 15:56
这个是什么板子,这看过去像是vpu驱动有问题

这个我直接运行板子上的mpi_dec_test是没问题的,自己编译的源码才会出现这个问题
回复

使用道具 举报

lghcall

注册会员

积分
52
 楼主| 发表于 2021-7-23 16:01:15 | 显示全部楼层
jefferyzhang 发表于 2021-7-23 15:56
这个是什么板子,这看过去像是vpu驱动有问题

root@firefly:~/mpp-develop/build/test# mpi_dec_test -t 7 -i test.h264 -o output.yuv -n 10
mpi_dec_test: cmd parse result:
mpi_dec_test: input  file name: test.h264
mpi_dec_test: output file name: output.yuv
mpi_dec_test: config file name:
mpi_dec_test: width      :    0
mpi_dec_test: height     :    0
mpi_dec_test: type       : 7
mpi_dec_test: debug flag : 0
mpi_dec_test: max frames : 10
mpi_dec_test: mpi_dec_test start
mpi_dec_test: input file size 8330818
mpi_dec_test: mpi_dec_test decoder test start w 0 h 0 type 7
mpi: mpp version: 1614c5d4 author: Caesar Wang debian: add rules for mpp with 20191031
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
mpi_dec_test: decode_get_frame get info changed found
mpi_dec_test: decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 3760128
mpi_dec_test: decode_get_frame get frame 1
mpi_dec_test: decode_get_frame get frame 2
mpi_dec_test: decode_get_frame get frame 3
mpi_dec_test: decode_get_frame get frame 4
mpi_dec_test: decode_get_frame get frame 5
mpi_dec_test: decode_get_frame get frame 6
mpi_dec_test: decode_get_frame get frame 7
mpi_dec_test: decode_get_frame get frame 8
mpi_dec_test: decode_get_frame get frame 9
mpi_dec_test: decode_get_frame get frame 10
mpi_dec_test: reach max frame number 10
mpi_dec_test: test success max memory 21.52 MB
上面系统自带程序运行没有这个报错

下面是编译源码运行的结果
root@firefly:~/mpp-develop/build/test# ./mpi_dec_test -t 7 -i test.h264 -o output.yuv -n 10
mpp[20329]: mpi_dec_utils: cmd parse result:
mpp[20329]: mpi_dec_utils: input  file name: test.h264
mpp[20329]: mpi_dec_utils: output file name: output.yuv
mpp[20329]: mpi_dec_utils: config file name:
mpp[20329]: mpi_dec_utils: width      :    0
mpp[20329]: mpi_dec_utils: height     :    0
mpp[20329]: mpi_dec_utils: type       : 7
mpp[20329]: mpi_dec_utils: debug flag : 0
mpp[20329]: mpi_dec_utils: max frames : 10
mpp[20329]: mpi_dec_test: mpi_dec_test start
mpp[20329]: mpi_dec_test: input file size 8330818
mpp[20329]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[20329]: mpi_dec_test: 0x559c16b9c0 mpi_dec_test decoder test start w 0 h 0 type 7
mpp[20329]: mpp_rt: NOT found ion allocator
mpp[20329]: mpp_rt: found drm allocator
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode_get_frame get info changed found
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 3760128
mpp[20329]: vcodec_service: vcodec_service_cmd_send ioctl VPU_IOC_SET_REG failed ret -1 errno 14 Bad address
mpp[20329]: hal_h264d_vdpu_reg: vdpu2_h264d_start send cmd failed 14
mpp[20329]: vcodec_service: vcodec_service_cmd_poll ioctl VPU_IOC_GET_REG failed ret -1 errno 110 Connection timed out
mpp[20329]: hal_h264d_vdpu_reg: vdpu2_h264d_wait poll cmd failed 110
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode get frame 0 err 1 discard 0
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode get frame 1 err 1 discard 0
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode get frame 2 err 1 discard 0
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode get frame 3 err 1 discard 0
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode get frame 4 err 1 discard 0
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode get frame 5 err 1 discard 0
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode get frame 6 err 1 discard 0
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode get frame 7 err 1 discard 0
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode get frame 8 err 1 discard 0
mpp[20329]: mpi_dec_test: 0x559c16b9c0 decode get frame 9 err 1 discard 0
mpp[20329]: mpi_dec_test: 0x559c16b9c0 reach max frame number 10
mpp[20329]: mpi_dec_test: 0x559c16b9c0 input 360 pkt output 11 frm decode 10 frames
mpp[20329]: mpi_dec_test: test success max memory 14.34 MB
回复

使用道具 举报

lghcall

注册会员

积分
52
 楼主| 发表于 2021-7-23 18:28:54 | 显示全部楼层
jefferyzhang 发表于 2021-7-23 15:56
这个是什么板子,这看过去像是vpu驱动有问题

板子是CORE-PX30-JD4
回复

使用道具 举报

lghcall

注册会员

积分
52
 楼主| 发表于 2021-7-23 20:03:15 | 显示全部楼层
lghcall 发表于 2021-7-23 18:28
板子是CORE-PX30-JD4

芯片应该是3328
回复

使用道具 举报

jefferyzhang

论坛元老

积分
8634
发表于 2021-7-24 16:32:16 | 显示全部楼层

你应该去板商那边咨询
回复

使用道具 举报

lus

新手上路

积分
40
发表于 2021-10-14 07:02:59 | 显示全部楼层
大佬 解决了吗
回复

使用道具 举报

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

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


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