[SOLVED] Process startup with serial port as console
Linux - Embedded & Single-board computerThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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 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.