map keyboard to stdin
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.
I was told from another message list that somebody might have done this here about a year ago, but I couldn't find anything in the archives.
Thanks for your help and please CC [email protected] as I'm not a subscriber to the list yet.
Kevin
Quoted 9 lines · Kevin Holland
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.
Quoted 12 lines · Jan Engelhardt
Quoted 9 lines · Kevin Holland
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.
Quoted 3 lines
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.
This method doesn't seem to work on my setup since I'm only using the serial port as the console, and have no frame buffer. I can cat /dev/input/event0 and get what appears to be scan codes when I press keys on my keyboard. How can I translate this into specific commands for my serial console?
Thanks
Kevin