Community Added Features on LO kernel

From OMAPpedia

(Difference between revisions)
Jump to: navigation, search
(USB Keyboard and Mouse)
(USB Keyboard and Mouse)
Line 1: Line 1:
== USB Keyboard and Mouse ==
== USB Keyboard and Mouse ==
The kernel currently has g_zero support. The devices keyboard and mouse have been added based on that. The config changes to enable these are.
The kernel currently has g_zero support. The devices keyboard and mouse have been added based on that. The config changes to enable these are.
 +
 +
=== Configuration changes===
Modify the Zoom2 Defconfig (kernel_omap3/arch/arm/configs/omap_zoom2_defconfig) for the below.
Modify the Zoom2 Defconfig (kernel_omap3/arch/arm/configs/omap_zoom2_defconfig) for the below.
Line 33: Line 35:
The changes will soon be pushed upstream.
The changes will soon be pushed upstream.
 +
 +
===How to install the devices===
 +
The devices work over the USB OTG. To setup USB OTG, refer to [http://omappedia.com/wiki/Support_Tools#USB_to_.22On_The_Go.22 Support Tools page]
 +
 +
===Building the USB gadget===
 +
Once the kernel has been built with the above modified Zoom2 defconfig, build the modules which will generate the g_zero.ko file. To build the modules
 +
 +
  # make CROSS_COMPILE=arm-none-linux-gnueabi- modules
 +
 
 +
  The g_zero.ko file will be at ''kernel/drivers/usb/gadget''
 +
 +
===Installing the devices===
 +
Copy g_zero.ko to the SD card or another accessible location.
 +
 +
Once the file system has loaded, install the gadget module.
 +
  # insmod g_zero.ko
 +
 +
This will install the gadget module and the USB devices would be detected. Some example logs are shown below.
 +
 +
The devices are plug and play and you can add or remove devices.
 +
 +
To list the devices,
 +
  # lsusb
== HDMI ==
== HDMI ==

Revision as of 17:51, 5 October 2009

Contents

USB Keyboard and Mouse

The kernel currently has g_zero support. The devices keyboard and mouse have been added based on that. The config changes to enable these are.

Configuration changes

Modify the Zoom2 Defconfig (kernel_omap3/arch/arm/configs/omap_zoom2_defconfig) for the below.

 #
 # Userland interfaces
 #
 # CONFIG_INPUT_MOUSEDEV is not set
 CONFIG_INPUT_MOUSEDEV=y
 CONFIG_INPUT_MOUSEDEV_PSAUX=y
 #
 # Input Device Drivers
 #
 # CONFIG_INPUT_KEYBOARD is not set
 CONFIG_INPUT_KEYBOARD=y
 CONFIG_KEYBOARD_ATKBD=y
 CONFIG_KEYBOARD_TWL4030=y
 # CONFIG_INPUT_MOUSE is not set
 CONFIG_INPUT_MOUSE=y
 CONFIG_MOUSE_PS2=y
 CONFIG_MOUSE_PS2_ALPS=y
 CONFIG_MOUSE_PS2_LOGIPS2PP=y
 CONFIG_MOUSE_PS2_SYNAPTICS=y
 CONFIG_MOUSE_PS2_LIFEBOOK=y
 CONFIG_MOUSE_PS2_TRACKPOINT=y
 CONFIG_INPUT_UINPUT=y
 CONFIG_INPUT_GPIO=y
 CONFIG_INPUT_KEYCHORD=y

The changes will soon be pushed upstream.

How to install the devices

The devices work over the USB OTG. To setup USB OTG, refer to Support Tools page

Building the USB gadget

Once the kernel has been built with the above modified Zoom2 defconfig, build the modules which will generate the g_zero.ko file. To build the modules

 # make CROSS_COMPILE=arm-none-linux-gnueabi- modules
 
 The g_zero.ko file will be at kernel/drivers/usb/gadget

Installing the devices

Copy g_zero.ko to the SD card or another accessible location.

Once the file system has loaded, install the gadget module.

 # insmod g_zero.ko

This will install the gadget module and the USB devices would be detected. Some example logs are shown below.

The devices are plug and play and you can add or remove devices.

To list the devices,

 # lsusb

HDMI

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox