Is there a way to completely disable all messages on the RS232 port (/dev/ttyS0)? I would like that, because I want to communicate with another device over this port and don’t want “garbage” to be received by this device.
From what I’ve gathered, there are three sources of messages on this port:
- getty (launched via upstart)
I’ve managed to disable getty on this port (by adding an override file in /etc/init) and also kernel messages by changing the kernel commandline.
However, I don’t know how to stop the bootloader from using that port on boot. Both fastboot and u-boot do this. Can this be somehow disabled on either of those?