Venkatachala, The USB Keyboard wors fine with a Xwindows environment. I think you need to run some external scripts to associate the same to the console window. That functionality is fairly generic but something I am not aware (how to do the same).
Probably you can consult with Linux admin kind of person and he should be able to help you out. swami ________________________________________ From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Venkatachala Upadhya [EMAIL PROTECTED] Sent: Wednesday, August 06, 2008 2:37 PM To: [email protected] Subject: USB Keyboard attachment to Davinci DVEVM 6467 board Hello all, I am using DM6467 EVM baord with MontaVista Linux 4.0.1, Linux kernel 2.6.10 I want to use USB key board, type-in the command and I want that to be echoed in serial port console. Later the same command should be executed by the DM6467 board. To do this, I have enabled USB HID and the support for Vitual terminal support. I only modify the config with 'make menuconfig', an enable the USB specific stuff. The building steps are below: Step 1: set PATH=... Step 2: make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm646x_defconfig Step 3: make menuconfig Device drivers->character devices->virtual terminal->support for console on virtual terminal ( built-in) Device drivers->input device support->event interface (module) Device drivers->input device support->keyboards(built-in)->AT keyboard support(built-in) Device drivers->USB support->USB full HID support (built-in) Device drivers->USB support->HID input layer support(built-in) Step 4: make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage I am copying the evdev module to the /lib/modules/... directory so that the driver is loaded as I insert the USB keyboard. I can build uImage and can use it to boot the board. The booting way is below: Step 1: setenv serverip <TFTP server IP> Step 2: setenv rootpath <NFS path> Step 3: setenv nfshost <NFS server IP> Step 4: setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=$(nfshost):$(rootpath),nolock mem=120M Step 5: setenv bootfile uImage Step 6: setenv bootcmd 'tftp;bootm' Step 7: set ipaddr <board's IP> Step 8: saveenv Step 9:boot After login with root, I insert USB keyboard. I get the following message : usb 1-1: new low speed USB device using musb_hdrc and address 2 input: USB HID v1.10 Keyboard [ Dell Dell USB Keyboard] on usb-musb_hdrc-1 kobject_register failed for usbhid (-17) usbcore: error-17 registering driver usbhid I am not able to receive any input from USB keyboard on to my serial console. Has anyone successfully made USB keyboard work with this Linux kernel? I have also debugged it. Key board data is coming up to the keyboard driver driver/char/keyboard.c. tty associated with this is keyboard is /dev/vc/0. This I could verify from the function, kbd_keycode, (keyboard.c), that the tty is assigned with vc_cons[0]->vc_tty. So tty associated should be /dev/vc/0. /proc/bus/input/devices --------------------- I: Bus=0003 Vendor=413c Product=2003 Version=0200 N: Name="Dell Dell USB Keyboard" P: Phys=usb-musb_hdrc-1/input0 H: Handlers=kbd event0 B: EV=12000b B: KEY=10000 7 ff87207a c14057ff febeffdf ffefffff ffffffff fffffffe B: ABS=300 0 B: LED=7 /proc/bus/input/handlers ----------------------- N: Number=0 Name=kbd N: Number=1 Name=mousedev Minor=32 N: Number=2 Name=evdev Minor=64 /proc/tty/driver/serial ------------------------ [EMAIL PROTECTED]:/proc# cat tty/driver/serial serinfo:1.0 driver revision: 0: uart:ST16654 port:00000000 irq:40 tx:5677 rx:407 RTS|CTS|DTR|RI 1: uart:ST16650V2 port:00000000 irq:41 tx:0 rx:0 DSR /proc/tty/drivers ------------------------ [EMAIL PROTECTED]:/proc# cat tty/drivers /dev/tty /dev/tty 5 0 system:/dev/tty /dev/console /dev/console 5 1 system:console /dev/ptmx /dev/ptmx 5 2 system /dev/vc/0 /dev/vc/0 4 0 system:vtmaster serial /dev/ttyS 4 64-65 serial pty_slave /dev/pts 136 0-1048575 pty:slave pty_master /dev/ptm 128 0-1048575 pty:master pty_slave /dev/ttyp 3 0-255 pty:slave pty_master /dev/pty 2 0-255 pty:master unknown /dev/tty 4 1-63 console With best regards, Venkatachala Upadhya|Extn: 65395| -- This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where. _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
