-   Linux - Embedded & Single-board computer (
-   -   How to prevent serial devices from acting as a console? (

Oromis_32 03-10-2014 11:29 AM

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


PS: Please tell me if you need more information to answer my question.

smallpond 03-10-2014 11:41 AM

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.

jefro 03-10-2014 09:20 PM

Similar topic.

Oromis_32 03-11-2014 08:16 AM

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:23 PM.