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@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community