All Forums
 Embedded Linux
 Linux FAQ
 USB Mice & Keyboards
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

jlackey

213 Posts

Posted - 14 Aug 2003 :  13:02:13  Show Profile  Email Poster
USB Host Controller

Except for the GraphicsClient+, all our boards include a USB host controller to communicate with USB devices.

The linux kernel interacts with the host controller using a host controller driver. For many of our boards, this driver is included in the kernel source code. The driver can be built into the kernel by enabling the following configuration options using 'make menuconfig':
    CONFIG_USB=y
    CONFIG_USB_OHCI_SA1111=y
The AGX uses a different host controller and requires a module, instead. Check Linux Downloads and Documents for availability.

USB Human Interface Devices (HID)

To support USB mice and keyboards, a couple of other options also need to be enabled:
    CONFIG_USB_HID=y
    CONFIG_USB_HIDINPUT=y
This ties USB mice and keyboards to the Input Device Interface. The Input Device Interface is enabled with these options:
    CONFIG_INPUT=y
    CONFIG_INPUT_KEYBDEV=y
    CONFIG_INPUT_MOUSEDEV=y

All these options are enabled by default in the latest version of the linux kernel (and most older versions, too). The precompiled kernels also have these options enabled.

Using a USB Mouse

To use a USB mouse, you'll need a device node in your root file system. The node for mouse input devices can be created using:
    mknod /dev/input/mice c 13 63
This node already exists in our ramdisk.

You can test the mouse using:
    cat /dev/input/mice
If you get "garbage" characters on the console when you wiggle the mouse, it works.

You can use gpm with the following options:
    gpm -t ps2 -m /dev/input/mice

Using a USB Keyboard

You can use a USB keyboard to provide input to a console on the LCD by running:
    getty 38400 tty1 &

  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000