Hello Philippe, You must enable the virtual terminal support in kernel config then the keyboard is connected to /dev/tty0 (the current console).
-----Messaggio originale----- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di [EMAIL PROTECTED] Inviato: giovedì 14 giugno 2007 18.16 A: uClinux development list Oggetto: Re: R: [uClinux-dev] Matrix keyboard on uclinux 2.6.17 Hello Andrea, Thanks a lot for the patch. But now my kernel crash when the function "kbd_keycode" is call (in drivers/char/keyboard.c). I think the crash is here : ****************************************************************** if (tty && (!tty->driver_data)) { /* No driver data? Strange. Okay we fix it then. */ tty->driver_data = vc; } ****************************************************************** Is there anything i forgot to declare ? Which device, my keyboard is connected ? (/dev/???) Another question : ---------------- I call my driver like this : late_initcall(my_kbd_init_hw); static int __init my_kbd_init_hw(void) { MY_INIT; register_scan_keyboard(my_scan_kbd, my_scan_table, MAX_COLUMN); printk(KERN_INFO "My scan keyboard registered\n"); return(0); } Is it right ? Regards Philippe. Selon "Tarani, Andrea" <[EMAIL PROTECTED]>: > Try attached patch > > -----Messaggio originale----- > Da: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Per conto di [EMAIL PROTECTED] > Inviato: giovedì 14 giugno 2007 14.31 > A: [email protected] > Oggetto: [uClinux-dev] Matrix keyboard on uclinux 2.6.17 > > Hello, > > Sorry in advance for my English. > I need to use a matrix keyboard (4x4) on uclinux 2.6.17. > I already make a driver for this keyboard on Linux 2.4.18 by using the > file "driver/char/scan_keyb.c" and by developing a driver managing my > keyboard. In the file "scan_keyb.c" there is a call to a function > "handle_scancode" which does not exist any more in the uclinux 2.6.17. > How it is the new management of the keyboard to connect it with a > device > (example: /dev/tty1) > > Regards, > Philippe. > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev > > > This message (including any attachments) contains confidential and/or > proprietary information intended only for the addressee. > Any unauthorized disclosure, copying, distribution or reliance on the > contents of this information is strictly prohibited and may constitute > a violation of law. If you are not the intended recipient, please > notify the sender immediately by responding to this e-mail, and delete > the message from your system. If you have any questions about this > e-mail please notify the sender immediately. h _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
