openmoko works as an usb keyboard now

Raphael Wimmer raphael.wimmer at ifi.lmu.de
Fri Nov 4 16:33:20 CET 2011


This is great!

I have been waiting for such a gadget driver since I got my first Zaurus.
Is there already a mouse gadget?

Raphael


On Fri, 04 Nov 2011 16:07:27 +0100, Timo Juhani Lindfors  
<timo.lindfors at iki.fi> wrote:

> Hi,
>
> 2.6.39 includes g_hid.ko that can be used to make the system appear as a
> usb keyboard to some usb host. It seems this is a platform driver but no
> platform in linux includes it.
>
> http://lindi.iki.fi/lindi/git/linux-hid-gadget.git/
>
> is a fork of g_hid that works as an out-of-tree module and not a
> platform driver. I tested this with the unofficial
> linux-image-2.6.39-gta02-gta02 2.6.39-1gta021 package from
>
> http://lindi.iki.fi/lindi/openmoko/linux-2.6-gta02/
>
> and it works! From /var/log/Xorg.0.log:
>
> ...
> (II) config/udev: Adding input device Linux 2.6.39-gta02-gta02 with  
> s3c2410_udc HID Gadget (/dev/input/event7)
> (**) Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget: Applying  
> InputClass "evdev keyboard catchall"
> (**) Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget: always  
> reports core events
> (**) Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget: Device:  
> "/dev/input/event7"
> (II) Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget: Found keys
> (II) Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget: Configuring  
> as keyboard
> (II) XINPUT: Adding extended input device "Linux 2.6.39-gta02-gta02 with  
> s3c2410_udc HID Gadget" (type: KEYBOARD)
> (**) Option "xkb_rules" "evdev"
> (**) Option "xkb_model" "pc105"
> (**) Option "xkb_layout" "fi"
> ...
>
> -Timo
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>


-- 

Dipl.-Medieninf. Raphael Wimmer
Wiss. Mitarbeiter / Research Assistant
Doktorand / PhD student

Ludwig-Maximilians-Universität München   E-Mail: raphael.wimmer at ifi.lmu.de
LFE Medieninformatik                     Skype:  real_raphman
Amalienstr. 17 / Raum 206                WWW:     
http://www.medien.ifi.lmu.de
80333 München                            Tel:    +49 (89) 2180-4659
Germany                                  Fax:    +49 (89) 2180-99-4659



More information about the community mailing list