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,
Thank you for looking at my question.
The platform I am using is LXDE (It is a lightweight linux OS) it is included with the DEO-Nano and can be download for the Terrasic site (precompiled).
For a reason that is unclear to me, the "standard setup" as documented on the Net is not followed and therefore the init.d files do not contain references to the tty component loaded during boot.
I have noting against the fact that Linux mounts my serial ports, because i need them. (so i think Hal is ok and does not need modification, but I could be wrong)
But the fact that getty is opening this port for console purposes I do not want since I want to use the port for something else.
I hope I do not need to rebuild the complete OS based on a modified bsp in order to change this behaviour.