Jump to content

disable /dev/video0 and /dev/ttyS* in kernel 5.8.y with device tree


Recommended Posts

Posted

In recent armbian for orangepi-pc (Fossil 5.8.y) I encountered /dev/video0 and /dev/video1

I disabled both video and csi devices in dtb, but /dev/video0 and /dev/video1 did not disappear.

 

Same happened with serial ports also.

In dtb file 4 serial ports are described. Only one port is enabled, but /dev/ ttyS* contains 8 serial devices

 

/proc/device-tree/soc/serial* directory contains exact number of serial ports as it is described in dtb.

 

does anybody have an experience in disabling devices via device tree?

Or the devices are hardcoded in the kernel?

 

 

Posted
2 hours ago, jslav said:

Or the devices are hardcoded in the kernel?

For video, I don't know ... But for serial, Yes !

 

Doing this command :

grep "=8" /boot/config-*-sunxi

will reveal :

CONFIG_SERIAL_8250_NR_UARTS=8
CONFIG_SERIAL_8250_RUNTIME_UARTS=8

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines