<div dir="ltr">Yes it's a kernel command line arg, it is board specific token introduced to control the serial console.<div>if defined serial console should not be enabled.</div><div><br></div><div>we have this in place for other system initializing system - sytemV , where depending </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 17, 2015 at 4:24 PM, Lennart Poettering <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','lennart@poettering.net');" target="_blank">lennart@poettering.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Fri, 17.04.15 15:54, Praveen kumar R (<a href="javascript:_e(%7B%7D,'cvml','praveenrgowda@gmail.com');" target="_blank">praveenrgowda@gmail.com</a>) wrote:<br>
<br>
> I have a token passed on by command line argument on which I need to decide<br>
> to start the serial<br>
<br>
</span>On which command line? Kernel command line? What kind of "token"?<br>
<span><br>
> console or not. I plan to tweak the getty*ttyS0.service and add the<br>
> script which validates the token and starts the console.<br>
><br>
> Is this the right approach or is there any better way of handling it ??<br>
<br>
</span>To get a login getty on the serial port its sufficient to add<br>
console=ttyS0... to the kernel cmdline. systemd automatically starts a<br>
serial getty automatically on the first terminal the kernel console is<br>
pointing to.<br>
<span><font color="#888888"><br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Red Hat<br>
</font></span></blockquote></div><br></div>