# 运行环境:
HW:Core-1126-JD4开发板
SW: @799959745 在https://dev.t-firefly.com/thread-104445-1-1.html 提供的 uvc codebase
首先, sensor id 已经读到为 gc2053, 但抓 os04a10 和 gc2053 串口对比 log 发现报错在如下位置, 这里没想明白, 难道参考<Rockchip_Developer_Guide_Linux_Camera_CN.pdf>导通驱动后还有哪里要修改pipeline 才能preview 吗?
external/rkmedia/src/stream/camera/v4l2_capture_stream.cc
if (v4l2_ctx->IoCtrl(VIDIOC_S_FMT, &fmt) < 0) {
RKMEDIA_LOGE("%s, s fmt failed(cap type=%d, %c%c%c%c), %m\n", dev,
capture_type, DUMP_FOURCC(fmt.fmt.pix.pixelformat));
return -1;
}
对应关键 log:
[ 86.271582] [width max:1280 ratio[RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video20, fd 106
[RKMEDIA][SYS][Error]:rkispp_scale1, s fmt familed(cap type=1, NV12), Invalaid argument
x:8 min:2]
[ [ KMEDIA][SYS][Info]:#V4L2Ctx: close8 , fd 106
[RKMEDIA][SYS][Info]6:#V4L2Stream: v4l2 ctx reset .to nullptr!
附gc2053 和 os04a10 完整串口 log: