[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.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
--- rod.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.