Re: map keyboard to stdin

From: Jan Engelhardt
Date: Tue Jul 22 2008 - 18:52:51 EST


On Tuesday 2008-07-22 22:55, Kevin Holland wrote:

>Hi all,
>I have an embedded Linux board that uses 2.6.21, the console is output
>the serial port. How can I set it up so a USB keyboard will be accepted
>as input as well as anything received from the serial port and it will
>be echoed to the output of the serial port as well. Basically I want to
>issue commands either through a terminal program to the embedded board
>or a USB keyboard that is connected to the board, but I still want to
>see what was typed on the keyboard out the serial terminal. I have
>enabled USB HID support in the Kernel as well.

Try booting with console=tty0 console=ttyS0
I am not sure whether this will accept input from both (that's for you
to test), though it definitely outputs to both.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/