[systemd-devel] controlling serial console using a token

Andrei Borzenkov arvidjaar at gmail.com
Sat Apr 18 23:18:50 PDT 2015


В Sat, 18 Apr 2015 19:54:50 +0530
Praveen kumar R <praveenrgowda at gmail.com> пишет:

> Yes it's a kernel command line arg, it is board specific token introduced
> to control the serial console.
> if defined serial console should not be enabled.
> 

Sorry I do not understand this sentence. "define" what? Please give
exact example of kernel command line and explain what behavior you
expect in this case.

> we have this in place for other system initializing system - sytemV , where
> depending
> 
> On Fri, Apr 17, 2015 at 4:24 PM, Lennart Poettering <lennart at poettering.net
> <javascript:_e(%7B%7D,'cvml','lennart at poettering.net');>> wrote:
> 
> > On Fri, 17.04.15 15:54, Praveen kumar R (praveenrgowda at gmail.com
> > <javascript:_e(%7B%7D,'cvml','praveenrgowda at gmail.com');>) wrote:
> >
> > > I have a token passed on by command line argument on which I need to
> > decide
> > > to start the serial
> >
> > On which command line? Kernel command line? What kind of "token"?
> >
> > > console or not. I plan to tweak the getty*ttyS0.service and add the
> > > script which validates the token and starts the console.
> > >
> > > Is this the right approach or is there any better way of handling it ??
> >
> > To get a login getty on the serial port its sufficient to add
> > console=ttyS0... to the kernel cmdline. systemd automatically starts a
> > serial getty automatically on the first terminal the kernel console is
> > pointing to.
> >
> > Lennart
> >
> > --
> > Lennart Poettering, Red Hat
> >



More information about the systemd-devel mailing list