立即注册
查看: 2390|回复: 1

[linux技术原创资料] s5p4418 camera dvp接口,底层驱动注册问题

已绑定手机
发表于 2017-11-24 15:35:22 | 显示全部楼层 |阅读模式 来自 北京市
硬件平台是s5p4418
Linux3.4.39,目前 遇到一个问题系统加载probe函数是成功的,实际上在media_entity_remote()函数返顺一直是NULL,所以不知道怎么解决。
开机部分log如下:
[    6.888000] NXP_decimator_open
[    6.888000] nxp_decimator_close
[    6.888000] nxp_video_open,me->type:0
[    6.888000] _get_remote_subdev:type:9
[    6.888000] media_entity_remote_source:pad->entity->num_links:1
[    6.888000] _get_remote_subdev:remonte is failed:0
[    6.888000] _get_remote_subdev:type:9
[    6.888000] media_entity_remote_source:pad->entity->num_links:1
[    6.888000] _get_remote_subdev:remonte is failed:0
[    6.892000] nxp_vin_clipper_open
[    6.892000] nxp_vin_clipper_close
[    6.892000] nxp_video_open,me->type:2
[    6.892000] _get_remote_subdev:type:9
[    6.892000] media_entity_remote_source:pad->entity->num_links:2
[    6.892000] _get_remote_subdev:remonte is failed:0
[    6.892000] _get_remote_subdev:type:9
[    6.892000] media_entity_remote_source:pad->entity->num_links:2
[    6.892000] _get_remote_subdev:remonte is failed:0
[    6.892000] nxp_video_open,me->type:0
[    6.892000] _get_remote_subdev:type:9
[    6.892000] media_entity_remote_source:pad->entity->num_links:1
[    6.892000] _get_remote_subdev:remonte is failed:0
[    6.896000] _get_remote_subdev:type:9
[    6.896000] media_entity_remote_source:pad->entity->num_links:1
[    6.896000] _get_remote_subdev:remonte is failed:0
[    6.900000] nxp_scaler_open
[    6.900000] nxp_scaler_s_power: 1
[    6.900000] _hw_init
[    6.900000] _hw_init: SCALER REGISTER PHY 0xc0066000, VIR 0xf0066000
[    6.900000] nxp_scaler_close
[    6.900000] nxp_scaler_s_power: 0
[    6.900000] _hw_cleanup

在probe()中v4l2_ctrl_handler_init()注册成功,
v4l2_ctrl_new_std_menu()
v4l2_ctrl_new_std()v4l2_ctrl_new_custom()v4l2_i2c_subdev_init(),media_entity_init()
以上函数都创建成功。

最后在终端上API调用VIODIOC_S_FMT时提示有错,错误信息如下:
44.104000] nxp_video_set_format: can't get remote source subdev
[ 44.112000] _set_plane_size: unknown format(0)
[ 44.116000] nxp_vb2_queue_setup: failed to _set_plane_size()

后来跟踪代码发现是media_entity_remote()函数一直返回NULL,所以不知道 在这个地方是怎么关联上的。


已绑定手机
 楼主| 发表于 2017-11-27 12:59:09 | 显示全部楼层 来自 北京市
目前了解到在s5p4418平台上只能用官方自带的nanocams工具测试摄像头,但是这个工具只能改部分.cpp文件内容,重新生成的动态库好像加不进系统,系统内嵌了这个工具。
2017-11-27 12:57 上传
文件大小:
2.03 MB
下载次数:
117
本地下载

16RD supports Paypal , Payment is calculated at the exchange rate of the day. Unable to download please contact 18902843661 (WhatsApp OR wechat number)

关于一牛网在微软浏览器(Microsoft Edge、IE浏览器)警报通告&解决方案!(无法下载直接更换浏览器即可)

*附件为作者发布,与本站无关,如有侵权,请联系客服删除

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

本版积分规则

合作/建议

TEL: 19168984579

工作时间:
周一到周五 9:00-11:30 13:30-19:30
  • 扫一扫关注公众号
  • 扫一扫打开小程序
Copyright © 2013-2024 一牛网 版权所有 All Rights Reserved. 帮助中心|隐私声明|联系我们|手机版|粤ICP备13053961号|营业执照|EDI证
在本版发帖搜索
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表