Firefly开源社区
标题:
rk3566 9个video 设备是如何产生的
[打印本页]
作者:
yjr1220
时间:
2021-12-15 15:35
标题:
rk3566 9个video 设备是如何产生的
如题,谢谢!
作者:
zyk
时间:
2021-12-16 09:20
本帖最后由 zyk 于 2021-12-16 09:25 编辑
一般是内核注册
lrwxrwxrwx 1 root root 0 2021-12-16 09:17 /sys/class/video4linux/video0 -> ../../devices/platform/rkisp-vir0/video4linux/video0
lrwxrwxrwx 1 root root 0 2021-12-16 09:17 /sys/class/video4linux/video1 -> ../../devices/platform/rkisp-vir0/video4linux/video1
lrwxrwxrwx 1 root root 0 2021-12-16 09:17 /sys/class/video4linux/video2 -> ../../devices/platform/rkisp-vir0/video4linux/video2
lrwxrwxrwx 1 root root 0 2021-12-16 09:17 /sys/class/video4linux/video3 -> ../../devices/platform/rkisp-vir0/video4linux/video3
lrwxrwxrwx 1 root root 0 2021-12-16 09:17 /sys/class/video4linux/video4 -> ../../devices/platform/rkisp-vir0/video4linux/video4
lrwxrwxrwx 1 root root 0 2021-12-16 09:17 /sys/class/video4linux/video5 -> ../../devices/platform/rkisp-vir0/video4linux/video5
lrwxrwxrwx 1 root root 0 2021-12-16 09:17 /sys/class/video4linux/video6 -> ../../devices/platform/rkisp-vir0/video4linux/video6
lrwxrwxrwx 1 root root 0 2021-12-16 09:17 /sys/class/video4linux/video7 -> ../../devices/platform/rkisp-vir0/video4linux/video7
lrwxrwxrwx 1 root root 0 2021-12-16 09:17 /sys/class/video4linux/video8 -> ../../devices/platform/rkisp-vir0/video4linux/video8
复制代码
,上层去创建/dev下的节点,感兴趣可以在v4l2_device_register相关注册函数打印信息去跟踪一下
作者:
Liuth
时间:
2021-12-16 09:26
设备树里面rkisp节点开启之后,v4l2框架驱动就会去注册video设备
作者:
yjr1220
时间:
2021-12-16 10:07
谢谢! 请问 两位大神 , 它这几个video设备的作用是什么呢? 谢谢!!
作者:
zyk
时间:
2021-12-17 15:34
可以了解一下v4l2的框架,感兴趣可以跟一下驱动
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1