DE0 - Nano: How to prevent getty - bash from claiming ttyS0 during boot.
Hello,
I am trying to use ttyS0 for serial communications with a my user program.
It seems that ttyS0 is kept in use by LXDE for console purposes.
The boot log shows: "console [ttyS0] enabled";
Listing active processes with "ps -ax" shows:
1782 ttyS0 /sbin/agetty
Killing the agetty process is brute but of no use since is automatically restarted.
I have been looking for the entry in /etc/init.d to see where the getty process is started during boot.
I even used grep to find all references to getty in /etc/ and its subdirectories but I was unable to find any reference.
In /sbin/ I see that getty references agetty, but where it is started during boot and how to disable it, I do not know.
In /sbin/ I also find no starting point or script references.
So can anybody explain me where & how getty (for ttyS0) is launched during startup and how to disable this?
Thanks in advance,
Johi.