20240629在飞凌的OK3588-C开发板的Linux R4系统下使用i2cdetect确认I2C总线

root@ok3588:/# i2cdetect -y -r 0
root@rk3588-buildroot:/# i2cdetect -l
root@rk3588-buildroot:/# i2cdetect -F 0

20240629在飞凌的OK3588-C开发板的Linux R4系统下使用i2cdetect确认I2C总线

2024/6/29 15:37

在CAM1、CAM2挂载OV13850。

在CAM3、CAM4和CAM5挂载OV5645了。

input-event-daemon: Start listening on 6 devices...

done

root@ok3588:/# [15:13:18.643] Detected a monitor change on head 'HDMI-A-1', not bothering to do anything about it.

15:13:18.644\] Detected a monitor change on head 'DSI-1', not bothering to do anything about it. \[15:13:18.644\] Detected a monitor change on head 'DSI-2', not bothering to do anything about it. root@ok3588:/# root@ok3588:/# root@ok3588:/# root@ok3588:/# i2c i2c-stub-from-dump i2cdump i2cset i2cdetect i2cget i2ctransfer root@ok3588:/# i2cdetect -y -r 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- UU UU -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@ok3588:/# root@ok3588:/# i2cdetect -y -r 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- 50: 50 51 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@ok3588:/# root@ok3588:/# i2cdetect -y -r 2 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- UU UU -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@ok3588:/# root@ok3588:/# i2cdetect -y -r 3 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- UU -- -- -- 10: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@ok3588:/# root@ok3588:/# i2cdetect -y -r 4 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- UU -- -- -- 10: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@ok3588:/# root@ok3588:/# i2cdetect -y -r 5 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@ok3588:/# root@ok3588:/# i2cdetect -y -r 6 Error: Could not open file \`/dev/i2c-6' or \`/dev/i2c/6': No such file or directory root@ok3588:/# root@ok3588:/# i2cdetect -y -r 7 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@ok3588:/# root@ok3588:/# ![](https://img-blog.csdnimg.cn/direct/6f96b70cf90c48418b2ab5758aedbb83.png) ![](https://img-blog.csdnimg.cn/direct/c05b5f4d751c47d886445b0b50cc21d0.png) ![](https://img-blog.csdnimg.cn/direct/fb2d3fa4d1d04d7c90da154c83722599.jpeg) root@ok3588:/# root@ok3588:/# v4l2-ctl --list-devices rk_hdmirx (fdee0000.hdmirx-controller): /dev/video58 rkisp-statistics (platform: rkisp): /dev/video47 /dev/video48 /dev/video56 /dev/video57 rkcif-mipi-lvds (platform:rkcif): /dev/media0 /dev/media1 /dev/media2 /dev/media3 /dev/media4 rkcif (platform:rkcif-mipi-lvds): /dev/video0 /dev/video1 /dev/video2 /dev/video3 /dev/video4 /dev/video5 /dev/video6 /dev/video7 rkcif (platform:rkcif-mipi-lvds1): /dev/video8 /dev/video9 /dev/video10 /dev/video11 /dev/video12 /dev/video13 /dev/video14 /dev/video15 rkcif (platform:rkcif-mipi-lvds2): /dev/video16 /dev/video17 /dev/video18 /dev/video19 /dev/video20 /dev/video21 /dev/video22 /dev/video23 rkcif (platform:rkcif-mipi-lvds4): /dev/video24 /dev/video25 /dev/video26 /dev/video27 /dev/video28 /dev/video29 /dev/video30 /dev/video31 rkcif (platform:rkcif-mipi-lvds5): /dev/video32 /dev/video33 /dev/video34 /dev/video35 /dev/video36 /dev/video37 /dev/video38 /dev/video39 rkisp_mainpath (platform:rkisp0-vir0): /dev/video40 /dev/video41 /dev/video42 /dev/video43 /dev/video44 /dev/video45 /dev/video46 /dev/media5 rkisp_mainpath (platform:rkisp0-vir1): /dev/video49 /dev/video50 /dev/video51 /dev/video52 /dev/video53 /dev/video54 /dev/video55 /dev/media6 root@ok3588:/# root@rk3588-buildroot:/# root@rk3588-buildroot:/# root@rk3588-buildroot:/# i2cdetect -l i2c-0 i2c rk3x-i2c I2C adapter i2c-1 i2c rk3x-i2c I2C adapter i2c-2 i2c rk3x-i2c I2C adapter i2c-3 i2c rk3x-i2c I2C adapter i2c-4 i2c rk3x-i2c I2C adapter i2c-5 i2c rk3x-i2c I2C adapter i2c-7 i2c rk3x-i2c I2C adapter root@rk3588-buildroot:/# root@rk3588-buildroot:/# root@rk3588-buildroot:/# i2cdetect -F 0 Functionalities implemented by /dev/i2c-0: I2C yes SMBus Quick Command yes SMBus Send Byte yes SMBus Receive Byte yes SMBus Write Byte yes SMBus Read Byte yes SMBus Write Word yes SMBus Read Word yes SMBus Process Call yes SMBus Block Write yes SMBus Block Read no SMBus Block Process Call no SMBus PEC yes I2C Block Write yes I2C Block Read yes root@rk3588-buildroot:/# root@rk3588-buildroot:/# i2cdetect -F 1 Functionalities implemented by /dev/i2c-1: I2C yes SMBus Quick Command yes SMBus Send Byte yes SMBus Receive Byte yes SMBus Write Byte yes SMBus Read Byte yes SMBus Write Word yes SMBus Read Word yes SMBus Process Call yes SMBus Block Write yes SMBus Block Read no SMBus Block Process Call no SMBus PEC yes I2C Block Write yes I2C Block Read yes root@rk3588-buildroot:/# root@rk3588-buildroot:/# i2cdetect -F 2 Functionalities implemented by /dev/i2c-2: I2C yes SMBus Quick Command yes SMBus Send Byte yes SMBus Receive Byte yes SMBus Write Byte yes SMBus Read Byte yes SMBus Write Word yes SMBus Read Word yes SMBus Process Call yes SMBus Block Write yes SMBus Block Read no SMBus Block Process Call no SMBus PEC yes I2C Block Write yes I2C Block Read yes root@rk3588-buildroot:/# root@rk3588-buildroot:/# i2cdetect -F 3 Functionalities implemented by /dev/i2c-3: I2C yes SMBus Quick Command yes SMBus Send Byte yes SMBus Receive Byte yes SMBus Write Byte yes SMBus Read Byte yes SMBus Write Word yes SMBus Read Word yes SMBus Process Call yes SMBus Block Write yes SMBus Block Read no SMBus Block Process Call no SMBus PEC yes I2C Block Write yes I2C Block Read yes root@rk3588-buildroot:/# root@rk3588-buildroot:/# i2cdetect -F 4 Functionalities implemented by /dev/i2c-4: I2C yes SMBus Quick Command yes SMBus Send Byte yes SMBus Receive Byte yes SMBus Write Byte yes SMBus Read Byte yes SMBus Write Word yes SMBus Read Word yes SMBus Process Call yes SMBus Block Write yes SMBus Block Read no SMBus Block Process Call no SMBus PEC yes I2C Block Write yes I2C Block Read yes root@rk3588-buildroot:/# root@rk3588-buildroot:/# i2cdetect -F 5 Functionalities implemented by /dev/i2c-5: I2C yes SMBus Quick Command yes SMBus Send Byte yes SMBus Receive Byte yes SMBus Write Byte yes SMBus Read Byte yes SMBus Write Word yes SMBus Read Word yes SMBus Process Call yes SMBus Block Write yes SMBus Block Read no SMBus Block Process Call no SMBus PEC yes I2C Block Write yes I2C Block Read yes root@rk3588-buildroot:/# root@rk3588-buildroot:/# i2cdetect -F 6 Error: Could not open file \`/dev/i2c-6' or \`/dev/i2c/6': No such file or directory root@rk3588-buildroot:/# root@rk3588-buildroot:/# i2cdetect -F 7 Functionalities implemented by /dev/i2c-7: I2C yes SMBus Quick Command yes SMBus Send Byte yes SMBus Receive Byte yes SMBus Write Byte yes SMBus Read Byte yes SMBus Write Word yes SMBus Read Word yes SMBus Process Call yes SMBus Block Write yes SMBus Block Read no SMBus Block Process Call no SMBus PEC yes I2C Block Write yes I2C Block Read yes root@rk3588-buildroot:/# root@rk3588-buildroot:/# i2cdetect -F 8 Error: Could not open file \`/dev/i2c-8' or \`/dev/i2c/8': No such file or directory root@rk3588-buildroot:/# root@rk3588-buildroot:/# 可以5个摄像头一起打开 cam1 gst-launch-1.0 v4l2src device=/dev/video40 ! video/x-raw, format=NV12, width=640, height=480, framerate=30/1 ! waylandsink cam2 gst-launch-1.0 v4l2src device=/dev/video49 ! video/x-raw, format=NV12, width=640, height=480, framerate=30/1 ! waylandsink gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, format=NV12, width=640, height=480, framerate=30/1 ! waylandsink gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, format=NV12, width=640, height=480, framerate=30/1 ! waylandsink gst-launch-1.0 v4l2src device=/dev/video8 ! video/x-raw, format=NV12, width=640, height=480, framerate=30/1 ! waylandsink cam3 gst-launch-1.0 v4l2src device=/dev/video16 ! video/x-raw, format=NV12, width=640, height=480, framerate=30/1 ! waylandsink cam4 gst-launch-1.0 v4l2src device=/dev/video24 ! video/x-raw, format=NV12, width=640, height=480, framerate=30/1 ! waylandsink cam5 gst-launch-1.0 v4l2src device=/dev/video32 ! video/x-raw, format=NV12, width=640, height=480, framerate=30/1 ! waylandsink ![](https://img-blog.csdnimg.cn/direct/aecc0bb14a2b407c8fd6bc9be3e3e9d8.png) ![](https://img-blog.csdnimg.cn/direct/c097b9ff117a4afb856ce5c7dc39701b.png) ![](https://img-blog.csdnimg.cn/direct/49b0b44fd0784632af574aa5dccacb02.png) ![](https://img-blog.csdnimg.cn/direct/e1a8f125343141309c0f89862fd99579.png) 参考资料: 0312-3119192 2软件 4瑞芯微平台 2 RK3588 5.最后编译buildroot就行 i2c7下没设备 所以驱动没匹配 您驱动里的的i2c操作关闭仅仅是不写入东西了 现在您的摄像头没有在正常工作 随便接入一个i2c设备 设备树不描述 i2cdetect 都可以读到地址 说明设备在正常工作 变成UU状态说明驱动注册 您驱动里的修改和这个设备本身是否正常运行没有关系 肯定应该读到一个i2c设备的 https://www.elecfans.com/d/2195063.html i2c detect扫描i2c总线上的设备 https://blog.csdn.net/weixin_42581177/article/details/131158404 Linux下的I2C工具:i2c_tools

相关推荐
dessler18 分钟前
代理服务器-LVS的3种模式与调度算法
运维·服务器·网络·算法·nginx·tomcat·lvs
Lw老王要学习34 分钟前
Linux容器篇、第二章_01Ubuntu22 环境下 KubeSphere 容器平台高可用搭建全流程
linux·运维·服务器·k8s·kubesphere·容器化
張萠飛1 小时前
Linux下如何使用shell脚本导出elasticsearch中某一个index的数据为本地csv文件
linux·运维·elasticsearch
whoarethenext2 小时前
使用 C/C++ 和 OpenCV 实现滑动条控制图像旋转
c语言·c++·opencv
电商API_180079052472 小时前
构建高效可靠的电商 API:设计原则与实践指南
运维·服务器·爬虫·数据挖掘·网络爬虫
晓枫-迷麟3 小时前
【nano与Vim】常用命令
linux·编辑器·vim
tianyuanwo3 小时前
Ansible自动化运维全解析:从设计哲学到实战演进
运维·自动化·ansible
LucienShui3 小时前
Webhook 配置备忘
linux·运维·webhook
LanLance3 小时前
ES101系列09 | 运维、监控与性能优化
java·运维·后端·elasticsearch·云原生·性能优化·golang
Clownseven3 小时前
“轻量应用服务器” vs. “云服务器CVM”:小白入门腾讯云,哪款“云机”更适合你?(场景、配置、价格对比解析)
运维·服务器·腾讯云