LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-08-2010, 05:11 PM   #1
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Exclamation Process startup with serial port as console


Hi all.

I have an Arm CPU board, which boots with a serial port as the default console. It also has a few other serial ports, and I would like to use one of them as the console for an interactive & perpetually running text-mode application. Ideally, this could be started as a system service from /etc/init.d/.... or from something like rc.local. Right now, init spawns a getty on each of the serial ports, so I'm guessing I have to cancel that for the port I would use. The application I want to run just reads and writes its standard input & output, and doesn't, itself, know how to attach to any particular type of console. I just don't know how to start up an application in a serial console, without logging into that console.

An alternative, actually a preference, would be a recipe for cross-building Gnu screen to run on the arm CPU. I could then start it up at boot time, and launch the application inside of that.

Anyone know how to accomplish either of these things?

Thanks.

--- rod.
 
Old 11-11-2010, 03:51 PM   #2
lqu
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Rep: Reputation: 0
what about input/output redirection?

or, you can change your source code to read/write a device file (/dev/tty2), instead of the default input/output device.
 
Old 11-18-2010, 05:43 PM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Original Poster
Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Thanks for the reply. Reworking the code is an option of last resort; probably not practical at all. I have actually managed to build Gnu screen for my architecture, so I think the problem has been solved.
--- rod.
 
  


Reply

Tags
gnu screen, serial console


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
Help: tty console to serial port Rostfrei Linux - General 1 11-03-2010 04:05 AM
[SOLVED] getty process is not shown using ps if connected using serial console ? Vilius Linux - Software 1 05-21-2010 04:34 AM
process name when connect via serial port smartgupta Programming 8 11-20-2008 08:37 AM
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
Console will default to serial port 1, and now? bako Linux - General 5 02-18-2002 06:03 PM


All times are GMT -5. The time now is 10:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration