USB keyboard in hostmode?

Joseph Reeves iknowjoseph at gmail.com
Tue Aug 19 13:59:53 CEST 2008


I wonder if the FreeRunner is simply not supplying enough power for
the keyboard? There's probably a way of finding out, but I don't know
it off the top of my head. A three headed cable might fix your
problems (as described on the wiki), but you're right in saying that
the best test might be to use a simpler keyboard.

Cheers,

Joseph



2008/8/19 Fox Mulder <Quakeman1 at gmx.net>:
> I use an usb female to female adapter with the standard neo usb cable to
> attach the usb devices.
> I think the problem is the keyboard itself. The keyboard has also a
> mouse like scrollwheel integrated. And when i take a look in the
> messages log i see that two devices appear when attaching the keyboard.
> One keyboard and one mouse. After a few tests i can say that the
> keyboard part isn't working at all, but the scrollwheel (mouse part)
> seems to works. I can use the wheel to change between the three sections
> at the bottom of the screen when the focus is on them.
> Maybe i should test it with a more simple usb keyboard without any extra
> functions.
>
> Ciao,
>     Rainer
>
> Joseph Reeves wrote:
>> Hi, that was me on the planet who used the usb keyboard for various
>> things on the Freerunner ( [1] & [2] )
>>
>> I'm afraid I can't really give you much help as mine "just worked".
>> Once power was applied it functioned like a usb keyboard on a desktop
>> pc.
>>
>> How are you managing to connect your devices to the FreeRunner?
>>
>> Not much help. I know, but I can tell you about how it *should* work;
>> basically OM2007.2 seems very keyboard friendly - whenever an
>> application has focus you should just be able to type away at it (like
>> the terminal in my example), you can also use the arrow keys to scroll
>> in the application menu or simply hit "m" to jump straight to the
>> mediaplayer, for example. You can also do ctrl + alt + f1 to change to
>> a second login terminal and return to matchbox with ctrl + alt + f2.
>> Numpty Physics works great with the keyboard shortcuts and I've sent
>> an email or two using my employers web based email system, the
>> keyboard and minimo. Essentially om2007.2 + keyboard = small sized
>> linux desktop machine.
>>
>> There is a matchbox config file you can edit that will result in the
>> mouse cursor being displayed - this should help your efforts there.
>>
>> Cheers,
>>
>> Joseph
>>
>>
>> [1] http://blogs.thehumanjourney.net/finds/entry/20080716
>> [2] http://blogs.thehumanjourney.net/finds/entry/20080730
>>
>>
>> 2008/8/19 Fox Mulder <Quakeman1 at gmx.net>:
>>> Hi,
>>>
>>> i tried to use my logitech usb keyboard with the freerunner with no luck so far.
>>> I'm using 2007.2 with the latest uBoot Image and latest kernel/system updates.
>>>
>>> First i switched to usb hostmode and supplied the 5V to the usb port with the following commands.
>>>
>>> echo "host" > /sys/devices/platform/s3c2410-ohci/usb_mode
>>> echo "1" > /sys/devices/platform/neo1973-pm-host.0/hostmode
>>>
>>> After that i first tried it with an usb stick which works great. It was recognized and i could
>>> access it as /dev/sda1.
>>>
>>> So far so good. Than i tried an usb mouse even when i didn't thought i could use it, just for testing.
>>> I attached it (2x for testing) and it was recognized as hid device as shown in the log. When i move the mouse
>>> and click the left button sometimes it seems to select applications in the windowmanager, but i can't make
>>> any sensfull use with it.
>>>
>>> After that i came to the keyboard. I attached it (again 2x for testing) to the neo it shows the enumeration
>>> in the logs and no errors. But now i can't do anything with the keyboard. In an planet.openmoko.org article
>>> the keyboard is used in the terminal application. But i can't use it in any application. I can't even change
>>> the led's for numlock oder shiftlock what makes me believe that the keyboard isn't fully recognized by linux.
>>> I have no error messages like meantioned in the usb host wiki page, so i think it should work without an usb
>>> hub.
>>>
>>> Has anybody successfully used an usb keyboard attached directly to the neo and in which applications could it
>>> be used?
>>> Is there any step i'm missing after attaching the keyboard?
>>>
>>>
>>> Ciao,
>>>     Rainer
>>>
>>>
>>>
>>> Log start for usb stick:
>>> ------------------------------------------------------------------------------------
>>> Aug 18 21:53:44 IjonTichy user.warn kernel: s3c2410: changing usb to host
>>>
>>> Aug 18 21:54:53 IjonTichy user.info kernel: usb 1-2: new full speed USB device using s3c2410-ohci and address 119
>>> Aug 18 21:54:54 IjonTichy user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
>>> Aug 18 21:54:54 IjonTichy user.notice kernel: SCSI subsystem initialized
>>> Aug 18 21:54:55 IjonTichy user.info kernel: Initializing USB Mass Storage driver...
>>> Aug 18 21:54:55 IjonTichy user.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
>>> Aug 18 21:54:55 IjonTichy user.info kernel: usbcore: registered new interface driver usb-storage
>>> Aug 18 21:54:55 IjonTichy user.info kernel: USB Mass Storage support registered.
>>> Aug 18 21:54:55 IjonTichy user.debug kernel: usb-storage: device found at 119
>>> Aug 18 21:54:55 IjonTichy user.debug kernel: usb-storage: waiting for device to settle before scanning
>>> Aug 18 21:55:00 IjonTichy user.debug kernel: usb-storage: device scan complete
>>> Aug 18 21:55:00 IjonTichy user.notice kernel: scsi 0:0:0:0: Direct-Access     Corsair  VoyagerGT        1100 PQ: 0 ANSI: 0 CCS
>>> Aug 18 21:55:00 IjonTichy user.warn kernel: Driver 'sd' needs updating - please use bus_type methods
>>> Aug 18 21:55:00 IjonTichy user.notice kernel: sd 0:0:0:0: [sda] 4046848 512-byte hardware sectors (2072 MB)
>>> Aug 18 21:55:00 IjonTichy user.notice kernel: sd 0:0:0:0: [sda] Write Protect is off
>>> Aug 18 21:55:00 IjonTichy user.debug kernel: sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
>>> Aug 18 21:55:00 IjonTichy user.err kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
>>> Aug 18 21:55:00 IjonTichy user.notice kernel: sd 0:0:0:0: [sda] 4046848 512-byte hardware sectors (2072 MB)
>>> Aug 18 21:55:00 IjonTichy user.notice kernel: sd 0:0:0:0: [sda] Write Protect is off
>>> Aug 18 21:55:00 IjonTichy user.debug kernel: sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
>>> Aug 18 21:55:00 IjonTichy user.err kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
>>> Aug 18 21:55:00 IjonTichy user.info kernel:  sda:
>>> Aug 18 21:55:00 IjonTichy user.info kernel:  sda1
>>> Aug 18 21:55:00 IjonTichy user.notice kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
>>> Aug 18 21:55:00 IjonTichy user.notice kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
>>> Aug 18 21:55:01 IjonTichy user.warn kernel: Alignment trap: hald-probe-stor (1682) PC=0x0000c474 Instr=0xe59b300c Address=0xbefe2492 FSR 0x013
>>> Aug 18 21:55:01 IjonTichy user.warn kernel: Alignment trap: hald-probe-stor (1682) PC=0x0000c490 Instr=0xe59b1008 Address=0xbefe248e FSR 0x013
>>> Aug 18 21:55:01 IjonTichy user.warn kernel: Alignment trap: hald-probe-stor (1682) PC=0x0000c474 Instr=0xe59b300c Address=0xbefe24a2 FSR 0x013
>>> Aug 18 21:55:01 IjonTichy user.warn kernel: Alignment trap: hald-probe-stor (1682) PC=0x0000c490 Instr=0xe59b1008 Address=0xbefe249e FSR 0x013
>>> Aug 18 21:55:01 IjonTichy user.warn kernel: Alignment trap: hald-probe-stor (1682) PC=0x0000c474 Instr=0xe59b300c Address=0xbefe24b2 FSR 0x013
>>> Aug 18 21:55:01 IjonTichy user.warn kernel: Alignment trap: hald-probe-stor (1682) PC=0x0000c490 Instr=0xe59b1008 Address=0xbefe24ae FSR 0x013
>>> Aug 18 21:55:01 IjonTichy user.warn kernel: Alignment trap: hald-probe-stor (1682) PC=0x0000c474 Instr=0xe59b300c Address=0xbefe24c2 FSR 0x013
>>> Aug 18 21:55:01 IjonTichy user.warn kernel: Alignment trap: hald-probe-stor (1682) PC=0x0000c490 Instr=0xe59b1008 Address=0xbefe24be FSR 0x013
>>> Aug 18 21:55:02 IjonTichy user.err kernel: FAT: invalid media value (0xb9)
>>> Aug 18 21:55:02 IjonTichy user.info kernel: VFS: Can't find a valid FAT filesystem on dev sda.
>>> Aug 18 21:55:02 IjonTichy user.err kernel: FAT: invalid media value (0xb9)
>>> Aug 18 21:55:02 IjonTichy user.info kernel: VFS: Can't find a valid FAT filesystem on dev sda.
>>> Aug 18 21:55:02 IjonTichy user.warn kernel: Alignment trap: hald-probe-volu (1726) PC=0x0000ce78 Instr=0xe59b300c Address=0xbe9055da FSR 0x013
>>> Aug 18 21:55:02 IjonTichy user.warn kernel: Alignment trap: hald-probe-volu (1726) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbe9055d6 FSR 0x013
>>> Aug 18 21:55:03 IjonTichy user.warn kernel: Alignment trap: hald-probe-volu (1726) PC=0x0000ce78 Instr=0xe59b300c Address=0xbe9055ea FSR 0x013
>>> Aug 18 21:55:03 IjonTichy user.warn kernel: Alignment trap: hald-probe-volu (1726) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbe9055e6 FSR 0x013
>>> Aug 18 21:55:03 IjonTichy user.warn kernel: Alignment trap: hald-probe-volu (1726) PC=0x0000ce78 Instr=0xe59b300c Address=0xbe9055fa FSR 0x013
>>> Aug 18 21:55:03 IjonTichy user.warn kernel: Alignment trap: hald-probe-volu (1726) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbe9055f6 FSR 0x013
>>> Aug 18 21:55:03 IjonTichy user.warn kernel: Alignment trap: hald-probe-volu (1726) PC=0x0000ce78 Instr=0xe59b300c Address=0xbe90560a FSR 0x013
>>> Aug 18 21:55:03 IjonTichy user.warn kernel: Alignment trap: hald-probe-volu (1726) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbe905606 FSR 0x013
>>> Aug 18 21:55:03 IjonTichy user.err kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
>>> Aug 18 21:55:03 IjonTichy user.warn kernel: Unable to load NLS charset cp932
>>> Aug 18 21:55:03 IjonTichy user.err kernel: FAT: codepage cp932 not found
>>> Aug 18 21:55:03 IjonTichy user.notice root: mount.sh/automount Auto-mount of [/media/sda1] successful
>>>
>>> Aug 18 21:56:07 IjonTichy user.info kernel: usb 1-2: USB disconnect, address 119
>>> ------------------------------------------------------------------------------------
>>> Log end for usb stick:
>>>
>>>
>>> Log start for mouse:
>>> ------------------------------------------------------------------------------------
>>> Aug 18 21:56:54 IjonTichy user.info kernel: usb 1-2: new low speed USB device using s3c2410-ohci and address 120
>>> Aug 18 21:56:54 IjonTichy user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
>>> Aug 18 21:56:55 IjonTichy user.info kernel: input: Logitech USB Mouse as /devices/platform/s3c2410-ohci/usb1/1-2/1-2:1.0/input/input5
>>> Aug 18 21:56:55 IjonTichy user.info kernel: input: USB HID v1.10 Mouse [Logitech USB Mouse] on usb-s3c24xx-2
>>> Aug 18 21:56:55 IjonTichy user.info kernel: usbcore: registered new interface driver usbhid
>>> Aug 18 21:56:55 IjonTichy user.info kernel: drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
>>>
>>> Aug 18 21:57:15 IjonTichy user.info kernel: usb 1-2: USB disconnect, address 120
>>>
>>> Aug 18 21:57:20 IjonTichy user.info kernel: usb 1-2: new low speed USB device using s3c2410-ohci and address 121
>>> Aug 18 21:57:20 IjonTichy user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
>>> Aug 18 21:57:20 IjonTichy user.info kernel: input: Logitech USB Mouse as /devices/platform/s3c2410-ohci/usb1/1-2/1-2:1.0/input/input6
>>> Aug 18 21:57:20 IjonTichy user.info kernel: input: USB HID v1.10 Mouse [Logitech USB Mouse] on usb-s3c24xx-2
>>>
>>> Aug 18 21:58:08 IjonTichy user.info kernel: usb 1-2: USB disconnect, address 121
>>> ------------------------------------------------------------------------------------
>>> Log end for mouse:
>>>
>>>
>>> Log start for keyboard:
>>> ------------------------------------------------------------------------------------
>>> Aug 18 21:59:20 IjonTichy user.info kernel: usb 1-2: new low speed USB device using s3c2410-ohci and address 122
>>> Aug 18 21:59:20 IjonTichy user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
>>> Aug 18 21:59:20 IjonTichy user.info kernel: input: Logitech Logitech USB Keyboard as /devices/platform/s3c2410-ohci/usb1/1-2/1-2:1.0/input/input7
>>> Aug 18 21:59:20 IjonTichy user.info kernel: input: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-s3c24xx-2
>>> Aug 18 21:59:20 IjonTichy user.info kernel: input: Logitech Logitech USB Keyboard as /devices/platform/s3c2410-ohci/usb1/1-2/1-2:1.1/input/input8
>>> Aug 18 21:59:20 IjonTichy user.info kernel: input: USB HID v1.10 Mouse [Logitech Logitech USB Keyboard] on usb-s3c24xx-2
>>>
>>> Aug 18 22:06:02 IjonTichy user.info kernel: usb 1-2: USB disconnect, address 122
>>>
>>> Aug 18 22:07:06 IjonTichy user.info kernel: usb 1-2: new low speed USB device using s3c2410-ohci and address 123
>>> Aug 18 22:07:06 IjonTichy user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
>>> Aug 18 22:07:06 IjonTichy user.info kernel: input: Logitech Logitech USB Keyboard as /devices/platform/s3c2410-ohci/usb1/1-2/1-2:1.0/input/input9
>>> Aug 18 22:07:06 IjonTichy user.info kernel: input: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-s3c24xx-2
>>> Aug 18 22:07:06 IjonTichy user.info kernel: input: Logitech Logitech USB Keyboard as /devices/platform/s3c2410-ohci/usb1/1-2/1-2:1.1/input/input10
>>> Aug 18 22:07:06 IjonTichy user.info kernel: input: USB HID v1.10 Mouse [Logitech Logitech USB Keyboard] on usb-s3c24xx-2
>>>
>>> Aug 18 22:08:37 IjonTichy user.info kernel: usb 1-2: USB disconnect, address 123
>>> ------------------------------------------------------------------------------------
>>> Log end for keyboard:
>>>
>>> _______________________________________________
>>> Openmoko community mailing list
>>> community at lists.openmoko.org
>>> http://lists.openmoko.org/mailman/listinfo/community
>>>
>>
>> _______________________________________________
>> Openmoko community mailing list
>> community at lists.openmoko.org
>> http://lists.openmoko.org/mailman/listinfo/community
>>
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>




More information about the community mailing list