* login on console=tty with serial input
@ 2007-03-06 10:21 hbruegge
2007-03-16 13:39 ` Daniel.Wyss
0 siblings, 1 reply; 3+ messages in thread
From: hbruegge @ 2007-03-06 10:21 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 2032 bytes --]
Hi everyone.
I just wondering, if anyone outthere can help me. I am currently kind of
lost.
I have an embedded powerpc based system running with kernel 2.6.20. The
system has only two serial lines and no PS/2 or USB support. Therefore I
control the system via a serial console ( passing the commandline arg:
console=ttyS0,57600) and a terminal.
A getty program is running on /dev/console, which gives me a login:
prompt, so I can login via the serial line ttyS0.
All is working pretty perfect.
So far so good. And now here comes my problem.
To add a better MMI in the future I want to use the graphic card as an
output.
I added a graphic card to the system. The kernel configuration includes
framebuffer support for that particular graphic card.
After booting the kernel, I can see a /dev/fb0 device and testing with
'echo "hello" > /dev/fb0', the message "hello" is displayed on the screen.
Also if I add the commandline arg: console=tty console=ttyS0,57600 , I get
all kernel messages displayed, not only on the serial line, but also on
the screen via the framebuffer.
So basically, what I want is graphical output (dev/fb0) with serial input
(/dev/ttyS0). The user sees a login prompt on the screen and can enter
characters by a terminal program connected to the serial line.
Right to that point I always used the serial console for user interaction.
By adding only the commandline argument console=tty, I get a nice login
prompt on the graphic screen. BUT I have no input via the serial line???
So, how do I connect the serial line /dev/ttySx to the standard input
path of the virtual console.
Any hint is welcomed. Any manuals to read are also welcomed.
Thanx
Harald Brüggemann
--------------------------------------------------------
Harald Brüggemann
Rockwell Collins Deutschland GmbH
GrenzhöferWeg 36
D-69046 Heidelberg
Germany
Phone: +49 - 6221 - 512 484
Fax: +49 - 6221 - 512 301
e-mail: hbruegge@rockwellcollins•com
[-- Attachment #2: Type: text/html, Size: 2935 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: login on console=tty with serial input
2007-03-06 10:21 login on console=tty with serial input hbruegge
@ 2007-03-16 13:39 ` Daniel.Wyss
2007-03-16 22:42 ` Alessandro Rubini
0 siblings, 1 reply; 3+ messages in thread
From: Daniel.Wyss @ 2007-03-16 13:39 UTC (permalink / raw)
To: hbruegge, linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 4024 bytes --]
Hi Harald
Did you find a solution for your problem?
I have almost a similar problem.
On a MPC885 board I have one serial line, an Ethernet port and a QVGA display with a /dev/fb.
As GUI library, I started to evaluate Nano-X, FLTK and wxWitgets. But there is the problem that I don't have keyboard input whether form the serial line nor form a remote shell (Ethernet).
As far I understand the matter the problem is that the console that is running on the frame buffer needs as input a keyboard device and not a serial line. Unfortunately I found till now no solution to redirect the serial line to a keyboard device.
Regards
Daniel Wyss
----------------------------------------------
SECURITON AG Alarm- und Sicherheitssysteme
Daniel Wyss
Entwicklung Sicherheitssysteme
Alpenstrasse 20
CH - 3052 Zollikofen
Phone: +41 31 910 11 22
Fax: +41 31 910 13 03
Direct: +41 31 910 14 37
E-Mail: daniel.wyss@securiton•ch
http://www.securiton.ch <http://www.securiton.ch/>
----------------------------------------------
________________________________
From: linuxppc-embedded-bounces+daniel.wyss=securiton.ch@ozlabs•org [mailto:linuxppc-embedded-bounces+daniel.wyss=securiton.ch@ozlabs•org] On Behalf Of hbruegge@rockwellcollins•com
Sent: Tuesday, March 06, 2007 11:22 AM
To: linuxppc-embedded@ozlabs•org
Subject: login on console=tty with serial input
Hi everyone.
I just wondering, if anyone outthere can help me. I am currently kind of lost.
I have an embedded powerpc based system running with kernel 2.6.20. The system has only two serial lines and no PS/2 or USB support. Therefore I control the system via a serial console ( passing the commandline arg: console=ttyS0,57600) and a terminal.
A getty program is running on /dev/console, which gives me a login: prompt, so I can login via the serial line ttyS0.
All is working pretty perfect.
So far so good. And now here comes my problem.
To add a better MMI in the future I want to use the graphic card as an output.
I added a graphic card to the system. The kernel configuration includes framebuffer support for that particular graphic card.
After booting the kernel, I can see a /dev/fb0 device and testing with 'echo "hello" > /dev/fb0', the message "hello" is displayed on the screen.
Also if I add the commandline arg: console=tty console=ttyS0,57600 , I get all kernel messages displayed, not only on the serial line, but also on the screen via the framebuffer.
So basically, what I want is graphical output (dev/fb0) with serial input (/dev/ttyS0). The user sees a login prompt on the screen and can enter characters by a terminal program connected to the serial line.
Right to that point I always used the serial console for user interaction. By adding only the commandline argument console=tty, I get a nice login prompt on the graphic screen. BUT I have no input via the serial line???
So, how do I connect the serial line /dev/ttySx to the standard input path of the virtual console.
Any hint is welcomed. Any manuals to read are also welcomed.
Thanx
Harald Brüggemann
--------------------------------------------------------
Harald Brüggemann
Rockwell Collins Deutschland GmbH
GrenzhöferWeg 36
D-69046 Heidelberg
Germany
Phone: +49 - 6221 - 512 484
Fax: +49 - 6221 - 512 301
e-mail: hbruegge@rockwellcollins•com
<html>
<body>
<font face = "arial" size = "1">
---------------------------------------------------------------------------------------------------------
This e-mail is confidential and may contain privileged information.
It is intended only for the addressees. If you have received this
e-mail in error, kindly notify us immediately by telephone or e-mail
and delete the message from your system.
---------------------------------------------------------------------------------------------------------
</font>
</body>
</html>
[-- Attachment #2: Type: text/html, Size: 7990 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: login on console=tty with serial input
2007-03-16 13:39 ` Daniel.Wyss
@ 2007-03-16 22:42 ` Alessandro Rubini
0 siblings, 0 replies; 3+ messages in thread
From: Alessandro Rubini @ 2007-03-16 22:42 UTC (permalink / raw)
To: linuxppc-embedded
> As GUI library, I started to evaluate Nano-X, FLTK and wxWitgets. But there
> is the problem that I don't have keyboard input whether form the serial
> line nor form a remote shell (Ethernet).
What you type in the serial console reaches user space in /dev/ttyS0
or whatever the name on your platform. What you type in the network
connection reaches user space in the socket, where the server (sshd,
telnetd or whatever) pushes it back to a pty master, so your shell
reads it from the pty (slave) is has on its stdin.
Programs using /dev/fb usually open /dev/tty1 (or /dev/tty2 etc) to
read keyboard input from. The device driver that manages it is nether
the serial driver nor the pty driver, but the "virtual console" one.
What is reported there as keypresses are the input events reported by
a keyboard.
> As far I understand the matter the problem is that the console that is
> running on the frame buffer needs as input a keyboard device and not a
> serial line. Unfortunately I found till now no solution to redirect the
> serial line to a keyboard device.
Read /dev/ttyS0 and post keypress events associated to the ascii data
you read. Your graphic environment will see them. You can write
your own module to post keyboard data or use uinput (CONFIG_INPUT_UINPUT).
hope this helps
/alessandro
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-16 22:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 10:21 login on console=tty with serial input hbruegge
2007-03-16 13:39 ` Daniel.Wyss
2007-03-16 22:42 ` Alessandro Rubini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox