紫晓龙吟

紫晓龙吟

11个粉丝

8

问答

0

专栏

0

资料

紫晓龙吟  发布于  2021-12-01 11:29:33
采纳率 0%
8个问答
4560

A201 rv1126 imx415采集4K失败

 
[root@RV1126_RV1109:/rktrack/bin]# ./rkmedia_vi_get_frame_test -w 3840 -h 2160
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rockchip-mipi-dphy-rx is null
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
Rga built version:1.04 +2021-10-15 13:58:56
#####Device: rkispp_scale0
#####Resolution: 3840x2160
#####Frame Count to save: -1
#####Output Path: (null)
#CameraIdx: 0

##RKMEDIA Log level: 2
[RKMEDIA][SYS][Info]:text is all=2
[RKMEDIA][SYS][Info]:module is all, log_level is 2
use VI_CHN_BUF_TYPE_MMAP
[RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:0]:rkispp_scale0, 3840x2160 Start...
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media0
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media1

dmesg显示如下:

[ 8693.275971] rkispp0: scale0:0x0 out of range:
[ 8693.275971]     [width max:3264 ratio max:8 min:1]
[ 8693.276121] rkispp0: scale0:0x0 out of range:
[ 8693.276121]     [width max:2080 ratio max:8 min:1]
[ 8693.276235] rkispp0: scale0:0x0 out of range:
[ 8693.276235]     [width max:3264 ratio max:8 min:1]
[ 8693.276345] rkispp0: scale0:0x0 out of range:
[ 8693.276345]     [width max:3264 ratio max:8 min:1]
[ 8693.276440] rkispp0: scale0:0x0 out of range:
[ 8693.276440]     [width max:3264 ratio max:8 min:1]
[ 8693.368015] cma: cma_alloc(cma e6c63087, count 3165, align 0)
[ 8693.368071] cma: cma_alloc(): returned ffa24ec1
[ 8693.385553] cma: cma_alloc(cma e6c63087, count 128, align 0)
[ 8693.385608] cma: cma_alloc(): returned 2cb68d52
[ 8693.401895] cma: cma_alloc(cma e6c63087, count 3165, align 0)
[ 8693.401958] cma: cma_alloc(): returned 54305576
[ 8693.419222] cma: cma_alloc(cma e6c63087, count 128, align 0)
[ 8693.419282] cma: cma_alloc(): returned 6a41ef2e
[ 8693.431703] cma: cma_alloc(cma e6c63087, count 3165, align 0)
[ 8693.431774] cma: cma_alloc(): returned 8a6621ef
[ 8693.448052] cma: cma_alloc(cma e6c63087, count 128, align 0)
[ 8693.448116] cma: cma_alloc(): returned 6d46b278
[ 8693.460373] cma: cma_alloc(cma e6c63087, count 3165, align 0)
[ 8693.460441] cma: cma_alloc(): returned e8110975
[ 8693.477473] cma: cma_alloc(cma e6c63087, count 128, align 0)
[ 8693.477541] cma: cma_alloc(): returned b7be03f9
[ 8693.489850] cma: cma_alloc(cma e6c63087, count 3165, align 0)
[ 8693.489924] cma: cma_alloc(): returned 2b86691e
[ 8693.505835] cma: cma_alloc(cma e6c63087, count 128, align 0)
[ 8693.505909] cma: cma_alloc(): returned 7fc86ffb
[ 8693.518205] cma: cma_alloc(cma e6c63087, count 2565, align 0)
[ 8693.518327] cma: cma_alloc(): returned 96243782
[ 8693.531305] imx415 1-001a: rev exp req: L_exp: 0x0, 0x102c, M_exp: 0xa6, 0x0 S_exp: 0x14, 0x0
[ 8693.533714] imx415 1-001a: line(1390) rhs1 177, short time 166 rhs1_old 177, rhs1_new 177
[ 8693.533734] imx415 1-001a: fsc=5520,RHS1_MAX=4453,SHR1_MIN=9,rhs1_max=1369
[ 8693.533749] imx415 1-001a: l_exp_time=4140,s_exp_time=166,shr0=1380,shr1=11,rhs1=177,l_a_gain=20,s_a_gain=0
[ 8693.539490] cma: cma_release(page 0e185174)
[ 8693.539847] cma: cma_release(page 23361ddf)
[ 8693.540196] cma: cma_release(page 33927950)
[ 8693.540542] cma: cma_release(page 08bc8ebf)
[ 8693.540573] cma: cma_alloc(cma e6c63087, count 2565, align 0)
[ 8693.540587] cma: cma_alloc(): returned 0e185174
[ 8693.554885] cma: cma_alloc(cma e6c63087, count 2565, align 0)
[ 8693.554912] cma: cma_alloc(): returned 23361ddf
[ 8693.568091] cma: cma_alloc(cma e6c63087, count 2565, align 0)
[ 8693.568120] cma: cma_alloc(): returned 33927950
[ 8693.584080] cma: cma_alloc(cma e6c63087, count 2565, align 0)
[ 8693.584114] cma: cma_alloc(): returned 08bc8ebf
[ 8693.599754] cma: cma_release(page 429dce8c)
[ 8693.600111] cma: cma_release(page fc6c7152)
[ 8693.600457] cma: cma_release(page d0d24d04)
[ 8693.600801] cma: cma_release(page 0d7572d9)
[ 8693.600831] cma: cma_alloc(cma e6c63087, count 2603, align 0)
[ 8693.600861] cma: cma_alloc(): returned 429dce8c
[ 8693.614238] cma: cma_alloc(cma e6c63087, count 2603, align 0)
[ 8693.614280] cma: cma_alloc(): returned fc6c7152
[ 8693.628642] cma: cma_alloc(cma e6c63087, count 2603, align 0)
[ 8693.628690] cma: cma_alloc(): returned d0d24d04
[ 8693.645136] cma: cma_alloc(cma e6c63087, count 2603, align 0)
[ 8693.645194] cma: cma_alloc(): returned 0d7572d9
[ 8693.663473] cma: cma_alloc(cma e6c63087, count 2565, align 0)
[ 8693.663581] cma: cma_alloc(): returned cd224602
[ 8693.681764] rkcif_mipi_lvds: Allocate dummy buffer, size: 0x00a05000
[ 8693.681981] cma: cma_alloc(cma e6c63087, count 2565, align 0)
[ 8693.682061] cma: cma_alloc(): returned da54b03b
[ 8693.691800] vmap allocation for size 12963840 failed: use vmalloc=<size> to increase size
[ 8693.696074] vmap allocation for size 10510336 failed: use vmalloc=<size> to increase size
[ 8693.696172] cma: cma_release(page da54b03b)
[ 8693.696188] rkcif_mipi_lvds: Failed to allocate the memory for dummy buffer
[ 8693.696245] rkcif_mipi_lvds: Failed to create dummy_buf, -12
[ 8698.131813] rkisp-bridge-ispp: bridge_stop timeout ret:0
[ 8698.142038] cma: cma_release(page 96243782)
[ 8698.155512] rkcif_mipi_lvds: stream[0] start stopping
[ 8699.145136] rkispp0: waiting on params stream off event timeout
[ 8699.172130] rockchip-mipi-csi2 ffb10000.mipi-csi2: stream off, src_sd: 9c119dc2, sd_name:rockchip-mipi-dphy-rx
[ 8699.172230] rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:0
[ 8699.172292] imx415 1-001a: s_stream: 0. 3864x2192, hdr: 5, bpp: 10
[ 8699.172660] cma: cma_release(page cd224602)
[ 8699.172714] rkcif_mipi_lvds: stream[0] stopping finished
[ 8699.217962] cma: cma_release(page 7fc86ffb)
[ 8699.218495] cma: cma_release(page 2b86691e)
[ 8699.218549] cma: cma_release(page b7be03f9)
[ 8699.218981] cma: cma_release(page e8110975)
[ 8699.219039] cma: cma_release(page 6d46b278)
[ 8699.219489] cma: cma_release(page 8a6621ef)
[ 8699.219547] cma: cma_release(page 6a41ef2e)
[ 8699.219979] cma: cma_release(page 54305576)
[ 8699.220025] cma: cma_release(page 2cb68d52)
[ 8699.220455] cma: cma_release(page ffa24ec1)

这是采集3840x2160,失败95%,也有成功的时候,1920x1080基本成功,也有采集不到的时候,各位大佬这是什么原因呢,如何解决这个问题

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

紫晓龙吟

11个粉丝

8

问答

0

专栏

0

资料

紫晓龙吟 2021-12-06 10:56:03
认可1

经过测试发现,./rkmedia_vi_get_frame_test使用-a参数自己初始化isp,读取数据都能成功,不会卡住,说明ispserver存在问题;所以后续如果使用rkmedia api时,尽量初始化isp

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

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区