How to delete the registration of the video device node under the dev directory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to delete the registration of the video device node under the dev directory

2,973 次查看
jack-cap
Contributor III

Hi  NXP team:

      I have a problem recently.

      When I plug in the USB camera,I found that the newly inserted USB camera and device node started from video2.

Now,I want to delete the device node of  /dev/video0 and /dev/video1 , Let the newly inserted USB camera register from video0 .  How to achieve it.           

(The development board I use is imx8mq evk, Image: android_p9.0.0_1.0.0-ga_image_8mqevk)

BRs

thanks

标记 (1)
0 项奖励
回复
3 回复数

2,827 次查看
b36401
NXP Employee
NXP Employee

Probably video0 and video1 are listed persistently in udev. I mean the file named like /etc/udev/rules.d/*-android.rules (here I replaced some digits with "*").
Please try to clean this file from /dev/video* items.

0 项奖励
回复

2,827 次查看
jack-cap
Contributor III

Hi  Victor Linnik

 1)  In the dev directory did not have such file.

imx8mq-dev-directory.JPG

If I remove the /dev/video0 and /dev/video1 ,then plug in the USB camera,it still register from /dev/video2

How to change it. ?

2) I found that the dev / video0 and / dev / Video1 device nodes are registered because of the following code

imx8mq-dts-file.JPG

What are these two device nodes used for? Can you help explain or have related documents introduced?

BRS

thanks

0 项奖励
回复

2,827 次查看
b36401
NXP Employee
NXP Employee

I mean udev configration file under /etc/udev/rules.d/.

0 项奖励
回复