LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-10-2014, 11:29 AM   #1
Oromis_32
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

David

PS: Please tell me if you need more information to answer my question.
 
Old 03-10-2014, 11:41 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
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
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Similar topic.
https://community.freescale.com/thread/253299
 
Old 03-11-2014, 08:16 AM   #4
Oromis_32
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:27 AM.

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