Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 03-10-2014, 11:29 AM   #1
LQ Newbie
Registered: Nov 2013
Posts: 9

Rep: Reputation: Disabled
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.
Old 03-10-2014, 11:41 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,222

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
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.
Old 03-10-2014, 09:20 PM   #3
LQ Guru
Registered: Mar 2008
Posts: 13,496

Rep: Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719
Similar topic.
Old 03-11-2014, 08:16 AM   #4
LQ Newbie
Registered: Nov 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Serial Programming - Multiple interruptions for serial devices on real-time Linux. santiagocasti Programming 5 05-06-2010 04:34 AM
serial console +plx tech console server card pankajd Linux - Hardware 1 10-14-2009 01:45 PM
serial devices nderitualex Linux - Hardware 1 03-10-2005 09:00 PM
Serial devices on Slack Darktyco Slackware 1 03-21-2004 02:53 PM
Serial Devices gdeckler Linux - Newbie 1 08-18-2003 03:38 PM

All times are GMT -5. The time now is 02:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration