28 Star 48 Fork 312

OpenHarmony / drivers_peripheral

 / 详情

【Openharmony】【hdf/camera】RK3568单板跑camera HDI用例失败

Done
Bug
Opened this issue  
2021-12-14 15:39

【模块名_概率】简要描述:
RK3568单板跑camera HDI用例失败
【环境信息】:
RK3568单板+camera测试套件
【测试步骤】:
执行测试套件
【预期结果】:
测试套执行成功
【实际结果】:

./hdf_xtstest_camera

[==========] Running 160 tests from 16 test cases.
[----------] Global test environment set-up.
[----------] 1 test from AdapterTest
[ RUN ] AdapterTest.Camera_Adapter_0001
==========[test log]ICameraHost get success.
==========[test log]OpenCamera success.
==========[test log] get OHOS_CONTROL_AE_AVAILABLE_MODES success
==========[test log]Preview stream, 640*480, expected success.
==========[test log]GetStreamOperator success.
==========[test log]received a preview buffer ... 0
create a buffer queue producer:0x15c4d00
GetUintParameter debug.bytrace.tags.enableflags error.

**【出现概率】:3/3

【定位信息】:

Comments (6)

liuhonggang created缺陷
liuhonggang set assignee to bigA2021
bigA2021 changed issue state from 待办的 to 已确认
Expand operation logs

这啥也看不出来,麻烦提供一下hilog日志。

执行到这就卡住了,没有hilog
[ RUN ] AdapterTest.Camera_Adapter_0001
==========[test log]ICameraHost get success.
==========[test log]OpenCamera success.
==========[test log] get OHOS_CONTROL_AE_AVAILABLE_MODES success
==========[test log]Preview stream, 640*480, expected success.
==========[test log]GetStreamOperator success.
==========[test log]received a preview buffer ... 0
create a buffer queue producer:0x2836cf0
GetUintParameter debug.bytrace.tags.enableflags error.
==========[test log]CreateStreams success.
==========[test log]CommitStreams success.
==========[test log]check Capture: Capture success, 2000
captureIds.size() = 1
captureId = 2000
==========[test log]check Capture: CancelCapture success,2000
SaveVideoFile: operationMode = 2 videoFd = -1

liuhonggang added
 
Integration_Test
label

因为现在rk3568走的是v4l2的那一套,此issue出现的问题是因为移植测试用例错误造成的。不能直接把mpi下的用例直接拿到RK3568上测试。
并且RK不支持yuv420的格式,如果需要直接拿来使用,需要将drivers/peripheral/camera/hal/test/mpi/src下的common.cpp文件的第60行的流格式PIXEL_FMT_YCRCB_420_SP替换成v4l2适用的PIXEL_FMT_RGBA_8888,然后再进行编译测试。

修改后还是有问题, 依赖kernel 5.10?

kevin assigned collaborator liuhonggang
liuhonggang set priority to P4
liuhonggang changed description
liuhonggang changed title
bigA2021 changed issue state from 已确认 to 修复中

这个问题可能和下面的问题相关,能否下内核升级到5.10后再测试?5.10升级应该就在这个月
time_t 从32位升级到64位后,4.19的内核不支持64位time_t会导致ioctl命令异常,5.10的内核可以支持64位的time_t,所以ioctl命令会恢复正常

kr3568单板的camera的HDI能力,依赖升级内核5.10,待1月底升级完成,再全面验证,issue暂时关闭

liuhonggang changed issue state from 修复中 to 已完成

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
参与者(3)
1
https://git.oschina.net/openharmony/drivers_peripheral.git
git@git.oschina.net:openharmony/drivers_peripheral.git
openharmony
drivers_peripheral
drivers_peripheral

Search

101014 b92fc32e 1850385 101014 af024cb7 1850385