* Login prompt on a video console instead of serial port?
@ 2011-05-02 19:30 Timur Tabi
2011-05-02 19:55 ` McClintock Matthew-B29882
2011-05-02 20:12 ` Grant Likely
0 siblings, 2 replies; 5+ messages in thread
From: Timur Tabi @ 2011-05-02 19:30 UTC (permalink / raw)
To: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, devicetree-discuss,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA
I'm using a Freescale P1022DS (PowerPC e500 core) system, which has a built-in
video controller. I have a framebuffer driver that works fine, and if I add
"video=fslfb:1280x1024-32@60,monitor=0 console=tty0" to the command-line, then
*most* of the kernel boot log appears on the serial port and the video display.
However, the login prompt is always on the serial port. This happens even if I
delete the "console=ttyS0,115200" from the command-line. I presume this is
because the "linux,stdout-path" property in the device tree always points to a
serial port node.
So my question is: what do I need to do get the login prompt on the video
console? That is, stdout goes to /dev/fb0 but stdin is still from /dev/ttyS0.
I presume I need to direct "linux,stdout-path" to the fslfb node in the device
tree, but there doesn't appear to be support for "linux,stdin-path".
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Login prompt on a video console instead of serial port?
2011-05-02 19:30 Login prompt on a video console instead of serial port? Timur Tabi
@ 2011-05-02 19:55 ` McClintock Matthew-B29882
2011-05-02 20:02 ` Timur Tabi
2011-05-02 20:12 ` Grant Likely
1 sibling, 1 reply; 5+ messages in thread
From: McClintock Matthew-B29882 @ 2011-05-02 19:55 UTC (permalink / raw)
To: Tabi Timur-B04825
Cc: linux-fbdev@vger.kernel.org, devicetree-discuss,
linuxppc-dev@lists.ozlabs.org
Don't you have to spawn a terminal on the framebuffer for the login?
Right now getty spawns the login on the serial port via /etc/inittab.
Something similiar is probably needed for the framebuffer.
-M
On Mon, May 2, 2011 at 2:30 PM, Timur Tabi <timur@freescale.com> wrote:
> I'm using a Freescale P1022DS (PowerPC e500 core) system, which has a built-in
> video controller. I have a framebuffer driver that works fine, and if I add
> "video=fslfb:1280x1024-32@60,monitor=0 console=tty0" to the command-line, then
> *most* of the kernel boot log appears on the serial port and the video display.
>
> However, the login prompt is always on the serial port. This happens even if I
> delete the "console=ttyS0,115200" from the command-line. I presume this is
> because the "linux,stdout-path" property in the device tree always points to a
> serial port node.
>
> So my question is: what do I need to do get the login prompt on the video
> console? That is, stdout goes to /dev/fb0 but stdin is still from /dev/ttyS0.
> I presume I need to direct "linux,stdout-path" to the fslfb node in the device
> tree, but there doesn't appear to be support for "linux,stdin-path".
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Login prompt on a video console instead of serial port?
2011-05-02 19:55 ` McClintock Matthew-B29882
@ 2011-05-02 20:02 ` Timur Tabi
2011-05-03 5:41 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 5+ messages in thread
From: Timur Tabi @ 2011-05-02 20:02 UTC (permalink / raw)
To: McClintock Matthew-B29882
Cc: devicetree-discuss, linuxppc-dev@lists.ozlabs.org,
linux-fbdev@vger.kernel.org
McClintock Matthew-B29882 wrote:
> Don't you have to spawn a terminal on the framebuffer for the login?
I suppose, but I don't know how to do that. And although that would technically
answer the question in the subject of this thread, I still would have *some*
boot output on the serial port. It would be nice if I could get all of stdout
on the video display, and all of stdin from the serial port.
> Right now getty spawns the login on the serial port via /etc/inittab.
> Something similiar is probably needed for the framebuffer.
getty appears to work only with serial devices, since it insists on a baud rate
as one of the parameters.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Login prompt on a video console instead of serial port?
2011-05-02 19:30 Login prompt on a video console instead of serial port? Timur Tabi
2011-05-02 19:55 ` McClintock Matthew-B29882
@ 2011-05-02 20:12 ` Grant Likely
1 sibling, 0 replies; 5+ messages in thread
From: Grant Likely @ 2011-05-02 20:12 UTC (permalink / raw)
To: Timur Tabi; +Cc: linux-fbdev, devicetree-discuss, linuxppc-dev
On Mon, May 2, 2011 at 1:30 PM, Timur Tabi <timur@freescale.com> wrote:
> I'm using a Freescale P1022DS (PowerPC e500 core) system, which has a built-in
> video controller. I have a framebuffer driver that works fine, and if I add
> "video=fslfb:1280x1024-32@60,monitor=0 console=tty0" to the command-line, then
> *most* of the kernel boot log appears on the serial port and the video display.
>
> However, the login prompt is always on the serial port. This happens even if I
> delete the "console=ttyS0,115200" from the command-line. I presume this is
> because the "linux,stdout-path" property in the device tree always points to a
> serial port node.
>
> So my question is: what do I need to do get the login prompt on the video
> console? That is, stdout goes to /dev/fb0 but stdin is still from /dev/ttyS0.
> I presume I need to direct "linux,stdout-path" to the fslfb node in the device
> tree, but there doesn't appear to be support for "linux,stdin-path".
Look in /etc/inittab. That's usually where the login gettys are specified.
g.
>
> --
> Timur Tabi
> Linux kernel developer at Freescale
>
> _______________________________________________
> devicetree-discuss mailing list
> devicetree-discuss@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/devicetree-discuss
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Login prompt on a video console instead of serial port?
2011-05-02 20:02 ` Timur Tabi
@ 2011-05-03 5:41 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2011-05-03 5:41 UTC (permalink / raw)
To: Timur Tabi
Cc: McClintock Matthew-B29882, devicetree-discuss,
linuxppc-dev@lists.ozlabs.org, linux-fbdev@vger.kernel.org
On Mon, 2011-05-02 at 15:02 -0500, Timur Tabi wrote:
> McClintock Matthew-B29882 wrote:
> > Don't you have to spawn a terminal on the framebuffer for the login?
>
> I suppose, but I don't know how to do that. And although that would technically
> answer the question in the subject of this thread, I still would have *some*
> boot output on the serial port. It would be nice if I could get all of stdout
> on the video display, and all of stdin from the serial port.
I don't think we have a way to do that unless you can make a serial
"keyboard" device in the input layer. The VT layer will only get its
input from such a thing, maybe that does exist in the depth of legacy
code in there but it has nothing to do with your device-tree.
> > Right now getty spawns the login on the serial port via /etc/inittab.
> > Something similiar is probably needed for the framebuffer.
>
> getty appears to work only with serial devices, since it insists on a baud rate
> as one of the parameters.
No, or no existing distro would work :-)
Just fake a baudrate for the tty's
Cheers,
Ben.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-05-03 5:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-02 19:30 Login prompt on a video console instead of serial port? Timur Tabi
2011-05-02 19:55 ` McClintock Matthew-B29882
2011-05-02 20:02 ` Timur Tabi
2011-05-03 5:41 ` Benjamin Herrenschmidt
2011-05-02 20:12 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).