From: James S. <jsi...@ac...> - 2000-09-21 23:53:54
|
On Thu, 21 Sep 2000, Paolo Scaffardi wrote: > Please, could you explain me differences between /dev/tty, /dev/tty0 and > /dev/console? /dev/console. This is the system console. What display the kernel messages get sent to. /dev/tty TTY the current process is attached to. Could be a VT, serial console, or even a modem. /dev/tty0 The current video terminal that is being displayed. > I have an embedded linux box with a custom keyboard and a custom frame > buffer. The keyboard driver sends scancodes to 'handle_scancode' in > keyboard.c and it is not registered as console, or any type of device. To get your keyboard to work with the console you need a function like void __init xxxkbd_init_hw(void) { } Where xxx is what you want to call your keybaord driver. Take a look at pckbd_init_hw. See in tty_io.c tty_init is called which calls kbd_init which in turn calls kbd_init_hw which calls the specific xxxkbd_init_hw function. This sets up your keyboard for the console system. Of course you will need a little more than this to get the keyboard working right but these are the key parts you need. Understand also the standard tree only works with one keyboard at a time. > The only problem is that when using other programs, like GII, that opens > /dev/tty to access the keyboard, they dont work and report: > > /dev/tty - device not configured > > Who has to register /dev/tty? How could my keyboard be reached by /dev/tty? > > I'm going mad... 8-((( See above. MS: (n) 1. A debilitating and surprisingly widespread affliction that renders the sufferer barely able to perform the simplest task. 2. A disease. James Simmons [jsi...@li...] ____/| fbdev/console/gfx developer \ o.O| http://www.linux-fbdev.org =(_)= http://linuxgfx.sourceforge.net U http://linuxconsole.sourceforge.net |