I have build my own kernel and JFFS2 root file system. I can mount USB pen drives and SD cards, so I appear to have a functional system. Now, I would like to interface a USB keyboard (Logitech) so that I can navigate the file system without using minicom and the serial port. I have enabled the kernel module for the LogiTech keyboard, but I don't know what the next steps are. The rootfs is using mdev, so do it add something in mdev.conf or ?? I notice that <hidraw0> shows up in /dev when I plug it in. Thanks, Dave
USB keyboard Touchscreen interface
Hi Dave, using the config_mini2440_xxx file (look for the kernel sources from FriendlyARM) by compiling kernel, usb keyboard and usb mouse work (for me). With the dmesg command you can watch which driver is loaded when the keyboard is plugged in. Plug the keyboard on your host (where the keyboard works) and about 3 secounds later type dmesg in a console. It's shows you which driver was loaded. Now, you will know what you have to enable in your kernel config.
Thank you for the reply. I had been looking on the target, but then realised you said to do dmesg on the host. Here is what I get: *** [ 1026.680059] usb 1-2: new low speed USB device using uhci_hcd and address 3 [ 1026.863537] usb 1-2: configuration #1 chosen from 1 choice [ 1027.340543] usbcore: registered new interface driver hiddev [ 1027.374517] input: Logitech Logitech USB Keyboard as /devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2:1.0/input/input5 [ 1027.395391] generic-usb 0003:046D:C315.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-0000:00:1f.2-2/input0 [ 1027.395463] usbcore: registered new interface driver usbhid [ 1027.395475] usbhid: v2.6:USB HID core driver *** I looks like there could be two drivers registered: - hiddev - usbhid I will look to see if those two modules are on the target and then try to modprobe them. If not I will build the kernel again :( Thanks again for the pointer. Cheers Dave I see hidraw0 in there, which I see in /dev. What does it mean?
Doing: cat /dev/hidraw0 and pressing keys result in garbage in minicom running on the host. Evidently, this is a start. Anyone know what to do next, ie to get it displaying keyboard output on the FriendlyArm dev board? Do you need to mount hidraw0 like a USB pendrive? Changes in mdev.conf? Thanks for any more pointers. Dave
Hello people, Any advance on this topic? I'm trying to do the same as davef, read from usb keyboard and write on a file. I built my kernel with full HID support, and "cat /dev/hidraw0" result in garbage to me too. Have anyone a how-to for do that? Thanks in advance