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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,766 Views
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

Tags (1)
0 Kudos
3 Replies

1,620 Views
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 Kudos

1,620 Views
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 Kudos

1,620 Views
b36401
NXP Employee
NXP Employee

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

0 Kudos