How to prevent serial devices from acting as a console?
Hi guys,
i am working on an embedded Board running Linux. It has 3 serial devices (/dev/ttymxc0, /dev/ttymxc1, ...). I'm using /dev/ttymxc0 to administrate the board using a terminal emulator (putty) and want to use the other two to talk to some hardware. The problem is: Apparently the operating system has taken over the two spare devices and tries to send a login prompt over them, which is garbage data for the hardware I'm talking to. How can I stop this from happening and just use them to send raw data? I already tried to set raw mode (stty -F /dev/ttymxc1 raw), but no luck. Thanks for any advice David PS: Please tell me if you need more information to answer my question. |
The program that runs on a serial line to prompt for login is named 'getty'. There may be a service which automatically spawns getty for each serial line, so depending on what OS you are running you will have to configure it to blacklist your other lines.
|
Similar topic.
https://community.freescale.com/thread/253299 |
Thanks smallpond for the answer, it was spot on. I just had to modify /etc/inittab, which spawned getty processes on the other two devices.
PS: If anyone wonders, I am using Freescale Linux. |
All times are GMT -5. The time now is 02:53 PM. |