0% found this document useful (0 votes)
22 views

How To Build Module

The document provides instructions on how to build an eGalax Touch USB kernel module. It details installing required packages, rebuilding the kernel module, copying and loading the module, and creating device nodes to enable USB touchscreen functionality.

Uploaded by

Fabio Wagatsuma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

How To Build Module

The document provides instructions on how to build an eGalax Touch USB kernel module. It details installing required packages, rebuilding the kernel module, copying and loading the module, and creating device nodes to enable USB touchscreen functionality.

Uploaded by

Fabio Wagatsuma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

How to build eGalax Touch USB kernel module

1. Please make sure some packages are installed before you want to build the
kernel module “tkusb.o”, such as tcl, development library and kernel-source.
Note: The kernel-source version must be the same as your running kernel.

2. Rebuild the kernel module. It is needed for USB TocuhScreen controller.


Please follow steps below to build the kernel module “tkusb.o”.
Note: This kernel module of o format is used for kernel 2.4.x only.

2.1 ) Open a terminal window and locate the copied directory. Then, go to the
subdirectory “USBSrc”. Execute “make all”. Then, the kernel module will
be built in your working directory.

2.2 ) Copy the kernel module “tkusb.o” to target directory.


For example, “/lib/modules”

2.3 ) Make device node for USB TouchScreen controller. For example,
mknod /dev/tkpanel0 c 180 180 ( for first USB TouchScreen controller )
mknod /dev/tkpanel1 c 180 181 ( for second USB TouchScreen controller )

2.4 ) Modify rc.local file to load kernel module automatically. ( It is renamed


“boot.local” under SuSE Linux series. ) This file can be found in “/etc/rc.d”.
Append the following description in this file.

## eGalax Touch kernel module section begin ##


insmod /lib/modules/tkusb.o # for Kernel 2.4.x only.
## eGalax Touch kernel module section end ##

Note: The user can check which internal kernel module is loaded for USB
TouchScreen controller via below instruction in a terminal window.
cat /proc/bus/usb/devices

3. Restart your platform.

Copyright (c) 2007 Version 1.1


1

You might also like